| | |
Database design regarding two 'linking' tables
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Database Design for storing versions (Database Design)
- Database Design feedback (absolute beginner here :) (Database Design)
- Inventory Control Database Design (Costing Methods) (Database Design)
- Help with contact/mailing list database design... (Database Design)
- Database design - subtypes and instances of an entity (Database Design)
- Database Design - Supertypes and Subtypes (Database Design)
- Database Design Advice (MySQL)
Other Threads in the Database Design Forum
- Previous Thread: Design Solution
- Next Thread: Design question?
| Thread Tools | Search this Thread |





