Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Hours of Operation

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-31 : 09:31:44
Scott writes "We are looking for a better method for storing the hours of operation for multiple locations. I thought of using a table such as:

LocationID INT
DayofWeek INT (1-7)
OpenTIme INT (24hr Format)
CloseTime INT (24hr Format)

And Retrieval as:

SELECT *
FROM HoursOfOps
WHERE LocationID = @LocID
ORDER BY DayOfWeek, OpenTIme

Is there a better way of doing this, if we know that there will usually be no more than two sets on any given day?

Thanks
-Scott"
   

- Advertisement -