Search Results

Showing results 1 to 28 of 28
Search took 0.01 seconds.
Search: Posts Made By: timothybard ; Forum: Database Design and child forums
Forum: Database Design Jun 24th, 2009
Replies: 1
Views: 557
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: 571
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 Apr 13th, 2009
Replies: 4
Views: 806
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 Feb 16th, 2009
Replies: 6
Views: 1,245
Posted By timothybard
I'm thinking that having three entities may be the way to go to keep things not overly complex while keeping things flexible too:

Company: ID (PK)
Property Type: ID, Description, Data Type,...
Forum: Database Design Feb 13th, 2009
Replies: 6
Views: 1,245
Posted By timothybard
If the properties you are referring to apply to each record, then you can add them as fields (columns). For example, if you are tracking products you are selling, then a height, width, length and...
Forum: Database Design Feb 12th, 2009
Replies: 6
Views: 1,245
Posted By timothybard
I would go with something similar to option 2. Option 1 would not be a noramalized database design, so I would stay away from it.

I see you requiring three entities:
1) Company Entity
2)...
Forum: Database Design Nov 14th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
Here is the SQL for what you are trying to do in one query:


SELECT Sum(Count) AS SUMofLessonsAndTests
FROM
(
SELECT count(lessons.lesson_date) AS Count
FROM lessons
WHERE...
Forum: Database Design Nov 13th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
There are several things wrong with the query.

1) You have quotes on either side of the &. They are not needed since you are looking for the string "Examiner & Instructor"
2) In the Instructor...
Forum: Database Design Nov 12th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
You still need a Student/Module table and tables to deal with the prerequisites.
Forum: Database Design Nov 12th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
What is the difference between the lecture entity and the session entity; isn't a lecture just a type of session? Same with practical session and session.

I see you removed the relationship...
Forum: Database Design Nov 12th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
Okay, I read the original assignment and drew an ER Diagram based on the assignment. After drawing the ER Diagram, I counted the number of tables required and came up with 18 tables.

There are...
Forum: Database Design Nov 12th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
What attributes will be in the academic record entity? Since you will have a credits earned attribute in the studies entity, I was thinking you could get rid of the academic records entity.
...
Forum: Database Design Nov 11th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
Instead of using the instruct_examiner table, I would recommend that you just add a record to the examiner table and one in the instructor table. People that appear in both tables are people who are...
Forum: Database Design Nov 11th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
1) The way you have your ER Diagram drawn, each studies record will have a course foreign key. From the course entity, you can find out which student is associated with the studies record. In...
Forum: Database Design Nov 10th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
Thank you for the attachment. Do you have any specific questions on how to build the queries you need? I don't mind helping, but I don't want to do the assignment for you.

Secondly, in your...
Forum: Database Design Nov 10th, 2008
Replies: 17
Views: 3,162
Posted By timothybard
Your current ER Diagram is a good start, but let me ask you some questions that may make you want to change your diagram a little:

1) How can you track if a student wants to take a module that is...
Forum: Database Design Nov 10th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
Attached is the ER Diagram I would use. Please notice that any person is able to be a student, instructor, examiner or any combination of the three. Also note that my diagram does not include...
Forum: Database Design Nov 10th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
I reviewed the E-R Diagram and it is a good start.

I'm not sure a booking entity is needed as long as you have a booking date attribute in the test and lesson entities.

What is the Test Type...
Forum: Database Design Nov 9th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
There are three types of people:
Students, Instructors and Examiners.

I was suggesting that you use a people entity to track the name, address, phone number, etc. of all the people you record,...
Forum: Database Design Oct 30th, 2008
Replies: 8
Views: 1,161
Posted By timothybard
If a roommate leave, you can update the BillPeople table to redistribute the amount owed; once any individual bill is split up, there's no need to refer to the table except for future bills. Of...
Forum: Database Design Oct 30th, 2008
Replies: 8
Views: 1,161
Posted By timothybard
Just to expand on my previous comment... you could then put some code together so that after a bill is recorded, the database breaks out the bill and adds transaction records based on how the bill...
Forum: Database Design Oct 30th, 2008
Replies: 8
Views: 1,161
Posted By timothybard
Yes, my original suggestion did not take into account how to divide the bill. Someone would have to make that determination each time a bill was entered.

I like your idea of the billpeople table;...
Forum: Database Design Oct 30th, 2008
Replies: 8
Views: 1,161
Posted By timothybard
This is how I would approach the issue. I would have one table to track the bills, one table to track the people and one table to track the transactions:

Bills (ID, amount, date billed, date due,...
Forum: Database Design Oct 18th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
I look forward to seeing what you come up with. It should be straight forward for the most part. I think the payment tracking will be the biggest issue.
Forum: Database Design Oct 16th, 2008
Replies: 22
Views: 2,713
Posted By timothybard
People: ID, Name, Address, etc...
Students: ID, People ID (this table identifies who the students are)
Instructor: ID, People ID (this table identifies who the Instructors are)
Examiners: ID,...
Forum: Database Design Oct 15th, 2008
Replies: 7
Views: 1,099
Posted By timothybard
Close... here's the table structure:

TransactionID - int
Amount - Currency
TransactionTypeID - int

The TransactionTypeID will either be 1,2,3, etc. (1 for Purchase, 2 for Transaction, 3 for...
Forum: Database Design Oct 14th, 2008
Replies: 7
Views: 1,099
Posted By timothybard
Can you explain what you mean? The referential integrity would still be intact with this method. We are simply creating a foreign key in the transaction table whose parent is the transaction type. ...
Forum: Database Design Oct 14th, 2008
Replies: 7
Views: 1,099
Posted By timothybard
Just to expand on pritaeas's comment...

Create a number field in the "transaction" table. You will record either a 1, 2 or 3 in the field. A 1 will indicate that the transaction is a purchase...
Showing results 1 to 28 of 28

 


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

©2003 - 2009 DaniWeb® LLC