Chat with us, powered by LiveChat Open the Teachers table and add three (3) more professors names to the Teachers table. Open the Students_Classes table and add more ClassID for each student to take at least three classes. - Writeden

 

  1. Open the Teachers table and add three (3) more professors’ names to the Teachers table.  Open the Students_Classes table and add more ClassID for each student to take at least three classes. 
  2. Open the Course table.  The course fee (Fee) in the table Course happened to be typed as Short Text.  Convert the Short Text type data for Fee field to real numbers with two digits below the decimal point (For example: “400.50” text should be displayed to 400.50 in real number).  And display the average course fee at the bottom row.  
  3. Open the table Teachers_Classes and set up a lookup table for TeacherID that displays a teacher’s last name (LastName of Teachers table) in the table Teachers that corresponds to the TeacherID number. 
  4. Open a relationship diagram by clicking Database Tools / Relationships from the top menu.  On this diagram, establish 1-to-many relationships between the Teachers table and Teachers_Classes table via TeacherID attribute.  
  5. Create a query, TeachersPayByClass, that displays LastName, ClassID, and PaymentAmount. (Hint 1: Find the needed tables from the Relationships Diagram.)  (Hint 2: If you don’t see TeacherPayments table or other tables of the left pane in the Relationships Diagram, just drag the missing table of the left pane to the right pane.  Push Control-S buttons to save the new Relationships Diagram.) 
  6. Create a query, TeachersPayTotal, that displays TeacherID, LastName, and TotalPay as the sum of the fees for the classes that each teacher teaches.  The TotalPay of the query should display in the Currency format.  (Hint: You need Totals / Group By function to set up the query.) 
  7. Open the table Classes.  Provide a validation rule to the field EndingDate that the class should end after 5/1/2017.  Also enter a warning message in the Validation Text in the case the previous validation rule is not kept. 
  8. Create a query, TuitionBalance that displays student’s FirstName, LastName, TotalCharge as the sum of Fee in the Course table, AmountPaid, and Balance as [TotalCharge] – [AmountPaid].  All amounts should display in the Currency format.  (Hint 1: You need ∑ Totals / Group By function to set up the query.) 
ClassID CourseID StartingDate EndingDate MaxEnrollment ClassDay ClassTime
BUS506E BUS506 2017-01-02 2017-05-05
BUS506EA BUS506 2017-01-02 2017-05-05
CNS323 CNS323 2017-01-04 2017-05-07
CNS413 CNS413 2017-01-05 2017-05-08
ELA100 ELA100 2017-01-04 2017-05-07
ELA200 ELA200 2017-01-04 2017-05-07
MIT531 MIT531 2017-01-03 2017-05-06
MIT531E MIT531 2017-01-03 2017-05-06
MIT532E MIT532 2017-01-04 2017-05-07
CourseID CourseTitle Fee CourseRequirement
BUS506 Management Information System 400.50 None
CNS323 Group Counseling 350.35 None
CNS413 Family Counseling 350.12 Group Counseling
ELA100 Language Arts 1 300.15 None
ELA200 Language Arts 2 300.35 Language Arts 1
MIT531 Database Design 500.46 Management Information System
MIT532 Network Securities 450.45 None
StudentID FirstName LastName PhoneNumber EmailAddress AmountPaid
1 Christine Suiter 703-425-8897 [email protected] ¤ 450.00
2 Roy Stuwart 571-457-5647 [email protected] ¤ 350.00
3 Rita Zelonis 571-547-3258 [email protected] ¤ 650.00
4 Scott Morgan 210-254-8795 [email protected] ¤ 600.00
5 John Gill 213-546-1456 [email protected] ¤ 650.00
Student_ClassID StudentID ClassID
1 1 BUS506E
2 1 MIT531
3 2 BUS506EA
4 2 MIT531E
5 3 ELA100
6 3 CNS323
7 4 ELA200
8 4 CNS413
9 5 BUS506E
10 5 ELA200
TeacherPaymentID PaymentAmount Teachers_ClassesID
1 ¤ 400.00 1
2 ¤ 500.00 2
3 ¤ 600.00 3
4 ¤ 400.00 4
5 ¤ 500.00 5
6 ¤ 600.00 6
7 ¤ 300.00 7
TeacherID FirstName LastName Street City State Country PostalCode Phone
1 Sander Klaus
2 Faria MacDonald
3 Donald Liu
4 Thomas Gan
Teacher_ClassID TeacherID ClassID
1 1 BUS506E
2 1 MIT532E
3 2 CNS323
4 2 CNS413
5 3 ELA100
6 3 ELA200
7 3 MIT531E
8 4 BUS506EA
9 4 MIT531