Multiple choice technology databases

What will be the output of following Select 8 from Emp ? Emp table has 10 rows

  1. No Rows returned

  2. 10 rows of Emp table

  3. Error

  4. 8 is displayed 10 times

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

When you select a constant value from a table, SQL returns that constant value once for each row in the table. The constant '8' has no relationship to the table data but is repeated for all 10 rows.