Forum: Database Design 27 Days Ago |
| Replies: 1 Views: 664 I would recommend adding a tutorial group entity and a student assessment entity. I would remove the name attribute from the lecturer entity and add it to the staff entity. Lastly I would add a... |
Forum: Database Design Oct 14th, 2009 |
| Replies: 3 Views: 829 Here are some recommendations I have:
1) Remove the car_id field from the buyer table; what is the purpose of that field?
2) Create a table to track the make of the car; instead of typing in the... |
Forum: Database Design Oct 12th, 2009 |
| Replies: 2 Views: 845 Yes, that looks good to me. |
Forum: Database Design Sep 25th, 2009 |
| Replies: 2 Views: 762 I would strongly recommend creating tables from scratch and not from imported spreadsheets. Spreadsheets usually won't be divided into the database structure you need.
As far as importing data...... |
Forum: Database Design Sep 21st, 2009 |
| Replies: 21 Views: 2,113 As far as building queries, once I know what result I'm interested in, I start with one table as my 'base' table. In the query I provided to you, I used 'people' as the base query.
From there, I... |
Forum: Database Design Sep 20th, 2009 |
| Replies: 21 Views: 2,113 Here is a SQL statement to produce the results you asked for:
SELECT person.first_name, person.last_name, activity.activity_name, session.date
FROM ((person LEFT JOIN attendance ON person.id =... |
Forum: Database Design Sep 9th, 2009 |
| Replies: 21 Views: 2,113 Just wanted to let you know that I did look over those screen shots and everything looks good to me. |
Forum: Database Design Sep 7th, 2009 |
| Replies: 21 Views: 2,113 If the only change you made was to insert the session_activity table, then you should be able to just drop that table; however, if it is easier to start fresh, you can drop all the tables and create... |
Forum: Database Design Sep 7th, 2009 |
| Replies: 21 Views: 2,113 Please note that there should be a one-to-many relationship from activity to session_activity and a one-to-many relationship from session to session_activity. The code you supplied looks correct,... |
Forum: Database Design Sep 7th, 2009 |
| Replies: 21 Views: 2,113 With the design I had in mind, there is only a one-to-many relationship from activity to session. For example, I am a physics lab instructor. For each physics lab course (activity), I teach 13... |
Forum: Database Design Sep 3rd, 2009 |
| Replies: 21 Views: 2,113 It looks like you have been busy and made good progress. Before I go in to anything else, I noticed that the design I suggested is missing one crucial field.
The attendance table should have three... |
Forum: Database Design Sep 1st, 2009 |
| Replies: 1 Views: 423 Just so I am clear on the issue; for a particular acquisition, it is okay to have two acquirees, but there can only be one acquirer. Further, you want the databaes to prevent the user from entering... |
Forum: Database Design Aug 30th, 2009 |
| Replies: 21 Views: 2,113 The activity table that I suggested is simply the date_time table you had but with the addition of the activity id to track for which activity the date and time was for.
You mention that there is... |
Forum: Database Design Aug 27th, 2009 |
| Replies: 21 Views: 2,113 I don't see a need for the master_id. Could you explain it further? The problem I have, for example, is that the date and time of an activity is not related to the people.
Here is the design... |
Forum: Database Design Aug 14th, 2009 |
| Replies: 2 Views: 714 1) The two database management systems I would recommend are MS SQL and MySQL. Both are very stable and are widely used.
2) I agree with the single database approach. All related data (i.e. a... |
Forum: Database Design Aug 3rd, 2009 |
| Replies: 2 Views: 384 Just thinking outside the box a little... you could use a program that gives you remote access to a computer, such as PC anywhere, or by using VPN.
Of course, you can always use MySQL or MSSQL,... |
Forum: Database Design Aug 2nd, 2009 |
| Replies: 1 Views: 515 If salary is based simply on position, you can have a position table that stores all the positions and salaries related to each position. You can also have a table to track the history of employment... |
Forum: Database Design Aug 2nd, 2009 |
| Replies: 2 Views: 292 I believe MS Access would be a good way to go with the description you mention above. Other possibilities are MySQL and MSSQL; however, that would, in my opinion, require more work than is needed... |
Forum: Database Design Jul 22nd, 2009 |
| Replies: 3 Views: 551 I would actually go with MS Access for these reasons:
1) Easy to set up (the entire database is in one mdb file and you just need the Microsoft Access Runtime to use the database). There is no need... |
Forum: Database Design Jul 3rd, 2009 |
| Replies: 1 Views: 575 I would recommend a new table that has fields to track the following:
Room, Customer, Check-In Date, Check-Out Date |
Forum: Database Design Jun 29th, 2009 |
| Replies: 3 Views: 748 I think a zero-to-many relationship between between employees and enrollment is appropriate; however, I believe MS Access treats a zero-to-many relationship as a sub-type of the one-to-many... |
Forum: Database Design Jun 27th, 2009 |
| Replies: 3 Views: 748 You mention that you think the relations are many to many. Can you tell us which tables you think have a many-to-many relationship. From the tables in the database, it seems it would be appropriate... |
Forum: Database Design Jun 24th, 2009 |
| Replies: 1 Views: 538 I would recommend the "lookup table" approach. This will save you from creating many tables that serve the same purpose and it will make queries easier to build since you don't have to remember... |
Forum: Database Design Jun 16th, 2009 |
| Replies: 2 Views: 548 I would say that the number of fields in a table has very little impact on database performance. I don't think you will notice a difference between the query speed of a table with just a few fields... |
Forum: Database Design Jun 5th, 2009 |
| Replies: 1 Views: 514 I would recommend by starting with the following tables and fields:
Parent/Guardian: Id, Last Name, First Name, etc.
Child: Id, Last Name, First Name, Date of Birth, Etc
Child-Parent/Guardian:... |
Forum: Database Design May 24th, 2009 |
| Replies: 6 Views: 791 The most "proper" way to set this database is to have one table that stores all the people. Using two tables would not follow normalization rules.
The table that stores the people would only... |
Forum: Database Design May 19th, 2009 |
| Replies: 6 Views: 791 I would recommend the following partial database structure:
People: Id, Name, Address, Etc...
Client: Id, PeopleID, Etc...
Staff: Id, PeopleID, Etc...
The People table will store basic info... |
Forum: Database Design May 19th, 2009 |
| Replies: 4 Views: 770 Cleaning up a database with bad data will usually cost more money and time than programming a database that will not allow users to add bad data. Therefore, I usually recommend programming the... |
Forum: Database Design May 14th, 2009 |
| Replies: 4 Views: 770 You should use the type_ID in the schools table. This will allow the name of the type to change without affecting the data. Granted, in this case, I doubt the name will change, so you should be... |
Forum: Database Design May 14th, 2009 |
| Replies: 5 Views: 1,230 You will need to create a RoomsTime entity. This entity will have two attributes: RoomsID and TimeID. You then need to make both of them into the compound key for the entity. This will ensure that... |
Forum: Database Design May 8th, 2009 |
| Replies: 1 Views: 494 Those are two relationships, so showing both of them would be appropriate. |
Forum: Database Design May 5th, 2009 |
| Replies: 2 Views: 605 To answer your questions:
1) I would add an attribute to the Vendor table to track local or non-local
2) I would not add anything to the parts table to track assembled and subparts; that should be... |
Forum: Database Design Apr 27th, 2009 |
| Replies: 6 Views: 1,502 What are all the primary keys you are using? There may be a conflict in your use of primary keys.
Secondly, can each train go on only one journey? If not, then I would recommend using the... |
Forum: Database Design Apr 20th, 2009 |
| Replies: 5 Views: 596 It appears that there is a many-to-many relationship between the supplies and events (each event can have more than one supply and each supply can be used for more than one event). If that is the... |
Forum: Database Design Apr 19th, 2009 |
| Replies: 5 Views: 596 The particulars will always be determined by your database needs, however, it is rather common for each different table to have its own ID, which is the primary key for the table. If a table has a... |
Forum: Database Design Apr 19th, 2009 |
| Replies: 5 Views: 596 You need a Supply ID primary key in the Supply table with event no and wedding no as foreign keys. The way you have it set up currently, each event/wedding can have only one supply (I'm assuming the... |
Forum: Database Design Apr 13th, 2009 |
| Replies: 4 Views: 785 Since the relationship between the tables is a one-to-many relationship, you do not need an intermediate table. You only need to have the following structure:
County: ID (PK), Name, etc.
Voting... |
Forum: Database Design Apr 1st, 2009 |
| Replies: 2 Views: 458 Strictly speaking, the table appears to be normalized since the fields with similar content is not the exact same content. However, I do like Stylish's recommendation.
I would recommend using a... |
Forum: Database Design Mar 15th, 2009 |
| Replies: 2 Views: 777 The main goal in designing a database is designing a database that works for your purpose. There are many situations where it is possible to make a database more properly normalized, but it may take... |
Forum: Database Design Mar 13th, 2009 |
| Replies: 15 Views: 1,356 If time is a large concern, then I would recommend MS Access since it is a lot faster to program in. If you save the database in a directory shared over a local network, then multiple users can... |