5. The process of constructing a model of the data used in an enterprise based on a specific data model (eg. relational), but independent of a particular DBMS and other physical consideration.
7. The process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organization, and indexes design used to achieve efficient access to the data, and any associated integrity constraints and security measures.
8. What are the differences between conceptual and logical
9. Conceptual: The process of constructing the model is independent from all physical consideration.
10. Logical: The process of constructing the model is based on a specific data model, but independent of a particular DBMS and other physical consideration
11. How do you define the index on a column of a table
12.
13. Unary relationships have only one participant-the relation is associated with itself. The classic example of a unary relationship is Employee to Manager. One's manager is, in most cases, also an employee with a manager of his or her own. It is also known as recursive relationship.
14. Binary relationships, the association between two entities is the most common type in the real world.
15. A ternary relationship involves three entities and is used when a binary relationship is inadequate. Many modeling approaches recognize only binary relationships. Ternary or n-ary relationships are decomposed into two or more binary relationships.
16. Quaternary relationships involve four entities. For example a professor teaches a course to students using slides. Here the four entities are professor, slides, course, and student. The relationship between the entities are Teaches. Another example:
17. How do you use subclass and super class in ERD?
18. Superclass: An entity type that includes distinct subclasses that requires to be represented in data model. It is also known as generalization.
19. Subclass: An entity type that has a distinct role and is also a member of superclass. It is also known as specialization.
20. Please describe 2 common problems when you design a database (example)
24. Normalization is a technique for producing a set of suitable relation that supports the data requirements of an enterprise and to minimize data redundancy.
25. The functional dependency can be classified as : full functional dependency, partial functional dependency and also transitive functional dependency. It makes use of Functional Dependencies that exist in a table (relation, more formally) and the primary key or Candidate Keys in analyzing the tables.
47. DBMS QUERY prepares the SQL statement (in general, one that returns rows) by indicating to the database engine where to put return data (if any), and then tells the database to execute the SQL statement.This command is used for statements, either SQL SELECT statements or stored procedures, that return data. For statements that do not return data, use DBMS RUN. Example :
48. DBMS QUERY SELECT title_id, name, dir_first_name, dir_last_name FROM table_name
50. A database transaction is a logical unit of database operation which is executed as a whole to process user requests for retrieving data or updating the database. An SQL transaction automatically begins with a transaction-initialing SQL statement (eg. SELECT, INSERT).
51. How to ensure the integrity while executing transactions?
52. Concurrency control techniques that include locking(e.q deadlock detection adn recovery) and time stamping. The concurrency control schedules transactions to avoid any interference. Secondly serializability identifies executions of transactions to ensure consistency
53. What are the property of transaction?The properties of database transactions are summed up with the acronym ACID:<br />Atomicity - all or nothing<br />All of the tasks (usually SQL requests) of a database transaction must be completed;<br />If incomplete due to any possible reasons, the database transaction must be aborted.<br />Consistency - serializability and integrity<br />The database must be in a consistent or legal state before and after the database transaction. It means that a database transaction must not break the database integrity constraints.<br />Isolation<br />Data used during the execution of a database transaction must not be used by another database transaction until the execution is completed. Therefore, the partial results of an incomplete transaction must not be usable for other transactions until the transaction is successfully committed. It also means that the execution of a transaction is not affected by the database operations of other concurrent transactions.<br />Durability<br />All the database modifications of a transaction will be made permanent even if a system failure occurs after the transaction has been completed.<br />