LOAD DATA LOCAL INFILE './emode/article_color_lookup.csv' INTO TABLE article_color_lookup FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'
LOAD DATA LOCAL INFILE './emode/calendar_year_lookup.csv' INTO TABLE calendar_year_lookup FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'
(
week_key,
week_in_year,
year,
fiscal_period,
year_week,
quarter,
month_name,
month,
holiday_flag
);
```
## OUTLET_LOOKUP
```sql
shop_name VARCHAR(30),
address_1 VARCHAR(20),
manager VARCHAR(10),
date_open DATE NOT NULL,
open VARCHAR(1),
owned_outright VARCHAR(1),
floor_space INT,
zip_code VARCHAR(6),
city VARCHAR(20),
state VARCHAR(20),
shop_code INT NOT NULL,
PRIMARY KEY (shop_code)
```
Warning: addresses contain commas, which the dump did not escape
```
LOAD DATA LOCAL INFILE './emode/outlet_lookup.csv' INTO TABLE outlet_lookup FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'
(
shop_name,
address_1,
manager,
@date_open,
open,
owned_outright,
floor_space,
zip_code,
city,
state,
shop_code
)
SET date_open = STR_TO_DATE(@date_open, "%d-%b-%y");