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

how many groups of data types? : Sql dba

726


is it possible to pass an object or table to a procedure as an argument?

816


What is the starting oracle error number? What is meant by forward declaration in functions?

738


How to change the order of columns in Oracle SQL Plus ?

788


Does postgresql run on the cloud?

798






What is the most important ddl statements in sql are?

723


What are procedures used for?

699


What is the use of prepared statement?

749


How to look at the current sql*plus system settings?

763


Why we use cross join?

701


What is the difference between joins?

729


how to create a new table by selecting rows from another table in mysql? : Sql dba

751


What are the benefits of triggers?

891


Can we use ddl commands in pl sql?

766


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1945