Viewing 5 posts - 211 through 216 (of 216 total)
Hi
Did you try:
UPDATE mytable SET mycol = 'new vlaue' WHERE 'col' = 'value'
IF @@ROWCOUNT = 0
RAISERROR('No rows updated',16,1)
Regards
Mike
June 21, 2013 at 6:19 am
Jonathan AC Roberts (4/2/2012)
michal.lisinski (4/2/2012)
SELECT DISTINCT CustomerID
FROM [#Purchase]
WHERE (ProductCode IN ('A','B')) AND (CustomerID NOT IN
...
April 2, 2012 at 7:15 am
Jonathan AC Roberts (4/2/2012)
michal.lisinski (4/2/2012)
SELECT DISTINCT CustomerID
FROM [#Purchase]
WHERE (ProductCode IN ('A','B')) AND (CustomerID NOT IN
...
April 2, 2012 at 7:14 am
Hmm, r u sure? Customer no 6 took product A and no B, customer 7 took product B and no A, both didn't take C, but query doesn't return...
April 2, 2012 at 7:00 am
Imho
SELECT DISTINCT CustomerID
FROM [#Purchase]
WHERE (ProductCode IN ('A','B')) AND (CustomerID NOT IN
...
April 2, 2012 at 5:38 am
Viewing 5 posts - 211 through 216 (of 216 total)