pankaj pareek
Thursday, July 25, 2013
Selecting data from two different servers in SQL Server
exec sp_addlinkedserver @server = 'MainServer'
select * from [MainServer].[TestDB].[dbo].[Emp]
Wednesday, July 24, 2013
Selecting SQL Data with Non-Duplicate Column Values
select A.ClaimNo
from ClaimsDetails A
join ClaimsDetails B
on A.ClaimNo=B.ClaimNo
where B.IsActive='N'
group by A.ClaimNo
having COUNT(A.ClaimNo) = 1
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)