what will be the output:
select 1 from emp
union all
select 2 from emp;

Answer Posted / m.m

1 will be printed as many times as the number of rows in
emp table
followed by 2 begin printed as many times as the number of
rows in emp table
OP:
1
----------
1
1
1
1
1
1
1
1
1
1
1

1
----------
1
1
1
2
2
2
2
2
2
2
2

1
----------
2
2
2
2
2
2

28 rows selected.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is snowflake sql?

578


What is use of trigger?

510


What type of database is sql?

613


How do I partition in sql?

536


What is oracle and pl sql?

659






what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

551


How can I make sql query run faster?

558


What is sqlexception in java?

546


What is scalar data type in pl sql?

549


How to read xml file in oracle pl sql?

504


How do you truncate?

503


What language is oracle sql developer?

508


Explain constraints in sql?

569


How bulk collect improves performance?

570


How to write pl sql program in mysql command prompt?

513