Hello all,
I have a table Orders which has 3 columns : Invoice_Number, invoice_date and invoice_status.
It looks like this:
Invoice_Number | invoice_date | invoice_status
________________________________________________
0001 | 01/12/2001 12:00 AM | Active
0002 | 03/03/2001 2:22 PM | Closed
0004 | 05/12/2001 11:00 AM | Closed
0005 | 06/11/2001 10:00 AM | Active
0006 | 11/12/2003 19:00 PM | Closed
0009 | 12/12/2003 12:00 PM | Sent
0010 | 01/27/2004 9:00 AM | Sent
What I need to do is to get a consecutive invoice_number based on N parameter will be provided from UI.(user will enter how many consecutive invoices he want to see at a time, 3, 5 10 etc.)
In this particular example if user enters 3, as an output he will get invoices 0004, 0005 and 0006.
Thanks for your help.
I have a table Orders which has 3 columns : Invoice_Number, invoice_date and invoice_status.
It looks like this:
Invoice_Number | invoice_date | invoice_status
________________________________________________
0001 | 01/12/2001 12:00 AM | Active
0002 | 03/03/2001 2:22 PM | Closed
0004 | 05/12/2001 11:00 AM | Closed
0005 | 06/11/2001 10:00 AM | Active
0006 | 11/12/2003 19:00 PM | Closed
0009 | 12/12/2003 12:00 PM | Sent
0010 | 01/27/2004 9:00 AM | Sent
What I need to do is to get a consecutive invoice_number based on N parameter will be provided from UI.(user will enter how many consecutive invoices he want to see at a time, 3, 5 10 etc.)
In this particular example if user enters 3, as an output he will get invoices 0004, 0005 and 0006.
Thanks for your help.