Search Results

Showing results 1 to 40 of 111
Search took 0.01 seconds.
Search: Posts Made By: timothybard ; Forum: Database Design and child forums
Forum: Database Design 27 Days Ago
Replies: 1
Views: 664
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
Yes, that looks good to me.
Forum: Database Design Sep 25th, 2009
Replies: 2
Views: 762
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
Those are two relationships, so showing both of them would be appropriate.
Forum: Database Design May 5th, 2009
Replies: 2
Views: 605
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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
Posted By timothybard
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...
Showing results 1 to 40 of 111

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC