




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is very handy quiz, take it hope it will increase your score. The key points are: Functional Dependency, Set Operations, Armstrong Axioms, Functional Dependency Graph, Database Management, Relational Model, Codd's First Rule, One-To-Many Relationship, System Tables, Logical Data Model
Typology: Exercises
1 / 8
This page cannot be seen from the preview
Don't miss anything!





(1) 20% First Midterm materials. . (2) 80% of the new topics.
Readings : Relational DB, SQL, Functional Dependency
Relational Algebra ----1. the language
a. select b. project c. join d. the set operations union intersection difference e. renaming f. division
Functional Dependency
Armstrong Axioms,
Functional Dependency Graph
Test material will be drawn from the text book, lecture, assignments and any
in the textbook. Consider the problems at the end of each chapter and work some of them.
You should review the following:
A. 60 B. 70 C. 80 D. 90 E. 95 F. 97
A. databases B. rows C. columns D. tables
A. DB2 B. RDB C. INGRES D. SYBASE E. ORACLE F. SQL
A. table B. row C. column
A. value B. file C. entity D. table E. relation
A. database tables
A. zero B. blank C. negative D. imaginary E. null
A. E-R B. R-E C. Codd D. SE E. Primary-key
17.. A complete database design should include planning for primary key/foreign key consistancy or _______ integrity.
A. association B. referential C. entity D. transactional
18.. Which of the following people invented the relational database model? A. Dr. E.F. Codd B. C.J. Date C. L.T. Data D. Dr. Peter Chan
Present the following Queries in relational algebra and SQL Q1: select all employee SSNs.
Q2: Retrieve the salary of every employee.
Q3: Retrieve the names of all employees who do not have supervisors.
Q4: Retrieve the birthdate and address of the employee whose name is ‘John B. Smith’.
Queries Requiring Table Joins
Q5: Retrieve the SSNs and names of all employees who work on project number 1, 2, or
Q6: Retrieve the name and address of all employees who work for the ‘Research’ department.
Q7: For every project located in ‘Stafford’, list the project number, the controlling department number, and the department manager’s last name, address, and birthdate.
Q8: Make a list of all project numbers for projects that involve an employee whose last name is ‘Smith’, either as a worker or as a manager of the department that controls the project.
Q9: Find the sum of the salaries of all employees, the maximum salary, the minimum salary, and the average salary.
Q10.: Retrieve the total number of employees in the company.
Q11: Retrieve the total number of employees in the ‘Research’ department.
Q12: For each department, retrieve the department name, the number of employees in the department, and their average salary.
Q13: For each project, retrieve the project number, the project name, and the number of employees who work on that project.
Q14: Retrieve all employees whose address in Houston, TX....
Q15: Find all employees who were born during the 1950s.
Queries Requiring Use of Recursive Tables
Q16: For each employee, retrieve the employee’s first and last name and the first and last name of his or her immediate supervisor.
20.Design an Entity-Relationship schema for a car service station database. The database should contain the information about:
customers: name, address, phone number; employees: name, SSN; cars: license plate number, make, model, owner (who is a customer); repairs: car repaired, mechanics, date, cost.
Customers are identified by their names and addresses. There is only one repair performed on a given car on a single day. Only the employees that are mechanics can perform repairs. More than one mechanic can do a specific repair. Make any necessary additional assumptions that make sense in the real world.
identifying identity set is eliminated. Translate the following ER diagram in relational model.
(a)A ×B ⇔ B × A
(b)A ∩ B ⇔ B ∩ A
(c)A ∪B ⇔ B ∪ A
(d)(A - B) is same as (B - A)
(e)σc1 (σc2(A)) ⇔ σc2 (σc1(A)) ⇔ σc1 ^ c2(A)
31.Find the functional dependency graph of the following table. R(A B C D)
A B C D 1 1 2 1 3 1 2 2 2 2 1 1 1 3 3 2