P
Pejo
I'm going to create a simple report that will give me the percentages of
each mark to occur
in each field.
The Table looks something like.
tbl_Tests
Test_1 Test_2 Test_3
a b a
c b b
a b c
a c a
b c b
I've created the following sql to give me the averages for one column at a
time.
SELECT Test_# AS Mark, (Count(Test_#)/(SELECT count(Test_#) FROM
tbl_TESTS )*100) AS Percentage
FROM tbl_TESTS
GROUP BY Test_#;
I want to be able to replace the Test_# with a paramater in this case.
If I run the query without parameters IE replace the Test_# in all
occurences with Test_1 It works fine...but as soon as I try to add the
parameters it screws up bad.
any thoughts??
each mark to occur
in each field.
The Table looks something like.
tbl_Tests
Test_1 Test_2 Test_3
a b a
c b b
a b c
a c a
b c b
I've created the following sql to give me the averages for one column at a
time.
SELECT Test_# AS Mark, (Count(Test_#)/(SELECT count(Test_#) FROM
tbl_TESTS )*100) AS Percentage
FROM tbl_TESTS
GROUP BY Test_#;
I want to be able to replace the Test_# with a paramater in this case.
If I run the query without parameters IE replace the Test_# in all
occurences with Test_1 It works fine...but as soon as I try to add the
parameters it screws up bad.
any thoughts??