what will be the output:
select 1 from emp
union all
select 2 from emp;
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ankush
it returns the number 1 same number columns as well as
union with the value 2 again with the same number of
columns the table emp have.
Is This Answer Correct ? | 0 Yes | 6 No |
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is primary key and unique key?
Main diff between varray and nested tablea
what is foreign key? : Sql dba
Can I create table without primary key?
What is an inner join sql?
What are the two virtual tables available at the time of database trigger execution?
What are the differences between in and exists clause?
What is foreign key sql?
What is Histogram?
how instead of triger is helpful for mutating tables errors handlling ?
Why is sql important?