posted 16 years ago
This is my table
Sno Close1 avg
1 150 110
2 210 175
3 110 150
its my table structure
i am comparing the close1 values with avg values
that is if close1>avg i want to display the message like "Good"
if close1<avg i want diplay the the message like"bad"
my final structure is
Sno Close1 avg result
1 150 110 bad
2 210 175 bad
3 110 150 good
how to write the qery for above table
if any body have idea please tell how to diplay the messages in table