Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> tricky SQL SELECT - help!
This is horrible !
SELECT NAME FROM people
WHERE INSTR((SELECT people_ids FROM pets WHERE pet =
'Rat'),';'||TO_CHAR(ID)||';
NAME
John Wilma Dick Mike
4 rows selected
Can you imagine having to do that with a join to another table on the
poeople id ?
Yeuch !
Cheers,
Norman
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com
-------------------------------------
-----Original Message-----
From: Norman Dunbar
Posted At: Friday, January 31, 2003 4:11 PM
Posted To: server
Conversation: tricky SQL SELECT - help!
Subject: tricky SQL SELECT - help! (PS)
PS. And having done that, find me a list of all the people who keep rats .........
Cheers,
Norman.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.comReceived on Fri Jan 31 2003 - 10:31:11 CST
-------------------------------------