SunQuest
           MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 25th, 2000, 10:51 AM
John Ridderhof John Ridderhof is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 6 John Ridderhof User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have got a database with customer info and some extra fields 4 per day, 7 days per week.
So in general: id; cust info; mon_m_s; mon_m_e; etc.; timestamp.

field explenation:
mon_m_s = monday morning start
mon_m_e = monday morning end

The follwing question:
I want to log the default openingtimes in the main database above.
But I also want to log and search when a customer is closed or has extra openingtimes.

I thought to create two extra tables:
Extra Opening:
unique_id;ID (the link id form the main db); open_s(datetime);open_e(datetime).
Close dates:
unique_id; ID (the link id from the main db);
start_date(date);end_date(date).

Is this the way to go???
How do I query them, for example; what is open today?

john

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > query building and table setup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway