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 |
how to return query output in html format? : Sql dba
explain the options of myisamchk to improve the performance of a table. : Sql dba
Is pl sql better than sql?
Is left join inner or outer?
How do I install microsoft sql?
Give which cursor is better for better performance means type of cursors?
What is trigger in sql?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
How do I clear the screen in sql plus?
7. Where would you look for errors from the database design?
How do you truncate?
in materialized view the structure will create immediately or not?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)