User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 426,476 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,235 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 1271 | Replies: 0
Reply
Join Date: Jul 2007
Posts: 1
Reputation: Falzz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Falzz Falzz is offline Offline
Newbie Poster

Database design regarding two 'linking' tables

  #1  
Jul 19th, 2007
Hi all, im fairly new to database design and would just like a few tips if this is done correctly or if i can improve it..

Im mainly designing a 'leave' application and have an issue with regards to design of two linking tables..

First Table - [Request]
Username, DateStart, DateEnd, DayAmount

Second Table - [Log]
Username, DateStart, DateEnd, DayDate

basically the second table fills in the days of all the dates between the DateStart (starting date) and DateEnd (ending date)..

however im not sure if its good database design to use 3 columns as a primary key and if theres another easier way to solve this issue.

Thanks for your help
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 4:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC