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
Answers were Sorted based on User's Feedback
Answer / 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 |
How do I view a trc file?
How to Run a Query on a Remote SQL Server?
How do you find value of first column before inserting value into the second column in the same table for checking that second column must have different value than first column.
What is the difference between delete and truncate statements?
What is efficiency data?
Explain what is sql server english query?
What are secondary xml indexes?
how can a database be repaired? : Sql server administration
How to give a user the option of importing Excel and a delimited text file into a SQL Server Database without manually using SQL DTS?
What do you understand by triggers and mention the different types of it?
What happens if the update subquery returns multiple rows in ms sql server?
What is indexing in sql server with example?
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)