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
Ajitender Vijay
NA
263
120.6k
SELECT 8 FROM TABLE_NAME execution process ?
Jun 29 2012 9:37 AM
I am using a sql query i.e.
SELECT * FROM TABLE_NAME
In this Table_Name table has 10 rows and 5 columns. When I run this above query it runs fine and return 10 rows and 5 columns.
Now I am running a new query i.e.
SELECT 8 FROM TABLE_NAME
Now it will return only a single column but 10 rows and this single column has same values i.e. 8 in each row.
I want to know that why it return me 10 rows and a column which has only 8 value and when i am using * instead of 8 in that case it will return 10 rows and 5 columns.
What exactly the difference between both queries and its execution process?
Reply
Answers (
1
)
Difference Between Join Operator and Union Operator in SQL Server
Inner Joins in SQL Server