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
Sudheer Vasam
NA
58
4.7k
brief description on query Execution
Jul 30 2016 3:05 AM
Hi to All..........
I have a Table like this (Table Name #t)
Name sub marks
Raj Tel 21
Raj Hind 22
Raj Eng 23
Raj Math 19
vasu Tel 19
vasu Hind 21
vasu Eng 15
vasu Math 25
when i executing below Queries
1.select (select distinct Name from #t where Name=t.Name)Name
from #t t
2.select Name from #t t where Name=t.Name
Results Will be Same............
i.e
Name
Raj
Raj
Raj
Raj
vasu
vasu
vasu
vasu
what is the function of t.Name (it will loop or grouping)
Reply
Answers (
2
)
change the column into row
select second lowest after value