I need to return to values (@unique and @dupes).
I start with:
declare @unique int,
@dupes int
Select name, count (1) from tblTest
Group by name
Having count (1) > 1
However, I need total unique and total dupes from field 'name'.
Any advice is welcome.
I try to execute DTS package through SQL procedure. First, I created and ran DTS in ‘Enterprise Manager’. Package executed successfully. When I call this DTS package in SQL Query Analyzer - only one step of DTS is executed (Step Create Table). Other step (Step Copy Data) is failed. Here is a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.