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

Mention the uses of stored procedures.

0 Answers  


What is database dimension? : sql server analysis services, ssas

0 Answers  


What is dirty page?

0 Answers  


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

0 Answers   ABC, TCS,


How to execute stored procedure in select statement sql server?

0 Answers  






Explain the collation?

0 Answers  


what is a schema in sql server 2005? : Sql server database administration

0 Answers  


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

0 Answers  


role of sql sever 2005 in database rather than any other database

0 Answers  


How to stop a loop early with break statements in ms sql server?

0 Answers  


What are the new scripting capabilities of ssms? : sql server management studio

0 Answers  


What is the difference between a clustered index and a non-clustered index?

0 Answers  


Categories