Concepts:
- Databases
- DBMS
- Logical Data Models
- Hierarchical Models
- Network Models
- Relational Models
- Primary key
- Foreign Key
- Referential Integrity Rules
- Entities
- Relationships
- Mapping Cardinality
- Optionality
- Attributes
- Composite Attributes
- Multi-valued Attributes
- Relations
- Relational Models
- Recursive Relationships
- Weak Entities
- Super and Sub Entities
- Gerund
- SQL
- Constraints
- Oracle Meta Tables
- Oracle Data Types
Skills and Techniques:
- Conceptual Data Modeling (Entity-Relationship Diagramming) from the understanding of business objects and their relationships or from forms, reports, tables, and other data carrier to understand data requirements.
- Transform conceptual data models into normalized tables (relational models) manually by following the rules
- Model business data using advanced constructs, including super-sub types, exclusive relationships, recursive relationships, weak entities, and gerunds
- Implement business data models involving advanced constructs into relational models
- Write SQL statements to implement relational models with constraints for primary keys, foreign keys, domain validation rules, and business rules
- Create and management Oracle database objects such as tables, users, sequences, database links, synonyms, constraints, and views
Sample Problems:
Instruction: This list shows the types of questions you may see on the exam. Studying them will greatly improve your chance of success. However, it by no means indicates the actual content of exam questions.
- What is a logical data model? Give three examples
- Give an example of relational model.
- What is a primary key? What is a foreign key?
- How does the relational model allow you to track related records? What about hierarchical models?
- How many foreign keys can a table have? How many primary keys can a table have?
- Can a primary key have a duplicate values or missing values?
- Can a foreign key have a duplicate values or missing values?
- What is the mapping cardinality between dorms and rooms?
- Synonyms for tables, rows, and columns?
- How do you delete a table even though other tables reference it?
- How do you look up all the tables you have?
- How to you look up all the constraints you have?
- If you know a table name, how can you find its structure?
- If you know a table name, how can you find its constraints defined on it?
- What is an Oracle dictionary table?
- What is special with weak entities? When do you use weak entities?
- How do you handle the dependents of employees for an insurance database?
- When do you use associative entities or gerunds?
- When do you use recursive relationships?
- How do you handle two types of patients: out patients and in patients, in a hospital database?
- What are the advantages of using super and sub type entities?
- What are exclusive relationships? Give an example
- Why should a recursive relationship always be O:O?
- What is a multi-valued attribute and how do you handle it?
- Compare the similarities and differences between a gerund and a weak entity set
- What are the differences between a relational model and an entity-relationship model? Is primary UID the same as a primary key?
- What is different between mapping cardinality and optionality?
Practice Problems:
- The Sam’s Store orders supplies from various vendors. Internally, as a convention of organizing inventories, supplies are organized into categories and groups, and the store assign employees to manage products in specific categories. Each manager manages employees in specific groups. Please create an ER Diagram to model the related business objects.
- Create an ERD using Oracle Data Modeler for a health club, which offer memberships to both individual and local business members. Business members have data such as the number of employees and company name while individual ones have last name, and first name. All memberships have definite valid period, and after the expiration, each member can renew and obtain a new membership. Club employees are sometimes assigned to manage business members, and they help renewals of business memberships. Member will be issued access key cards for the members to access the club. Key cards can be enabled or disabled according to membership validity and whether a card is reported lost.
- When members join the health club, they pay a fee for a certain length of time. Create an ER diagram to model the related business objects such as Members, Memberships, Renewals, and Employees. Note that, for setting reasonable renewal prices, the system must keep track all past renewal prices, and each time a member comes into the club. The system will identify heavy users and generate a report so the manger can ask them to renew their memberships early at a reduced rate. Likewise, the system should identify those who do not come to the club often so that the manager can call them and attempt to attract them in the club.
- The following is a relational model. Use Data Modeler to draw the ERD that produces the relational model and write SQL statements to Implement the following relational model in Oracle. Note the italics are primary keys and you will need to identify foreign keys.
Members (ID, Lname, Fname, Phone, Address, State, City, Zip, Student, Professor) Students (SID, Major, AdmissionDate, Faculty_Advisor) Professors (IID, Department, Area) Memberships (Member, Number, ExpirationDate) Events (Name, Time, cost, place, Followup_Event, Followup_Time) Signups (member, Event_Name, time)
- Transform the following ERD into a relational model.
|