nerdexam
PostgreSQL_CE

PGCES-02 · Question #51

A set of tables are defined as follows: t1 t2 How many rows are returned by executing the following SQL statement? SELECT FROM t1 UNION ALL SELECT FROM t2;

The correct answer is D. 5 rows. See the full explanation below for the reasoning.

Question

A set of tables are defined as follows:

t1 t2 How many rows are returned by executing the following SQL statement? SELECT * FROM t1 UNION ALL SELECT * FROM t2;

Options

  • A2 rows
  • B3 rows
  • C4 rows
  • D5 rows
  • EAn error will occur.

How the community answered

(57 responses)
  • A
    2% (1)
  • B
    12% (7)
  • C
    2% (1)
  • D
    79% (45)
  • E
    5% (3)

Community Discussion

No community discussion yet for this question.

Full PGCES-02 Practice