Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 T-sql problem...plzz solve it

Author  Topic 

souravray79
Starting Member

11 Posts

Posted - 2007-08-21 : 07:04:55
plzzz read this problem properly

table student

field

stu_id,stu_name,math_marks,phy_marks,che_marks,Aggregate,grade

marks & Aggregate must be calculated filed and dependened on math,phy,che marks....

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2007-08-21 : 07:07:35
You can use sum function and
Case When....
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-21 : 07:12:05
Cross posting! Please avoid this.
Already asked and answered here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=88078



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -