Click to See Complete Forum and Search --> : Database help


sac8513
01-14-2007, 03:45 AM
I need to create a database that holds a particular stores opening and closing times for each day of the week.

The troule is that the code I am using searches for the store name, open time, and close time through each of those fields. By adding in 7 days means that I essentially need opening and closing times for every day.

I cannot figure out how to put all of this into one table, or even 2 and have my code interpret each store's appropriate information.

I figure if I create a table for every store I have (currently 40) this would be quite time consuming.

Any ideas?

Thanks

aussie girl
01-14-2007, 07:28 AM
I would use 3 tables,

STORES TRADING STORE_TRADING
store_id trade_id store_id
name weekday trade_id
etc open
closed