Professional Documents
Culture Documents
CSE311 Sample Mid Fall 21
CSE311 Sample Mid Fall 21
Submission guidelines
After you complete the assignment rename it with your ID and Name and
upload ID_Name.pdf on Engrade in the turn-in section.
1.
a) Find the number of employees that work at law firms employing lawyers with 4
names have 'Md'?
1
b) Find the Full outer join between Lawyers and Firms 4
a) Find the Doctor Name who see patients that are at least 25 years old 3
b) Find the patient name and doctor name where a patient is an old (not as first visit 4
and upto 1 year)
3. You are building a database system for a bank. The bank tells you that it needs to
keep track of employees and customers. Every employee and every customer has a
(unique) social security number, a name, and an address. Customers also have an
account ID, which employees do not have (unless the employee is also a customer).
Employees have a hire date, which customers do not have (unless the customer is
also an employee). Furthermore, different information is stored about each
employee type: tellers work a certain number of hours per week at a certain wage,
loan officer work for a salary and have no fixed location, and managers work for a
salary but have no fixed location.
a) From the above sincere identify the relation with their attributes 4
b) Define the schema based on your finding. Mention the constrain of the relation 4
b) Write down the different types of fundamental relational algebra operations. With 4
the above relation give show the composition of relational algebra operation.