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 |
What are records give examples?
How delete a row in sql?
What is pl sql block structure?
Which is better stored procedure or query?
What is numeric function sql?
Explain the rollback statement?
i have a customer table. trans_id trans_date trans_amt debit_credit_indicator 001 01-JAN-13 1099 cr 001 12-JAN-13 500 db 002 24-FEB-13 400 db 002 23-MAR-13 345 cr 001 18-APR-13 800 cr 002 15-MAR-13 600 db 001 12-FEB-13 200 cr i want like this output. trans_id trans_amt debit_credit_indicator i want get highest credit amount and lowest credit amount and highest debit amount and lowest debit amount for each trans_id. pls give me answer. i want urgent
What are sql queries used for?
which will default fire first statement level trigger or row level trigger
2 Answers Cap Gemini, Data Vision,
What is a dirty read sql?
how to fetch alternate records from a table? : Sql dba
Where not exists in sql?