Question 21
Question 22
Question 23
Suppliers(sid:integer, sname:string, city:string, street:string) Parts(pid:integer, pname:string, color:string) Catalog(sid:integer, pid:integer, cost:real)Consider the following relational query on the above database:
SELECT S.sname FROM Suppliers S WHERE S.sid NOT IN (SELECT C.sid FROM Catalog C WHERE C.pid NOT IN (SELECT P.pid FROM Parts P WHERE P.color<> \'blue\'))Assume that relations corresponding to the above schema are not empty. Which one of the following is the correct interpretation of the above query?
Question 24
Emp (Empcode, Name, Sex, Salary, Deptt)A simple SQL query is executed as follows:
SELECT Deptt FROM Emp WHERE sex = \'M\' GROUP by Dept Having avg (Salary) > {select avg (Salary) from Emp}The output will be
Question 25
E → E ∗ F ∣ F + E ∣ F F → F − F ∣ idWhich of the following is true?
Question 26
The number of tokens in the following C statement is printf("i=%d, &i=%x", i,&i);
Question 27
1) A → BC 2) A → CcBb 3) A → BaC 4) A → ε
There are 80 questions to complete.