Hi all,
Am having trouble trying to retrieve records using the following SQL statement:
My problem now is that, the resultset retrieved includes everything from dbLaw.FORMER_GREY.C instead of only those rows that match dbS.tCline.msg rows.Please assist and be sure that your help is much appreciated.
Thank you in advance
Am having trouble trying to retrieve records using the following SQL statement:
Code:
SELECT DISTINCT(dbS.tCline.mobile),dbS.tCline.msg,dbS.tCline.dest,dbS.tCline.reply,dbS.tCline.statusFROM dbS.tCline,dbLaw.FORMER_GREYWHERE dbS.tCline.msg LIKE '%'||dbLaw.FORMER_GREY.C||'%' ANDdbS.tCline.msg LIKE '%ADMISSION%'SELECT distinct(dbS.tCline.mobile),dbS.tCline.msg,dbS.tCline.dest,
dbS.tCline.reply,dbS.tCline.status
FROM dbS.tCline,dbLaw.FORMER_GREY
where dbS.tCline.msg LIKE '%'||dbLaw.FORMER_GREY.C||'%' and
dbS.tCline.msg like '%ADMISSION%'
My problem now is that, the resultset retrieved includes everything from dbLaw.FORMER_GREY.C instead of only those rows that match dbS.tCline.msg rows.Please assist and be sure that your help is much appreciated.
Thank you in advance