Viewing 15 posts - 376 through 390 (of 491 total)
Drew,
Thank You so much.
I resolved it by adding new columns.
August 19, 2009 at 7:09 am
Drew,
I understand.
One last question from my side.
Do you want me to add new columns to my trg?
Am asking this becuase we dont have any permissions to add those new...
August 19, 2009 at 12:07 am
In the above scenario, if u can hold the district count, then it would solve the problem.
Please correct me if am wrong.
August 18, 2009 at 9:58 pm
Drew,
I need this help from you.
It is urgent!!!
Thanks in advance.
August 18, 2009 at 9:39 pm
Drew,
Here is what i actual want!!!!
Am not getting how to achieve this dynamically.
I need your help!
The reason why i am stressing to get the src record count is,i have...
August 18, 2009 at 9:24 pm
Now my ddl / dml will be as follows
DROP TABLE #test
create table #test
( yr int,
dist varchar(10),
school varchar(10),
history int,
science int,
commerce int
)
GO
insert #test(yr,dist,school,history,science,commerce) values(1991,'D1','S1','100','400',null)
insert #test(yr,dist,school,history,science,commerce) values(1991,'D1','S1','300','504','305')
insert #test(yr,dist,school,history,science,commerce) values(1991,'D1','S1','358','650',null)
insert #test(yr,dist,school,history,science,commerce) values(1992,'D1','S1','100','400',null)
insert...
August 18, 2009 at 7:18 pm
Why i am asking because suppose if i have multiple years data and i want to show the report as follows then,
how can i do that.
Assuming my final data in...
August 18, 2009 at 7:07 pm
i.e . irrespective of district and school. i need the overall students attended for the exam. From source file,it is clear we are having 3 records. Right? that i need...
August 18, 2009 at 6:53 pm
Hi Drew,
You are right on. using this method we can get the correct averages.
Now we are placed with final output as below. Right?
Using the below output, how can i get...
August 18, 2009 at 6:50 pm
Hi Frank,
You are right on!
I have done the same thing yesterday!
SUM(T.STUDENT_COUNT*CONVERT(Decimal(9,2),SCORE))/SUM(T.STUDENT_COUNT) As AvgScore
The thing is, the nature of the client data is like that.
Thank You All.
August 17, 2009 at 7:51 pm
Hi Miller,
Thanks for the input. Thanks for the CTE. Am still working for the work around.
As you said, both the averages are correct in differenct circumstances but the thing is,...
August 16, 2009 at 11:24 am
Hi Arun,
I have put up some meaningful data for you.
CREATE TABLE ExcelData
(yr int,
CollegeName varchar(20),
race varchar(20),
gender varchar(20),
history varchar(10),
science varchar(10),
commerce varchar(10)
)
insert into ExcelData
select...
August 16, 2009 at 12:33 am
Viewing 15 posts - 376 through 390 (of 491 total)