This document contains 11 questions about relational database concepts and operations. It defines key terms like domains, attributes, tuples, relations, and relational algebra. It also discusses relational constraints, update operations, transactions, normalization, and converting ER diagrams to relational tables. Several questions involve writing SQL queries or relational algebra expressions on sample relations to retrieve or aggregate data that meets certain conditions.
This document contains 11 questions about relational database concepts and operations. It defines key terms like domains, attributes, tuples, relations, and relational algebra. It also discusses relational constraints, update operations, transactions, normalization, and converting ER diagrams to relational tables. Several questions involve writing SQL queries or relational algebra expressions on sample relations to retrieve or aggregate data that meets certain conditions.
1. Domains 2. Attributes 3. Tuples 4. Relations 5. Relational Algebra 6. Candidate key 7. Super key 8. Foreign Key 2. Explain Relational Model constraints with suitable examples? 3. Explain Update Operation, Transactions and Dealing with Constraints Violations with suitable example 4. Explain Unary and Binary Relational operation with suitable examples? 5. Explain generalized projection, Aggregate function and grouping operation? 6. Explain Set theory and join operation with suitable examples? 7. Consider the following COMPANY database EMP(Name,SSN,Salary,SuperSSN,Gender,Dno) DEPT(DNum,Dname,MgrSSN,Dno) DEPT_LOC(Dnum,Dlocation) DEPENDENT(ESSN,Dep_name,Sex) WORKS_ON(ESSN,Pno,Hours) PROJECT(Pname,Pnumber,Plocation,Dnum) Write the relational algebra queries for the following (i)Retrieve the name, address, salary of employees who work for the Research department. (ii) find the names of employees who work on all projects controlled by department number4. iii) Retrieve the SSN of all employees who either in department no :4 or directly supervise an employee who work in department number :4 (iv) Retrieve the names of employees who have no dependents (v) Retrieve each department number, the number of employees in the department and their average salary. 8. Summarize the steps involved in converting the ER constructs to corresponding relational tables 9. Write SQL syntax for the following with example: (i) SELECT (ii) ALTER (iii) UPDATE 10. Consider the following relation schema Works(Pname,Cname,salary) Lives(Pname,Street,City) located_in (Cname, city) Manager(Pname,Mgrname) Write the SQL queries for the following i) Find the names of all persons who live in the city Bangalore. ii) Retrieve the names of all person of "Infosys" whose salary is between Rs .50000 iii) Find the names of all persons who lives and work in the same city iv) List the names of the people who work for “Tech M” along with the cities they live in. v) Find the average salary of “Infosys” persons 11. Consider the following relation schema Passenger(pid,pname,pgender,pcity) Agency (aid,aname,acity) Flight(fid, fdate,time,src,dest) Booking(pid,aid,fid,fdate) Give relation algebra expression for the following : i) Get the complete details of all flights to new delhi ii) Find only the filght numbers for passenger with paid 123 for flihts to Chennai before 26/12/2023 iii) Find the passenger names for those who do not have any booking in any flights iv) Get the details of flights that are scheduled on both dates 26/12/2023 and 01/01/2024 at 16:00 hours v) Find the details of all male passengers who are associated with jet agency.