 31. Student (school-id, sch-roll-no, sname, saddress)School (school-id, sch-name, sch-address, sch-phone)Enrolment(school-id sch-roll-no, erollno, examname)ExamResult(erollno, examname, marks)What does the following SQL query output?SELECT sch-name, COUNT (*)FROM School C, Enrolment E, ExamResult RWHERE E.school-id = C.school-idANDE.examname = R.examname AND E.erollno = R.erollnoANDR.marks = 100 AND S.school-id IN (SELECT school-id FROM student GROUP BY school-id HAVING COUNT (*) > 200)GROUP By school-id a. for each school with more than 200 students appearing in exams, the name of the school and the number of 100s scored by its students b. for each school with more than 200 students in it, the name of the school and the number of 100s scored by its students c. for each school with more than 200 students in it, the name of the school and the number of its students scoring 100 in at least one exam d. nothing; the query has a syntax error

 32. Given the basic ER and relational models, which of the following is INCORRECT? a. An attribute of an entity can have more than one value b. An attribute of an entity can be composite c. In a row of a relational table, an attribute can have more than one value d. In a row of a relational table, an attribute can have exactly one value or a NULL value

 33. Consider a join (relation algebra) between relations r(R)and s(S) using the nested loop method. There are 3 buffers each of size equal to disk block size, out of which one buffer is reserved for intermediate results. Assuming size(r(R)) < size(s(S)), the join will have fewer number of disk block accesses if a. relation r(R) is in the outer loop b. relation s(S) is in the outer loop c. join selection factor between r(R) and s(S) is more than 0.5 d. join selection factor between r(R) and s(S) is less than 0.5

 34. Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model? a. 2 b. 3 c. 4 d. 5

 35. In a schema with attributes A, B, C, D and E following set of functional dependencies are givenA → B A → C CD → E B → D E → AWhich of the following functional dependencies is NOT implied by the above set? a. CD → AC b. BD → CD c. BC → CD d. AC → BC

 36. A database of research articles in a journal uses the following schema.(VOLUME, NUMBER, STARTPGE, ENDPAGE, TITLE, YEAR, PRICE) The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> TITLE(VOLUME, NUMBER) -> YEAR(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> PRICE The database is redesigned to use the following schemas.(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)(VOLUME, NUMBER, YEAR) Which is the weakest normal form that the new database satisfies, but the old one does not? a. 1NF b. 2NF c. 3NF d. BCNF

 37. Which of the following relational query languages have the same expressive power?1.Relational algebra2.Tuple relational calculus restricted to safe expressions3.Domain relational calculus restricted to safe expressions a. II and III only b. I and II only c. I and III only d. I, II and III