Hello,
Im working with the SQL database for our accounts package at work
Dates in the system are stored as Integer values and in the following format
20050804
I would like to create a view which replicates the table in question but replaces all the date fields with a proper date field
I know im going to have to use a user def function of some kind but im at a loss where to start and considering the number of ledger transactions would like the process to be as efficient as possible.
Having never done any sort of programming in SQL i would be gratefull for any help on what needs to be in the function and how to actually call it from my view
Im working with the SQL database for our accounts package at work
Dates in the system are stored as Integer values and in the following format
20050804
I would like to create a view which replicates the table in question but replaces all the date fields with a proper date field
I know im going to have to use a user def function of some kind but im at a loss where to start and considering the number of ledger transactions would like the process to be as efficient as possible.
Having never done any sort of programming in SQL i would be gratefull for any help on what needs to be in the function and how to actually call it from my view