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)- A2% (1)
- B12% (7)
- C2% (1)
- D79% (45)
- E5% (3)
Community Discussion
No community discussion yet for this question.