I have an accounts receivable file. The file has a field for storing an invoice date. But it's a NUMERIC 6 digit field (used to store in MMDDYY format). I want to use a sql statement to pull a date range using BETWEEN but I don't think I'll get the results I'm looking for as this field is a NUMBER and NOT a date.
SELECT * FROM arfile WHERE InvDate BETWEEN StartDate AND EndDate
Two Questions:
1. Can you put an actual DATE and/or TIME field in a physical file. I only see where you can create a signed, packed or alpa field.
2. If you can't put in a actual date field. How do you got about retrieving records based on a date range from numeric data?
Any and all help is appreciated!!
Thank you.
SELECT * FROM arfile WHERE InvDate BETWEEN StartDate AND EndDate
Two Questions:
1. Can you put an actual DATE and/or TIME field in a physical file. I only see where you can create a signed, packed or alpa field.
2. If you can't put in a actual date field. How do you got about retrieving records based on a date range from numeric data?
Any and all help is appreciated!!
Thank you.