cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SQL Expression Field

0 Likes
414

I am designing a web project for report card in Crystal report with Visual Studio for students having tables

marks_entry (to enter marks and weightage scored by student in various exams)

subject_6 to store subjects of class 6

And in the report i want to have the weightage of a particular subject and exam, for which i have created a sql expression field having following query (to get the weightage of periodic test for first term in English subject)

( Select `marks_entry`.`weightage`

from marks_entry

where `marks_entry`.`exam`="Periodic Test" and

`marks_entry`.`subject`=`subject_6`.`language1`

and `marks_entry`.`term`="First" )

but i am getting 0.0 as answer whereas the value to be displayed should be 7.6.

Kindly help me to sort out the problem or provide a better alternative.

Thanks

View Entire Topic
0 Likes