SQL Server
Menu
Home
Palukuru
SQL Server
SSIS
SSRS
HP Vertica
Devalayalu
Recipes
Telugu Stories
Saturday, 22 November 2014
Multi row subquery
Home
SSIS
Vertica
Devalayalu
Palukuru
Telugu Stories
Visiting Places
In Multi row subquery, inner query returns 'One or More' row. Based on the inner query result outer query will return output.
Example:
Employee table
Department table
SELECT
*
FROM
EMPLOYEE
WHERE
Dept_ID
IN
(
SELECT
DEPTID
FROM
DEPT
)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment