Viewing 15 posts - 2,356 through 2,370 (of 10,143 total)
sqlbidev (7/6/2015)
I have the following table struction, lets call it table A.
bookidstartdate endate
2001 2000-01-01 2000-01-05
3001 ...
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
July 6, 2015 at 7:25 am
sqlbidev (7/6/2015)
I have the following table struction, lets call it table A.
bookidstartdate endate
2001 2000-01-01 2000-01-05
3001 ...
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
July 6, 2015 at 6:40 am
mandania (7/3/2015)
they are both date type
Here's your error:
case
when Rownum<= datediff(day, salesdate, baseenddate) then DATEADD(mm, RowNum, salesdate)
else 0 end
You have two different datatypes returned by your CASE....
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
July 3, 2015 at 6:58 am
mandania (7/3/2015)
this is a piece of my code:
...
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
July 3, 2015 at 6:33 am
Koen Verbeeck (7/3/2015)
GilaMonster (7/3/2015)
TomThomson (7/3/2015)
But don't make the mistake of thinking that all-nighters are always a sign of problems, or long hours (how can long hours be "heroic"?).
No, I'm...
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
July 3, 2015 at 6:28 am
Sean Lange (7/2/2015)
jasona.work (7/2/2015)
OTOH, got plenty 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
July 2, 2015 at 7:19 am
Ed Wagner (7/2/2015)
jasona.work (7/2/2015)
OTOH, got plenty 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
July 2, 2015 at 6:59 am
Run this tweak to observe a less irregular usage 😉
;WITH CTE AS
(
SELECT 1 AS ID, 10000 AS SALARY,GETDATE() AS DOJ
UNION ALL
SELECT 1, 13000,GETDATE() - 10
UNION ALL
SELECT 3, 190000,GETDATE() +...
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
July 2, 2015 at 6:55 am
Koen Verbeeck (7/2/2015)
ChrisM@Work (7/2/2015)
Koen Verbeeck (7/2/2015)
BL0B_EATER (7/2/2015)
Yesterday it was about 35C, and I was working from home with no A/C.
Sounds good to me... were you in the garden sipping on...
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
July 2, 2015 at 6:47 am
Sam Garth (7/2/2015)
INSERT INTO #Data
VALUES
(4,'Got Dressed','2015-07-02 06:00:00.000')
And then run my query, It would show me two entries...
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
July 2, 2015 at 6:46 am
Koen Verbeeck (7/2/2015)
BL0B_EATER (7/2/2015)
Yesterday it was about 35C, and I was working from home with no A/C.
Sounds good to me... were you in the garden sipping on a cool beverage...
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
July 2, 2015 at 6:40 am
Eirikur Eiriksson (7/2/2015)
BL0B_EATER (7/2/2015)
Yesterday was ridiculous in the UK - 34C.. and in an office with no A/C.
Didn't measure the temperature in the Central Line tube yesterday but I've been...
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
July 2, 2015 at 6:40 am
BL0B_EATER (7/2/2015)
ChrisM@Work (7/2/2015)
BL0B_EATER (7/2/2015)
Yesterday was ridiculous in the UK - 34C.. and in an office with no A/C.
That's not so good. Neither were the delays on the train network -...
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
July 2, 2015 at 6:37 am
BL0B_EATER (7/2/2015)
Yesterday was ridiculous in the UK - 34C.. and in an office with no A/C.
That's not so good. Neither were the delays on the train network - it took...
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
July 2, 2015 at 5:17 am
Sam Garth (7/1/2015)
I am trying to increase performance of a query that joins a table 19 times.
The current example works similarly to below...
CREATE TABLE #Data(PersonID INT, Activity nvarchar(200), ActivityTime DATETIME)
INSERT...
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
July 1, 2015 at 7:31 am
Viewing 15 posts - 2,356 through 2,370 (of 10,143 total)