Quiz Space

Database Management Systems · Quiz 1 · 23 Feb 2025 · January 2025 term

Question 3: Consider the tables Products and Suppliers given below: |…

Question 3

+4 marksOne correct option

Consider the tables Products and Suppliers given below:

P_IDP_NameS_ID
1Laptop3
2Smartphone2
3Tablet3
4Headphones1

Table 1: Products

S_IDS_Name
1Sony
2Samsung
3Apple

Table 2: Supplier

Now consider the SQL query given below:

sql
Select *
From Products P, Supplier S
Where P.P_ID<>S.S_ID

How many attributes and rows will be present in the resultant output table?

  1. A

    4 attributes and 9 rows

  2. B

    5 attributes and 8 rows

  3. C

    4 attributes and 8 rows

  4. D

    5 attributes and 9 rows

Show answer

Correct answer

  • D

    5 attributes and 9 rows

Question 3 of 14 in the IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term (IIT M DIPLOMA AN EXAM QDD2 23 Feb 2025). It carries 4 marks.

More questions from this paper

  1. Q1Which level of abstraction is responsible for providing data security by limiting access to specific data views?
  2. Q2Consider the relation student shown in Table 5. | roll_no | name | house_name | |---|---|---| | 1 | John | Nilgiri | | …
  3. Q4Consider a relational database for Formula One Racing containing the following tables. | D_ID | D_Name | T_ID | Points …
  4. Q5Consider the following relations:\ auto_part(<u>pid</u>, pname, color)\ auto_suppliers(<u>sid</u>, sname, location)\ ca…
  5. Q6Figure question
  6. Q7Figure question
  7. Q8Figure question
  8. Q9Figure question
  9. Q10Consider the following Students table | student_id | name | grade | marks | |---|---|---|---| | 1001 | Alice | A | 85 |…
  10. Q11Consider relations Book and Author shown in Table 6 and Table 7 | BookID | Title | AuthorID | Genre | |---|---|---|---|…
  11. Q12Consider the tables student and course as shown below. | ID | name | dept_name | |---|---|---| | 21f11 | Ram | CS | | 2…
  12. Q13In the Enrollment table, which of the following is a typical way to handle the primary key?
  13. Q14In a typical design, what is the relationship between the Student table and the Enrollment table?