Viewing 15 posts - 6,286 through 6,300 (of 10,143 total)
HUSRAF (6/7/2012)
Can someone please help me with this?
Raw Data
ID StartDate DEP EndDate
1 14/02/2011 A 14/02/2011 ...
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
June 11, 2012 at 2:18 am
anthony.green (6/11/2012)
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
June 11, 2012 at 2:09 am
Nidhi G (6/8/2012)
but coming back to my original...
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
June 8, 2012 at 9:24 am
Lynn Pettis (6/8/2012)
michael vessey (6/8/2012)
declare @mydate datetime
set @mydate=GETDATE()
SELECT dateadd(dd,4,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,@mydate))-1),DATEADD(mm,1,@mydate)),101) )
see Pinal Dave's blog post on these
edit: the other suggestions are better than mine - i did a...
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
June 8, 2012 at 9:20 am
dwilliscp (6/8/2012)
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
June 8, 2012 at 8:47 am
river1 (6/8/2012)
...CAN SOMEONE HELP?
TKS
Yes - always PRINT the string to see exactly what is generated by your code.
Simple.
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
June 8, 2012 at 8:19 am
anthony.green (6/8/2012)
Needs to become dynamic sql...
Doesn't need to, but possibly better performance than the alternative:
select * from test a
inner join test1 b
on a.id=b.module_id
where a.id=@id
and a.name=@name
AND CONVERT(CHAR(8), a.start_dt, 112) <=...
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
June 8, 2012 at 6:27 am
Can you write this query using JOINs instead of IN, which implies that you are unsure of the relative cardinality of the tables? Something similar to this perhaps:
SELECT
sub.SubCategoryId,
sub.SubCategoryName,
sub.CategoryId,
SubCategorycount =...
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
June 8, 2012 at 5:42 am
Stewart "Arturius" Campbell (6/8/2012)
wertyui (6/7/2012)
1 Type=1 or Type=2 Update NextNo = Max(NextNo)+1
2 Type=3 Update NextNo = Max(NextNo)+2 (reserved...
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
June 8, 2012 at 4:26 am
dwain.c (6/8/2012)
ChrisM@Work (6/8/2012)
dwain.c (6/5/2012)
SELECT Employee, NEW_LOB,...
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
June 8, 2012 at 2:54 am
dwain.c (6/5/2012)
SELECT Employee, NEW_LOB, NEW_DEPARTMENT, NEW_COST_CENTRE,...
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
June 8, 2012 at 1:44 am
anthony.green (6/1/2012)
I shall say this now before I forget, happy 4 day weekend to all in the UK, time to drink copious amounts of alcohol.
Oh yes! You too Anthony.
Three...
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
June 1, 2012 at 7:55 am
prakashp 84206 (6/1/2012)
The output of my query contains duplicate records (i.e. column1 value is similar but other column's value different) as well as single record having column2 value blanks(-). now...
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
June 1, 2012 at 5:41 am
John Mitchell-245523 (6/1/2012)
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
June 1, 2012 at 5:36 am
L' Eomot Inversé (5/31/2012)
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
June 1, 2012 at 5:28 am
Viewing 15 posts - 6,286 through 6,300 (of 10,143 total)