Viewing 15 posts - 7,411 through 7,425 (of 10,143 total)
Brandie Tarvin (9/10/2010)
Chris Morris-439714 (9/10/2010)
Brandie, what's @=Pbbt?
It's like a raspberry, sticking one's tongue out, making the phbbt noise, and probably drenching everyone in the vicinity in the process.
You're the...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 8:27 am
Balance (9/10/2010)
Thanks chap - code probably too embarassing to post!;-)
If you think there's room for improvement, then post it - don't be shy, we're all learners here.
Anyway, the coffee lands...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 8:24 am
Brandie, what's @=Pbbt?
It looks like Cyclops eating a bacon butty badly.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 8:16 am
Jeff's excellent article will explain string splitting - if you're unsure of anything, just ask.
This
(SELECT TOP 200 [n] = ROW_NUMBER() OVER(ORDER BY [name]) FROM master.dbo.syscolumns) n is a mini...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 8:11 am
dbowlin (9/10/2010)
Stuart Davies (9/9/2010)
peripateticI walk every day, but usually in circles.
Similar to a groundsman then - who walks every day, frequently in circles 😛
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 7:26 am
There is no guarantee that rows will be returned in any particular unless ORDER BY is specified.
There is also no guarantee that rows will be inserted in a particular order,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 6:16 am
vani_r14 (9/8/2010)
I have a function called Split and i would like to know - If can call that function in the where clause of Select Statement. This is a Table...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 5:37 am
the_rutter (9/10/2010)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 5:02 am
Look at it again. A cross join doesn't have to generate millions and millions of rows, and since you've got a filter on the derived table, this one won't, it...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 4:31 am
The question is moot really. Since neither the derived table mostRecentStatus
nor the table orderlinestatus are joined to orders or orderlines, you have a cross join.
Try this instead:
SELECT
o.[Order],
ol.product,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 3:49 am
This couldn't have come at a better time, Wayne & I had something similar this week. Can you post the ddl for the table, along with a few INSERTs to...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 2:59 am
Please post the ddl for the table, and the complete update statement which you are currently using.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 2:34 am
Alvin Ramard (9/9/2010)
Jeff Moden (9/9/2010)
dave-dj (9/9/2010)
As always the ladies and gents of sqlserver central have been a great help.!
Everyday...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 10, 2010 at 2:17 am
-- the stored procedure returns a DATETIME data type:
DECLARE @MyDate nvarchar(255)
SET @MyDate = GETDATE()
SELECT @MyDate
-- 'Sep 9 2010 4:46PM'
-- You need to CONVERT the output to a character...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 9, 2010 at 9:51 am
No worries.
Consider making your WHERE clauses SARGable:
DECLARE @Startmonth DATE, @Endmonth DATE, @Startday DATE, @Endday DATE
SET @Startmonth = DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0)
SET @Endmonth = DATEADD(MONTH,1,@Startmonth)
SET @Startday = DATEADD(day,DATEDIFF(day,0,GETDATE()),0)
SET @Endday = DATEADD(day,1,@Startday)
SELECT @Startmonth, @Endmonth, @Startday,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 9, 2010 at 9:24 am
Viewing 15 posts - 7,411 through 7,425 (of 10,143 total)