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 / guru

Union gives the result in two records

We have to use cross join like below



select * from table1,table2

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between upgrade and migration in sql server?

585


How to find the login name linked to a given user name?

528


What is the full form of ddl?

505


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

501


Why does sql studio use a single registered database repository? : sql server management studio

526






what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

526


Can a unique index be created on a column, which contains null?

519


how you can deploy an ssrs report?

127


What is #temp and @table variable in SQL server?

576


How to join two tables in a single query in ms sql server?

537


What are the restrictions applicable while creating views? : SQL Server Architecture

584


How can you start sql server in different modes?

503


What is the data type of time?

511


How many types of built in functions are there in sql server 2012?

488


Can you explain what is indexed view? How to create it?

522