home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!root44!praxis!dowen
- From: dowen@praxis.co.uk (David Owen)
- Newsgroups: comp.databases.sybase
- Subject: Select * (Was: Re: multiple EXISTS ...)
- Message-ID: <DOWEN.92Nov18120919@russell.praxis.co.uk>
- Date: 18 Nov 92 12:09:19 GMT
- References: <1992Nov14.174847.29576@lamont.ldgo.columbia.edu>
- <1992Nov15.144258.18635@panix.com>
- <1992Nov15.225853.2269@lamont.ldgo.columbia.edu>
- <1e8fj7INN1sg@gazette.bcm.tmc.edu>
- <1992Nov16.184540.11698@lamont.ldgo.columbia.edu>
- Sender: dowen@praxis.co.uk (David Owen)
- Organization: Praxis Systems, Bath, UK
- Lines: 28
- In-Reply-To: msolda@lamont.ldgo.columbia.edu's message of 16 Nov 92 18: 45:40 GMT
-
- >>>>> Regarding Re: multiple EXISTS subqueries under Sybase 4.8; msolda@lamont.ldgo.columbia.edu (M Solda) said:
-
- [stuff deleted ...]
-
- M> select last_name, first_name, salary, title
- M> from employee_id i1, salary_history s1, employee_status e1
- M> where not exists (select *
- ^^^^^^^^^
- M> from employee_status
- M> where status_begin < '1/1/0'
-
- [large query deleted ...]
-
- If you were using Oracle this would be replaced by
-
- "... (select null ...) ..."
-
- I was told on a Sybase course that this syntax is Oracle specific and the best
- Sybase solution is 'select "x" from ..." for sub-queries. Is this correct?
-
- dowen
- --
- David Owen, Praxis plc, 20 Manvers Street, Bath BA1 1PX UK.
- Tel: +44-225-444700. Email: dowen@praxis.co.uk
-
- "You needn't be well to be wealthy,
- but you've got to be whole to be holy"
- -- Greg Lake
-