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 the command used to fetch first 5 characters of the string? : Sql dba

1136


What is scalar function in sql?

534


What is pl sql in dbms?

508


how to convert numeric values to character strings? : Sql dba

570


What is nosql example?

585






what is meant by nl2br()? : Sql dba

566


How many types of keys are there in sql?

556


How do I view a procedure in sql?

549


explain the advantages and disadvantages of stored procedure? : Sql dba

533


what is text? : Sql dba

564


How do you know if a relationship is 2nf?

520


Write a sql query to convert all character to uppercase after hypen.

965


What is the purpose of cursors in pl/sql?

638


What are the different datatypes available in PL/SQL?

568


What is the least restrictive isolation level? : Transact sql

565