Viewing 15 posts - 91 through 105 (of 105 total)
EDITED: Yeah, what Lynn said below. That's why I'm the Grasshopper and he's the coach 🙂
August 14, 2012 at 1:29 pm
That is incredibly helpful! Thank you so much for the time and energy you put into the explanation. I know I'll be visiting this more than once!
April 16, 2012 at 9:20 am
ColdCoffee (4/12/2012)
SELECT Male = SUM (S.Male) ,Female = SUM(s.Female) ,Averg = MAX(s.Averg)
FROM
(
SELECT
Male = CASE WHEN Person_Gender = 'Male '...
April 12, 2012 at 12:19 pm
O.k., here is some test data for the scenario. Thanks again for all the help.
CREATE TABLE Listing
(
Person_IDCHAR(10)NOT NULL,
Program_Version_Code_ListingCHAR(10)NOT NULL,
Entity_Status_ListingVARCHAR(25)NOT NULL,
)
CREATE TABLE Person
(
Person_IDCHAR(10)NOT NULL,
Person_GenderCHAR(10)NOT NULL,
Birth_Date_StudentDATENOT NULL,
)
INSERT INTO Listing
(
Person_ID,
Program_Version_Code_Listing,
Entity_Status_Listing
)
VALUES
(234543, 'AR-2016', 'Accept'),
(846468, 'AR-2016',...
April 12, 2012 at 10:00 am
vinu512 (4/11/2012)
Please post the DDL of the tables and sample data so thatits easier for us to understand and provide a solution.Vinu Vijayan
Sure thing. Give me a little to create...
April 12, 2012 at 8:57 am
Why dont u add the AVG statment in your inner query and use it as one of the columns in PIVOT Statement?
That is what I want to do, I'm just...
April 12, 2012 at 8:46 am
Thanks for the reply. I see three books that are closely related:
Teo Lachev
http://www.amazon.com/Applied-Microsoft-Server-Reporting-Services/dp/0976635313
Paul Turley
http://www.amazon.com/Microsoft-Server-Reporting-Services-Recipes/dp/0470563117/ref=pd_bxgy_b_text_c
Brian Larsen
http://www.amazon.com/Microsoft-Server-2008-Reporting-Services/dp/0071548084/ref=pd_bxgy_b_text_b
I was thinking of starting with Larsen since it has the best reviews. Any thoughts on...
April 10, 2012 at 2:01 pm
patrickmcginnis59 (3/27/2012)
According to your post you have:
...
ORDER BY cte.Admission_Exam_Score desc ) pos
which looks like its not the date 😉
As I was saying... 🙂
Thanks so much for the help. I'll get...
March 27, 2012 at 11:57 am
One more question on this. My row_number doesn't seem to be working in a few instances. Here's what I have:
WITH cte AS
(
SELECT
'CVPA~SIS~AD~Ad_Exam~' + CAST(Ad_Exam.Admission_Exam_ID AS NVARCHAR) AS PKEY_CVPA_SIS_AD_Admission_Exam ...
March 27, 2012 at 11:06 am
Lutz,
Yes, I was working through the replies in order. You nailed it! I know you're probably busy, but would you mind explaining how it works? I don't understand 'WITH cte...
March 20, 2012 at 3:59 pm
Thanks for the reply. The results should be something like this: (I apologize for the format - I can't for the life of me figure how to make it look...
March 20, 2012 at 3:39 pm
O.k., I've been working on this. I've created a test scenario below. I really apologize if it's helpful or too much, but I thought it might give the clearest explanation...
March 20, 2012 at 1:31 pm
Thanks, Lutz. I think I understand - One result set per Student_ID as long as the other rows match in every column except AP_Ex.Ap_Expt_Date. If you don't mind another question...
February 13, 2012 at 1:28 pm
Thanks for your reply. Can I only get a good result set if I take all of the other fields out of the select query? Those contain information I'm going...
February 13, 2012 at 12:46 pm
Viewing 15 posts - 91 through 105 (of 105 total)