Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Use like clause more then once

Re: Use like clause more then once

From: Jeremy Smith <godtoall_at_hotmail.com>
Date: 29 May 2007 11:17:02 -0700
Message-ID: <1180462622.317241.56060@p77g2000hsh.googlegroups.com>


Currently 9i, will be moving to 10g this year. I tried joining the tables and doing to like statements, but it would give back zero records.

SELECT distinct srv.SERVER_ID,srv.SERVER_NAME,srv   FROM serverdb.servers srv inner join services svc on srv.SERVER_ID = svc.SERVER_ID
 WHERE (svc_display_name LIKE '%Microsoft Exchange%' and svc_display_name LIKE '%TSM%') and

         status_id = 1

If I did only one like at a time it should have around 200 records returned. So I assume that oracle doesn't like 2 or more like staments in the same where statement. Received on Tue May 29 2007 - 13:17:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US