Professional Documents
Culture Documents
1 ERD Probably - 5 Entities: Data Def. Command
1 ERD Probably - 5 Entities: Data Def. Command
Section B - 5 SQL query--> simple, nested, aggregate (group by) (15 m per q, total 30m)
Advantages:
• Data independence
• Currency
• Improved security
• Reduced complexity
• Convenience
• Customization
• Data integrity
2. Hide Data complexity: For example a single view might be defined with a join
which is a collection of related columns or rows in multiple tables. However the view
hides the fact that this information actually originates from several tables.
3. Simplify Statements for User: Views allow users to select information from
multiple tables without actually knowing how to perform join.
6. Express query that cannot be expressed without using a view. For example a view
can be defined that joins a group by view with a table or a view can be defined that
joins a UNION view with a table.
Problems
Lost update
• An update can get lost when a transaction overwrites the changes from
another transaction.
• For example, two users can update the same information, but only the last
change saved is reflected in the database.
Uncommitted dependency
• An uncommitted dependency occurs when a transaction reads uncommitted
data from another transaction.
• The transaction can potentially make changes to data that is either inaccurate
or nonexistent.
Inconsistent analysis
• An inconsistent analysis occurs when a transaction reads the same row more
than one time and when, between the two (or more) readings, another
transaction modifies that row.
• Because the row was modified between readings within the same transaction,
each reading produces different values, which introduces inconsistency.
• For example, an editor reads the same document twice
• Between each reading, the writer rewrites the document.
• When the editor reads the document for the second time, it has completely
changed.
• The original reading is not repeatable, leading to confusion.
Solutions
– serial and serializable execution
– locking
Serial
Serializable execution
Topic 11 (5 marks) XML what is xml, for what, what’s multimedia database, where is it used
S23
Write short note about xml (go Wikipedia )
-What is xml
• An Extensible Markup Language
– Developed by W3C
– Open standard designed as a web technology but it has multiple uses
1. It is as easy as HTML.
2. XML is fully compatible with applications like JAVA, and it can be combined with any
application which is capable of processing XML irrespective of the platform it is being used on.
4. XML is an extendable language, meaning that you can create your own tags, or use the tags
which have already been created.
6. It can be deployed on any network if it is amicable for usage with the application in use.
0173721599