Viewing 15 posts - 46 through 60 (of 1,922 total)
This?
;WITHBase As
(
SELECT *
, RN = ROW_NUMBER() OVER (ORDER BY T.TestDate)
, RN1...
July 18, 2012 at 5:17 pm
Lowell (7/18/2012)
Done!I made this because i really do feel we are begging for the same thing all the time!
I concur 100% and thank you, Lowell 🙂
July 18, 2012 at 12:32 pm
Can you also please add expected results to the placard the gentleman holds? :w00t:
July 18, 2012 at 11:03 am
What makes November the first week of last year?
{Edit: Dint look at the sample data properly}
July 18, 2012 at 10:04 am
thegoose78 (7/18/2012)
Grant..thanks for replying. I took a look at the web page, but it's hard to follow along without any real data in the examples and the results thereof.
Now take...
July 18, 2012 at 10:02 am
How do you want to handle bus routes that spawn 2 days? Say, the bus starts at 11.45 PM and stops at 1 AM the next day ? How do...
July 18, 2012 at 9:55 am
I think the OP needs to find the rows where the status changing form 0 to 1 and vice-versa. WE should consider Status = 2 as Status = 1.
July 18, 2012 at 1:43 am
CELKO (7/17/2012)
July 17, 2012 at 10:58 pm
ssc_san (7/17/2012)
ColdCoffee (7/17/2012)
ssc_san (7/17/2012)
We have a issue here, they may add other adjustment periods in the future, so it is not a fixed set of periods.
Meaning, 0,9,13,14,16 will have...
July 17, 2012 at 2:08 pm
; WITH BaseTable AS
(
SELECT T1.Class
,Names = CASE WHEN T2.Names = '' THEN '''''' ELSE T2.Names END
,T2.PK
,CT = COUNT(CASE WHEN T2.Names...
July 17, 2012 at 2:07 pm
EXCEPTIONAL REPRESENTATION OF THE PROBLEM!
Hats off 🙂
The code is on ur way!
July 17, 2012 at 1:53 pm
ssc_san (7/17/2012)
We have a issue here, they may add other adjustment periods in the future, so it is not a fixed set of periods.
Meaning, 0,9,13,14,16 will have other entries...
July 17, 2012 at 1:51 pm
This, probably?
DECLARE
@py_fl BIT ,
@fy INT ,
@p_nm VARCHAR (25),
@pr ...
July 17, 2012 at 1:40 pm
Viewing 15 posts - 46 through 60 (of 1,922 total)