Re: storing start/end times
Posted by: Peter Brawley
Date: April 15, 2015 11:30AM

> How am I suppose to "connect" the stores_open table with the calendar table

With a cross join, eg for the year 2015 ...

select c.d, s.open, s.close
from calendar c
cross join storesopen s
where s.sid=_STORE_ID_ and year(c.d)=2015;

Options: ReplyQuote


Subject
Written By
Posted
Re: storing start/end times
April 15, 2015 11:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.