recategorized by
864 views
2 votes
2 votes

Consider the following ORACLE relations : One $(x, y) = {, , , , , }$ Two $(x, y) = {, , , , , , , }$ Consider the following two $SQL$ queries $SQ1$ and $SQ2$ :

SQ1 :

      SELECT * FROM One)

               EXCEPT

     (SELECT * FROM Two);

SQ2 :

        SELECT * FROM One)

             EXCEPT ALL

        (SELECT * FROM Two);

For each of the SQL queries, what is the cardinality (number of rows) of the result obtained when applied to the instances above ?

  1. 2 and 1 respectively
  2. 1 and 2 respectively
  3. 2 and 2 respectively
  4. 1 and 1 respectively
recategorized by

1 Answer

Related questions