Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> SQL redundancies
Dear Readers,
the following SQL Statment produces redundant information.
1 select a.host, a.session_id, b.session_id
2 from weblog a, weblog b
3 where a.session_id != b.session_id
4* and a.host = b.host
like :
host s_id s_id
hostx 1 20 hostx 1 56 hostx 20 1 hostx 20 56 ...
How has the query to be altered, in order to skip the redundancies ?
I'm looking forward to your suggestions !
Markus Banach
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Jun 30 1999 - 12:10:07 CDT