Using sqlite3, python
I have a crappy legacy file legacy_sales:
item | year | week | mon | tue | wed | thu | fri | sat |sun
4444 2011 29 10 0 4 15 18 25 30
And I have an awesome new file sales (this is an example of the 'mon' entry from above):
item | units | date
4444 10 2011-03-14
I have the start date of fiscal years in another table fiscal
year | start_date
2011 2010-08-30
With this information what is the best and most efficient way to accomplish this:
insert into sales from (insert magic here)
without using any UDFs...
Any experience with such drivel?