Viewing 15 posts - 2,356 through 2,370 (of 10,144 total)
sqlbidev (7/6/2015)
July 6, 2015 at 7:38 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 ...
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 ...
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....
July 3, 2015 at 6:58 am
mandania (7/3/2015)
this is a piece of my code:
...
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...
July 3, 2015 at 6:28 am
Sean Lange (7/2/2015)
jasona.work (7/2/2015)
OTOH, got plenty to...
July 2, 2015 at 7:19 am
Ed Wagner (7/2/2015)
jasona.work (7/2/2015)
OTOH, got plenty to...
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() +...
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...
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...
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...
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...
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 -...
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...
July 2, 2015 at 5:17 am
Viewing 15 posts - 2,356 through 2,370 (of 10,144 total)