Quiz Space

Database Management Systems · Quiz 1 · 7 Jul 2024 · May 2024 term

Question 14: Consider a relational schema:\ Parts(<u>Pid</u>, Pname, …

Question 14

+4 marksOne or more correct options

Consider a relational schema:
Parts(Pid, Pname, Price, Quantity)
Vendors (Vid, Vname, Location, Pid)

Consider the SQL query:

sql
SELECT Distinct Vname FROM Parts NATURAL JOIN Vendors
WHERE Price < 5000 and location = 'Mumbai'

Choose the correct relational algebra expression(s) which will give the same output as of the above SQL query.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • B
  • D

Question 14 of 15 in the IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term (IIT M DIPLOMA AN EXAM QDD2 7 July 2024). It carries 4 marks.

More questions from this paper

  1. Q1Consider the table Champions_League for given subquestions | Name | Age | Team | Country | Goals | |---|---|---|---|---…
  2. Q2Consider the table Champions_League for given subquestions | Name | Age | Team | Country | Goals | |---|---|---|---|---…
  3. Q3Consider the following SQL statement: Which among the following will cause an integrity constraint violation in the Car…
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Consider the following relations: players(<u>pid</u>, name, age, jersey_no)\ teams(<u>team_name</u>, matches, points, p…
  7. Q7Consider the following data for given subquestions: | Driver_ID | Name | Team | Salary | |---|---|---|---| | 55 | Carlo…
  8. Q8Consider the following data for given subquestions: | Driver_ID | Name | Team | Salary | |---|---|---|---| | 55 | Carlo…
  9. Q9Which of the following statement(s) is/are correct?
  10. Q10Consider the E-R diagram given in Figure 1 and answer the subquestions. Identify the correct relational schema for the …
  11. Q11Consider the E-R diagram given in Figure 1 and answer the subquestions. Identify the correct relational schema for the …
  12. Q12Consider the E-R diagram given in Figure 1 and answer the subquestions.
  13. Q13Consider the tables r and s. | A | B | C | D | |---|---|---|---| | p | 1 | p | a | | q | 2 | r | a | | r | 4 | q | b | …
  14. Q15Consider the following table which has three attributes: X, Y and Z, where X is the primary key and Z is the foreign ke…