Viewing 15 posts - 6,271 through 6,285 (of 7,597 total)
I'm truly curious now:
Can anyone tell me:
Where "IS NULL" can't be used in place of ISNULL()?
December 18, 2013 at 5:43 pm
Evil Kraig F (12/18/2013)
I'm not sure how that's more or less obscure, but it's certainly easier for me to read. I work with a lot of 'iffy' data in...
December 18, 2013 at 5:42 pm
Lynn Pettis (12/18/2013)
ScottPletcher (12/18/2013)
Lynn Pettis (12/18/2013)
Lynn Pettis (12/18/2013)
Luis Cazares (12/18/2013)
ScottPletcher (12/18/2013)
December 18, 2013 at 5:31 pm
Lynn Pettis (12/18/2013)
Lynn Pettis (12/18/2013)
Luis Cazares (12/18/2013)
ScottPletcher (12/18/2013)
December 18, 2013 at 5:24 pm
Lynn Pettis (12/18/2013)
Luis Cazares (12/18/2013)
ScottPletcher (12/18/2013)
IF...
December 18, 2013 at 5:18 pm
Luis Cazares (12/18/2013)
ScottPletcher (12/18/2013)
IF (@category IS...
December 18, 2013 at 5:12 pm
If your lookups will most often be by column2, you need to cluster the table on column2, or an encoded version of it, rather than having a dopey, useless cluster...
December 18, 2013 at 4:40 pm
Yes, definitely do a logical design first. Don't even think about artificial keys yet.
You need to identify "entity" and "attribute". Roughly:
Entity = things about which you store unique...
December 18, 2013 at 4:13 pm
Better to avoid ISNULL, since you should never use it in a WHERE clause. I also think that exactly what's being tested is clearer.
IF (@category IS NULL OR @category...
December 18, 2013 at 3:48 pm
Rewriting the query and/or adding nonclustered indexes won't help, unless you basically rewrite the entire table by including a gazillion in the nonclus index(es) -- and constantly maintain it as...
December 17, 2013 at 1:42 pm
I think you need a GROUP BY rather than a DISTINCT.
Is the code below closer/close to the final output you want?
SELECT
e.ID,e.FirstName,e.Area
,s.ID,s.Qty,s.ProductName, s.Sale
FROM...
December 16, 2013 at 10:52 am
Sean Lange (12/16/2013)
December 16, 2013 at 10:36 am
kapil_kk (12/14/2013)
ScottPletcher (12/13/2013)
1) Capture and save the existing index missing/usage stats for that table immediately, before any hanges are made.
2) Run...
December 14, 2013 at 2:44 pm
I suggest making index changes scripted below, following these steps:
1) Capture and save the existing index missing/usage stats for that table immediately, before any hanges are made.
2) Run the code...
December 13, 2013 at 10:35 am
1) Maybe you can combine the three separate UPDATEs into one, as shown below, avoiding repeated joins of the same tables.
2) Depending on the row counts, you might consider creating...
December 12, 2013 at 2:04 pm
Viewing 15 posts - 6,271 through 6,285 (of 7,597 total)