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)
 "Views"(edited)

Author  Topic 

NarayanaMoorthy
Starting Member

19 Posts

Posted - 2007-08-25 : 01:22:58
Hai,
I have a table named "Student" which contains four columns and three rows.I want to see just the first row only from the "Student" table and the marks should calculated for the rows.
Here is my table
sno smark1 smark2 smark3
1 50 50 50
2 60 60 60
3 70 70 70
The Output should be:
sno smarks(smark1+smark2+smark3)
1 150
2 180
3 210


Narayana Moorthy

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-25 : 01:52:08
I answered here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=88410

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -