Consider the table T1 it consits
A,2,3,4
consider another table t2 it contain
1,2a,3a,4a
now i need o get the upadted answer

Answers were Sorted based on User's Feedback



Consider the table T1 it consits A,2,3,4 consider another table t2 it contain 1,2a,3a,4a now i n..

Answer / rakesh c sunagar

--select name from #t where ISNUMERIC(name)<>1
--union
--select name from #t1

Is This Answer Correct ?    0 Yes 0 No

Consider the table T1 it consits A,2,3,4 consider another table t2 it contain 1,2a,3a,4a now i n..

Answer / rajesh

to get zero u must apply intersect set statement between
select statements of table1 and select statement of table2
syntax:
select * from t1
intersect
select * from t2

Is This Answer Correct ?    0 Yes 1 No

Consider the table T1 it consits A,2,3,4 consider another table t2 it contain 1,2a,3a,4a now i n..

Answer / sreekanthb87

t1
A,2,3,4
t2
1,2a,3a,4a
now union of tw0 table must be
A,1,2,2a,3,3a,4,4a

now how you write the qurey ,the answer should be
A,1,2a,3a,4a


Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL Server Interview Questions

What are the different types of replication? How are they used?

3 Answers  


What is normalization of database?

0 Answers  


What is Query Execution Plan? How does it help optimize or tune a database driven application?

2 Answers   Accenture, Polaris,


How we Resize table,temp table, database and log file size in SQL Server 2005

1 Answers   ABC,


Why do you need a sql server?

0 Answers  






What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

0 Answers  


How do you start single user mode in clustered installations?

0 Answers  


Define synonym?

0 Answers  


Explain features and concepts of analysis services?

0 Answers  


What is normalization and what are the advantages of it?

0 Answers  


What is the difference between function and stored procedure in sql server?

0 Answers  


How to select nth record from a table?

13 Answers   DELL, Microsoft, Ramco,


Categories