TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muhammad younas
NA
169
483.3k
select with dynamic rows
Jun 25 2012 3:03 PM
i have a table in sql server .it have 5 columns testname, testid, testmarks, test%age. the task is to select
rows
with highest marks. there are 3 differnt subject with 2 rows of each. we have to select 3 rows of 3 subjects having highest marks.
in db i added 2 rows of word test 2 of excel 2 of internet means 6 rows in total. what we want is to fetch rows with highest mark mean we have to get 3 rows with 1 row of each subject. records can b more than 1000 so i want to creat a dynamic query to sort this problm.
we use name as search criteria in where clause
e.g SELECT * FROM RESULT WHERE testname='some value'
Reply
Answers (
1
)
Delete Duplicate Row from Database Table in SQL Server
I want plot graph. How can i do it?