The Result table: Cno, Sno, Result, Semester
CodePudding user response:
What do you mean by field doesn't indicate, so it is good to write variables aboutDeclare @ Score a decimal (19, 2) - Score
Declare @ ClassNo varchar (50), course number
The SET @ Score=80
The SET @ ClassNo='0102002'
- query (the fields in the table you and actual replacement)
SELECT * FROM Result
WHERE Score<@ Score AND ClassNo=@ ClassNo