rmwcalum98
Programmer
Is there such a thing as a cursor in Crystal? My CR 8.5 reference manual does not make any mention of cursors. It briefly goes over loops, but I am not finding that helpful in my case.
The report I'm working on needs to select all orders older than 30 days that either have no items or have all items voided. This means first I have to first grab all records in the order master table that are older than 30 days. Then I have to go to the order detail table and find out whether there are no records for that order or, if there are, that there is a 0 in the voided column for all the detail records with that sales order number.
My PL/SQL training tells me that as I grab each record in the master table, I should fetch a cursor into the detail table to see if there are any records for that master record, and if there are, see if they have been voided.
Hope this makes sense. I'd appreciate any suggestion. Thank you.
The report I'm working on needs to select all orders older than 30 days that either have no items or have all items voided. This means first I have to first grab all records in the order master table that are older than 30 days. Then I have to go to the order detail table and find out whether there are no records for that order or, if there are, that there is a 0 in the voided column for all the detail records with that sales order number.
My PL/SQL training tells me that as I grab each record in the master table, I should fetch a cursor into the detail table to see if there are any records for that master record, and if there are, see if they have been voided.
Hope this makes sense. I'd appreciate any suggestion. Thank you.