Viewing 15 posts - 1,636 through 1,650 (of 1,923 total)
Here is another method. Again , Thanks for the Setup BOB!
;WITH CTE(RecID , RecType , Hierarchy , Msg,R)
AS
(
select RecID , RecType , Hierarchy , Msg, ROW_NUMBER() OVER(PARTITION BY RecType ORDER...
April 29, 2010 at 10:39 pm
Another variation of the same functionality but with much faster code
;WITH ORDERED_TABLE (ID, period1, R1, pname1, R2)
AS
(SELECT ID1
,period1, ROW_NUMBER() OVER(PARTITION BY ID1 ORDER BY...
April 29, 2010 at 5:53 am
Jinx-640161 (4/29/2010)
The error I get is: Incorrect syntax near '.'.
Can one use a variable like...
April 29, 2010 at 5:04 am
Beuatifully asked question and i-hope-it-is-beautiful code 😀
Here you go
;WITH perid_CTE (ID, c1, c2, c3) AS
(
SELECT ID1, [1] PERIOD1,[2] PERIOD2,[3] PERIOD3 FROM
(SELECT ID1, PERIOD1, ROW_NUMBER() OVER(PARTITION BY ID1 ORDER BY...
April 29, 2010 at 4:49 am
jwellington (4/29/2010)
Thanks for your post. I understand your frustration. Thanks so much for the information you have helped me with so far. It has certainly put me on the...
April 29, 2010 at 1:46 am
Wellington, as i had already asked, i need to see the records in your table (i dont want your orginal data, you may very well cook-up data that looks similar...
April 29, 2010 at 12:39 am
Ok, as you have decided to forgo the date fomat, it becomes my duty to provide you the code that will replace NULL dates with 'N/A'.
Here is that final (presumably...
April 28, 2010 at 11:27 pm
My pleasure, explaining and learning with you, George!
April 28, 2010 at 8:36 pm
Oh Oh.. thats what..i was scratching my head to find this out.. Thanks Peter 🙂
April 28, 2010 at 7:05 am
Peter, i have got one doubt actually.. not related to the OP's request, but general doubt..
in your code , you have given the INSERT statement as
INSERT INTO @MissingNumbers
VALUES (1),(2),(4),(5),(7),(8),(11),(12),(13),(15),(17),(19),(20)
When i...
April 28, 2010 at 6:57 am
Hi Buddy,how about you going through this following article and helping us help you?? 🙂
CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]
When u do so, i am sure a...
April 28, 2010 at 6:01 am
Yana, you will have to use Dynamic SQL if you are unsure of the start and end dates.. Here is that piece of code..
SET NOCOUNT ON
IF OBJECT_ID('TEMPDB..#SomeTable1') IS NOT...
April 28, 2010 at 5:24 am
Viewing 15 posts - 1,636 through 1,650 (of 1,923 total)