Viewing 7 posts - 1 through 7 (of 7 total)
Your solution works, but its slower than just creating a recursive function which is then selected as part of the select statement.
Thank you for your effort.
If you find another...
November 7, 2008 at 1:30 am
Thanks i will look at it.
Although it seems alot like my initial apprach using just a the view that i posted and a recursive function as you have written.
I thought...
November 5, 2008 at 8:23 am
I created a full example including tables, views and data required to test the SQL.
-------------------------------------------------------------------------------------------------
---- DATA STRUCTURE PREPERATION -------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-- Create a Test Schema
CREATE SCHEMA TEST
GO
-- Create a table with parent/child...
November 5, 2008 at 5:34 am
Yes i know that examples ease the job of helping.
I left out the example, cause i wanted to see if anybody had been experimenting with the same type of...
November 4, 2008 at 12:44 am
Initialize the PeriodArray Variable with blank ('')
Further, why are you using a cursor? I think you could relatively easy refactor into a funtion, which has far better performance that a...
November 3, 2008 at 8:19 am
You could either make a UNION including the rows that are left out in your select.
Or you could start by selecting all records that you want a row displayed for,...
November 3, 2008 at 3:42 am
Try to post the Query.
You could probably archieve this by using af LEFT JOIN
November 3, 2008 at 2:23 am
Viewing 7 posts - 1 through 7 (of 7 total)