There is a table1 with records (1,2,3,4,5,6) and table2
with records (4,5,6,7,8,9).write a query so as to get the
result as 1,2,3,4,5,6,7,8,9
Answer Posted / sushama kumari
select col1,col2 from table1 union table2 is an incorrect
answer.
Following 2 are corrcet answers:
1.
select * from table1
union
select * from table2
2.
select col1 from table1
union
select col2 from table2
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is row_number () and partition by in sql server?
What is the difference between char, varchar and nvarchar?
What is the use of “join” in sql server?
Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60
Write a query to find 5th highest amount paid from the customer table.
Which are the new data types introduced in sql server 2008?
What is star, snowflake and star flake schema? : sql server analysis services, ssas
How to add more data to the testing table in ms sql server?
What are the differences between ms sql server & oracle?
What is 2nf normalization?
How to use "begin ... End" statement structures in ms sql server?
How does normalization work?
Do you know clustered and non-clustered index?
Is it important for a database administrator to understand the operating system and file access?
Give me any three differences between Truncate and Delete.