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"

Author  Topic 

NarayanaMoorthy
Starting Member

19 Posts

Posted - 2007-08-22 : 05:50:14
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 not be calculated.
Here is my table
sno smark1 smark2 smark3
1 70 80 60
2 50 70 90
3 60 80 70



Narayana Moorthy

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2007-08-22 : 06:17:14
select top 1 sno, smark1, smark2 ,smark3
from student

what do you mean "the marks should not be calculated?

Jim
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-22 : 06:34:10
quote:
Originally posted by NarayanaMoorthy

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 not be calculated.
Here is my table
sno smark1 smark2 smark3
1 70 80 60
2 50 70 90
3 60 80 70



Narayana Moorthy


Post your expected result

Madhivanan

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

madhivanan
Premature Yak Congratulator

22864 Posts

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

Madhivanan

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

- Advertisement -