Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Condition with NOT EXIST

Status
Not open for further replies.

syedmca

Technical User
Jul 28, 2007
16
IN
Hi,

I need to generate report with condition like


Select Distinct Emp_number,Emp_hiredate,Division_id from Employee E where designation=' sales representative'
AND (
NOT EXISTS (
Select address from address A where A.emp_hiredate= E.emp_hiredate
AND ( A.File_number IN ( 'SO','DO') OR FLAG ='y' )
and NOT EXISTS (
select address from shipment B
where A.emp_hiredate= B.emp_hiredate
AND B.flag='Y'.


I am new to crystal report any idea how to place this condition with NOTEXISTS in crystal reports .
 
You could paste this query into the 'Add command' area at the top of your table list in the database expert. Then use the command as your datasource.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top