Re: corelated query
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 05/25/04
- Next message: Peri: "Date Format in SQL Server with VB as front end"
- Previous message: Ramesh: "corelated query"
- In reply to: Ramesh: "corelated query"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 May 2004 12:15:25 +0530
Hi,
Subquery
A SELECT statement nested inside another SELECT, INSERT, UPDATE, or DELETE
statement, or inside another subquery.
select * from emp where emp_no in(select * from emp_details)
Correlated subquery
A subquery that references a column in the outer statement. The inner query
is executed for each candidate row in the outer statement.
select * from emp where emp_id in(select emp_id from emp_details a
where a.emp_id=emp.emp_id )
Thanks
Hari
MCDBA
"Ramesh" <ramesh@mail.punecity.com> wrote in message
news:up4jW$hQEHA.3452@TK2MSFTNGP10.phx.gbl...
> Dear All
> Please Explain me diff between corelated query and subquery with a example
> Ramesh:)
>
>
>
>
- Next message: Peri: "Date Format in SQL Server with VB as front end"
- Previous message: Ramesh: "corelated query"
- In reply to: Ramesh: "corelated query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|