Higher Study | DBMS | Query Language

What is the full form of SQL?
Which of the following is not a logical data-base structure?
Consider the following relation schema: Product(id, name, price) What will be the output of the following SQL code? SELECT max(price) FROM Product WHERE price < (SELECT max(price) FROM Product);
What is the optimized version of the relation algebra expression πA1(πA2( σF1(σ F2(r)))), where F1, F2 are sets of attributes in r with F1 ⊂ F2 and F1, F2 are Boolean expressions based on the attributes in r?
Consider the following relational schema: employee(empId,empName,empDept) customer(custId,custName,salesRepId,rating) salesRepId is a foreign key referring to empId of the employee relation. Assume that each employee makes a sale to at least one customer. What does the following query return? SELECT empName FROM employee E WHERE NOT EXISTS (SELECT custId FROM customer C WHERE C.salesRepId = E.empId AND C.rating <> ’GOOD’);
Ads