MCQ · 1 mark · Relational Queries

GATE CS 2020 CS — Q13

Consider a relational database containing the following schemas (the tables Catalogue, Suppliers and Parts are shown in the figure).

The primary key of each table is indicated by underlining the constituent fields.
SELECT s.sno, s.sname
FROM   Suppliers s, Catalogue c
WHERE  s.sno = c.sno AND
       cost > (SELECT AVG (cost)
               FROM Catalogue
               WHERE pno = 'P4'
               GROUP BY pno);
The number of rows returned by the above SQL query is
Question figure
Select one option