Re: Comparing a pair
- From: "David Portas" <REMOVE_BEFORE_REPLYING_dportas@xxxxxxx>
- Date: Sun, 17 Jul 2005 22:33:26 +0100
TSQL doesn't have row-value constructors. But EXISTS is often a better way
than using IN anyway:
SELECT *
FROM Foo
WHERE EXISTS
(SELECT *
FROM Bar
WHERE bar.manager_id = foo.manager_id
AND bar.dept_id = foo.dept_id)
--
David Portas
SQL Server MVP
--
.
- Follow-Ups:
- Re: Comparing a pair
- From: Gaz uk
- Re: Comparing a pair
- References:
- Comparing a pair
- From: Gaz uk
- Comparing a pair
- Prev by Date: N prefex in a non-unicode database
- Next by Date: Re: filtering data
- Previous by thread: Comparing a pair
- Next by thread: Re: Comparing a pair
- Index(es):
Relevant Pages
|
|