Viewing 15 posts - 49,771 through 49,785 (of 59,078 total)
Heh... I wonder if the use of UNPIVOT constitutes cheating too much in this case?
Still, some awesome code... Thanks Jeff W and Peter. I really didn't think it could...
June 23, 2008 at 7:49 am
Haven't checked it for accuracy, but that's more like it... getting real close to the Cross Tab version of the code for performance. Thanks, Peter.
June 23, 2008 at 7:44 am
jcrawf02 (6/23/2008)
I'd buy the...
June 23, 2008 at 7:38 am
Peso (6/23/2008)
You didn't dare to post the question on "the other forum"? 😀
Nah... I knew great minds like yours would eventually show up... Besides... I didn't want to get one...
June 23, 2008 at 6:49 am
Anirban Paul (6/23/2008)
June 23, 2008 at 6:00 am
Jeffrey Williams (6/22/2008)
June 23, 2008 at 5:42 am
rbarryyoung (6/22/2008)
Jeff Moden (6/22/2008)
I'm trying to find out if there's a way to do it using a single Pivot.
Heh. What were we saying just yesterday about posters and their...
June 23, 2008 at 5:22 am
Jeffrey Williams (6/22/2008)
June 23, 2008 at 5:18 am
Thanks, Jeff! Great example of how to do it with 2 derived tables... 🙂
Does anyone know how to do it using a single pivot or are we relegated to...
June 22, 2008 at 9:50 pm
Heh... in this situation, you're rebuilding the view! It's gonna recompile no matter what... 😉 Works fine in production code especially in 2k where there's no such thing...
June 22, 2008 at 8:59 pm
Just in case someone wants to "play", here's the Cross Tab code I'm trying to duplicate with a single pivot...
SELECT Company,
Year,
...
June 22, 2008 at 8:44 pm
sriharivittal1 (5/28/2008)
Can some one provide Sample Code?
You want sample code? Then provide some sample data. Please see, read, understand, and follow the article in the link in my...
June 22, 2008 at 4:33 pm
venki (6/22/2008)
I tried to use the for loop in my stored procedure but I haven't found it's working and...
June 22, 2008 at 4:27 pm
Whether you use SELECT * or not, if you want to see the table changes in a view, you have to recompile the view. Like Barry said, this is...
June 22, 2008 at 4:23 pm
Save us all some time... post the stored procedure that you're trying to convert into a view.
June 22, 2008 at 2:05 pm
Viewing 15 posts - 49,771 through 49,785 (of 59,078 total)