Viewing 15 posts - 8,596 through 8,610 (of 8,730 total)
This way is easier for everyone
http://www.johnsansom.com/performance-comparison-of-select-top-1-verses-max/
August 14, 2012 at 8:56 am
I know it's been said that there are no magical solutions, but how about upgrading the server to use backup compression?
PS. Could you avoid sms language?
August 14, 2012 at 8:17 am
Scott D. Jacobson (8/14/2012)
August 14, 2012 at 7:47 am
Is REF_DOC a unique value? Or do you have it several times in ztb_Carrier_Delivery_Metrics?
As I see it, this is a problem with your data.
EDIT: Could you show us your code...
August 14, 2012 at 7:37 am
Scott Arendt (8/14/2012)
I just don't get the "shock" interview mentality. My boss did this to one of my co-workers. He brought him in for an interview and about half way...
August 14, 2012 at 7:07 am
From what I remember, The Matrix trilogy is about a loop and a conditional BREAK. So they wouldn't be set-based. I would call them simple RBAR. :-D:-P
August 14, 2012 at 7:01 am
timothy.shawley (8/13/2012)
August 13, 2012 at 3:11 pm
The main advantage is the storage 4bytes against 20bytes.
Another advantage would be the ease of creation for new identities (SQL Server will create them automatically).
However, there's a constant debate on...
August 13, 2012 at 2:10 pm
You should use an IF...ELSE... statement if you want to evaluate a condition.
With your query you're assigning the value to the variable, not comparing. It should be like this.
IF @CurrentDay...
August 13, 2012 at 1:31 pm
I like Notepad++ very much, but I can't figure out why would you be interested in buying a software to run queries in it instead of doing it in SSMS.
I'm...
August 13, 2012 at 8:38 am
I can't try it in here, but have you tried to assign the default value to REPLICATE( '0', 15)?
August 10, 2012 at 1:45 pm
I have an idea, but could you please post DDL before I start working on it?
Have you seen Jeff Moden's articles on Hidden RBAR?
August 10, 2012 at 1:23 pm
SQL_NuB (8/10/2012)
my query looks something like this (I can't show the actual ddl or query)
But you could change the names of the table and columns and post some DDL and...
August 10, 2012 at 1:15 pm
Just guessing...
;WITH Top5 AS(
SELECT TOP 5
state,
COUNT( DISTINCT customer) AS customers
...
August 10, 2012 at 1:11 pm
You could also consider using CTEs.
WITH Notifications AS (
SELECT sales_order_number
, count(sales_order_number) as Notification_cnt
FROM...
August 10, 2012 at 11:51 am
Viewing 15 posts - 8,596 through 8,610 (of 8,730 total)