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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Multiple Queries with a Single ResultSet
Venkatesan Jayakantham
May 20, 2016
3.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will learn Multiple Queries with a Single ResultSet.
How to merge multiple queries and produce a single result set??
1. UNION:
Union helps to merge Two Queries but on the condition that,
Both queries return the same number of columns
The selected columns in both queries have matching data type
Incorrect Union Mapping
Correct Union Mapping
2. JOINS:
Joins can be used when both the queries have a mapping column to match and fetch result set.
SQL Server
UNION Mapping
JOINS
Next Recommended Reading
Multiple SQL Operation In Single Procedure