I am trying to create a report in 8.5 pro that groups sales based upon whether or not a delivery charge was added to the line items and am not getting it. It is a simple nested SQL statement but if I try this with 100000 records it takes hours and this is not even grouped.
SELECT
TixHeader."TicketNumber",
TixHeader."TicketDate",
TixHeader."SaleAmount"
FROM
"ENGLISH"."TixHeader" TixHeader
WHERE TixHeader."TicketNumber" IN
(SELECT
TixHistLin."TicketNumber"
FROM
"ENGLISH"."TixHistLin" TixHistLin
WHERE
TixHistLin."ItemNumber" LIKE 'DEL%')
Is there a way to do this quickly in Crystal
SELECT
TixHeader."TicketNumber",
TixHeader."TicketDate",
TixHeader."SaleAmount"
FROM
"ENGLISH"."TixHeader" TixHeader
WHERE TixHeader."TicketNumber" IN
(SELECT
TixHistLin."TicketNumber"
FROM
"ENGLISH"."TixHistLin" TixHistLin
WHERE
TixHistLin."ItemNumber" LIKE 'DEL%')
Is there a way to do this quickly in Crystal