Viewing 15 posts - 1,621 through 1,635 (of 2,469 total)
ok - then try this: (assuming status is ALWAYS 'N' & only Amount changes based on betType....)
insert into Winner(UserID, Amount, Status)
select UserID,
Amount = case
when betType = 'OD' then 20
when...
**ASCII stupid question, get a stupid ANSI !!!**
July 28, 2005 at 9:04 am
raj - i just threw in the other stuff IN CASE you had more conditions...
where are you getting the V_ID (is this an identity column ?!) & USERID from ?!
**ASCII stupid question, get a stupid ANSI !!!**
July 28, 2005 at 8:46 am
try tweaking this around...I don't have time to test:
insert into Winner(Amount, Status)
select Amount = case
when betType = 'OD' then 20
when betType = 'OC' then 10 etc....
end,
Status =...
**ASCII stupid question, get a stupid ANSI !!!**
July 28, 2005 at 8:25 am
okay - can't test this right now - but I think Merrill had your answer ?!?! - is this what you want ?!
SELECT A.* FROM tblTest A
INNER JOIN
(SELECT TOP...
**ASCII stupid question, get a stupid ANSI !!!**
July 28, 2005 at 8:00 am
how do you assign the coupon codes now?! do you just look for any that are "not assigned" and assign one to a new user ?!
how does your CouponCodes table...
**ASCII stupid question, get a stupid ANSI !!!**
July 28, 2005 at 12:03 am
that's weird! do you have any triggers set on this table ?! I think it maybe something in a trigger that just inserts the deleted row back!
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 11:47 pm
- darn but this t-sql stuff is so addictive! ![]()
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 11:24 pm
raj - not sure if this is what you're looking for since I'm not sure what the schema of your Draw table is...but this should at least get you started...
CREATE...
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 11:21 pm
brain strain is right
- here's one solution that I learned from a member called Vladan loooong ago...
SELECT Shipper, Dest, SUM(Weight)
FROM @Table1 A
WHERE...
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 10:58 pm
Quoi ?!?!
My big discovery was 2 days ago...and how come you always know which forums call out your name remi ?! do you actually get email notification everytime someone says...
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 4:47 pm
do you mean that they might enter something like "32 laurel lane"; "laurel ln 32" etc..?! just making sure I understand the question!!
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 4:44 pm
also in ken henderson's book - & probably a lot of other places...but the point is that you know and retain these facts and many of us don't...![]()
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 4:41 pm
WOW! Who'd have thought?!?! I always thought you were french (your name ![]()
Habla Español then ?! am still reeling under the shock of this...
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 2:10 pm
He's our resident genius - Phil - that's how!![]()
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 2:04 pm
something new you learn everyday...![]()
as for "objective and media resource " being used in the same sentence...not to be rude or anything - but...
**ASCII stupid question, get a stupid ANSI !!!**
July 27, 2005 at 12:11 pm
Viewing 15 posts - 1,621 through 1,635 (of 2,469 total)