We are using CR XI and I need to select records from 2 different databases which are identical (one remote and one local)and compare. My question is: Where in CR XI would I enter the sql statment, I tried in the "record selection formula editor" and also under "add command" in data base connection. It does not seem to fit in in either places? Thank you.
Select SALESTKT.TICKET_ID,
SALESTKT.TICKET_DATE,
SALESTKT.TICKET_TIME
from SALESTKT
where not exists
(select 1 from SALESKT1 where
SALESTKT.TICKET_ID = SALESTKT1.TICKET_ID
and SALESTKT.TICKET_DATE= SALESTKT1.TICKET_DATE
and SALESTKT.TICKET_TIME = SALESTKT1.TICKET_TIME)
Select SALESTKT.TICKET_ID,
SALESTKT.TICKET_DATE,
SALESTKT.TICKET_TIME
from SALESTKT
where not exists
(select 1 from SALESKT1 where
SALESTKT.TICKET_ID = SALESTKT1.TICKET_ID
and SALESTKT.TICKET_DATE= SALESTKT1.TICKET_DATE
and SALESTKT.TICKET_TIME = SALESTKT1.TICKET_TIME)