Viewing 15 posts - 1,066 through 1,080 (of 1,473 total)
Please refer to the link in my signature for an example of how to post table DDL / Sample Data here. Once we have that, we can get you...
November 21, 2008 at 7:43 am
Indeed. The problem at the moment is that I don't really understand how to read execution plans / see the specifics of which might be better for what reason....
November 20, 2008 at 2:41 pm
GilaMonster (11/20/2008)
Duplicates in an IN are ignored. All that's important to the IN is what values exist, not how many times...
November 20, 2008 at 10:50 am
Makes sense. That said, I've read that in certain circumstances, such as IN clauses, it's usually beneficial to add DISTINCT, even if you shouldn't really need it. Not...
November 20, 2008 at 10:40 am
Hi.. I don´t need exactly the value as you sample in your query
SELECT '2008-11-17',569512.00 UNION all
SELECT '2008-11-17',966786.00 UNION all
SELECT '2008-11-17',465119.00
I need the value of this field subtract from...
November 20, 2008 at 10:33 am
Can you make this join 1 to 1 ? b.BRL_ID = d.BRL_ID
Where did you read that DISTINCT had a high cost associated with it?
November 20, 2008 at 9:48 am
Please refer to the link in my signature for how to post table definition / sample data here.
November 19, 2008 at 1:22 pm
I'm thinking something like this should also work... assuming username is enforced unique.
[font="Courier New"]UPDATE @AppUsers
SET UserName = COALESCE(@NewUserName, UserName),
Classification = COALESCE(@NewClassification,Classification),
Merchant = COALESCE(@NewMerchant,Merchant)
WHERE UserName = @OldUserName[/font]
The quirk of this method is...
November 19, 2008 at 11:36 am
You were actually really close. The error likely comes from the double quotes instead of single quotes. What does this give you?
--UPDATE [StarcalClone].[StarCal].[tbl_user]
SELECT [starcalclone].[StarCal].[tbl_user].[s_name], CP.[last_first_name], *
--SET ...
November 19, 2008 at 11:03 am
If RedundantData is constantly being written to, you could possibly have some issues with extra rows being deleted in the second or third delete statements that weren't deleted out of...
November 19, 2008 at 8:34 am
Instead of:
declare @id varchar (10)
declare id_cur cursor for
select id
from redundantdata
open id_cur
fetch next from...
November 19, 2008 at 8:26 am
I don't really understand how that's going to work better than the method I proposed. Don't get me wrong, it doesn't bother me that you're going a different route,...
November 18, 2008 at 9:30 pm
Please read the article in my signature on how to post table definition / sample data here. This could be very simple or somewhat difficult depending on the structure...
November 18, 2008 at 6:22 pm
Viewing 15 posts - 1,066 through 1,080 (of 1,473 total)