The Following query is Generic Query, you can do it for any keyword,
Select Distinct ID, KeyWord
From
(
Select
ID,
KeyWord,
(Select Count(Distinct KeyWord) From Ta Sub Where Sub.Id = Main.Id) KeyWordCount
From
Ta Main
) as Data
Where
KeyWord = 'ISV'
And KeyWordCount = 1
Buddy,
Write a query something like this,
Insert INto facility
Select facilityID + 1000, othercolumns From facility;
Note:
You can add any number which doesnot create any duplicate with the existing record. here I added 1000..
Hey mark1110,
You can do it with out using DTS.
If the both tables are in same tables,
Insert Into Address Select * From Temp_Address;
If the both tables are in same server & different Database,
Insert Into [DataBaseName]..Address Select * From [DataBaseName]..Temp_Address;
If the tables are...
Stop Guys....
@BadPattern2 is declared as Char(10)
so @BadPattern2 = '713,' will be stroed as '713, '
"713," with 6 Spaces...
Hey warelock,
use varchar instead of char for BadPattern2
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.