Re: Aggregate column comparison in sql server sql ?
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 21:40:39 +0000 (UTC)
David Portas (REMOVE_BEFORE_REPLYING_dportas@xxxxxxx) writes:
> DELETE FROM T1
> WHERE EXISTS
> (SELECT *
> FROM T2
> WHERE T1.a = T2.c
> AND T1.b = T2.d) ;
Which should be added, is a syntax that also works in Oracle.
Then again the syntax with IN that Oracle has is, as far as I know,
ANSI-compliant, so SQL Server is at fault here.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
.
- Follow-Ups:
- Re: Aggregate column comparison in sql server sql ?
- From: guhar1
- Re: Aggregate column comparison in sql server sql ?
- References:
- Aggregate column comparison in sql server sql ?
- From: guhar1
- Re: Aggregate column comparison in sql server sql ?
- From: David Portas
- Aggregate column comparison in sql server sql ?
- Prev by Date: Re: THE SELECT STATEMENT
- Next by Date: Re: Hardware configuration help for MS SQL server
- Previous by thread: Re: Aggregate column comparison in sql server sql ?
- Next by thread: Re: Aggregate column comparison in sql server sql ?
- Index(es):
Relevant Pages
|