Explore BrainMass
Share

Designing and Populating a Table

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

a. Using the data below, design and populate a table that includes basic training rate information. Designate the "Technical" field type as "Yes/No" (Boolean).

b. Using the data below, design and populate a course table. Designate the CourseID field as a "Primary Key" and allow your database to automatically generate a value for this field. Designate the "Technical" field type as "Yes/No" (Boolean).

c. Prepare a query that lists each course name and its cost per day of training.

d. Prepare a query that lists the cost per student for each class. Assume maximum capacity and that you will schedule two half-day classes on the same day to take full advantage of HOTT's per day pricing schedule.

Pricing table
Technical Price per day capacity
Yes $2,680 15
No $2,144 30

Course table

Course ID Course name Duration Technical
1 ASP Programming 5 Yes
2 XML Programming 5 Yes
3 PHP Programming 4 Yes
4 Microsoft word-Advanced 0.5 No
5 Microsoft Excel-Advanced 0.5 No

© BrainMass Inc. brainmass.com October 25, 2018, 7:30 am ad1c9bdddf
https://brainmass.com/computer-science/databases/designing-and-populating-a-table-505548
$2.19
See Also This Related BrainMass Solution

Database Modeling and ER Diagram

Community library: You recently get a job offer from a local community library. The manager asks you to develop a database system to track customers and the books they check out.

Task 1:
Your initial assignment is to create a table for customers. The manager tells you that this table needs to track the following information: all customers' social security numbers, first and last name, address, city, state and zip code, email, phone number, birth date, and date of applying for a library card. Your task is to first "sketch" a customer table (basically what data items or columns should be included in the table) using the Customer_information table at background section as an example. (See attachment) Your table should contain the following:

- Column headings to include all the attributes that need to be in this table.
- Populate the table with five records of data.

Task 2:
Your next task is to design one more table: A customer checkout table to track the books and CD's that the customer has checked out from the library. The "Customers" and "Customer Checkout" table are related to one another. The Customer table contains the basic data on each customer and the primary key is customer number. There is one row for each customer. The Customer Checkout table contains the data for each book. The primary key consists of two pieces of data: Checkout number and customer number. One customer can check out 1 or more books/CD's at a time, but only one customer on a check out order.

Use the templates below to design the two tables: "Templates" for Table Design and Customer Table. (See attachment)

As well, draw an ER diagram of your complete design for the community library. You can use Visio, or the Microsoft word feature to draw the chart, or write down the table schemata and describe the relationships among them. Include a half page report about your experience with this assignment.

View Full Posting Details