Course web page: Introduction to problem solving with applications James Tam Return to the course web page

Marking of Assignment 2

Ensuring data integrity  
  Feature Max marks Student mark
  EMPLOYEES TABLE: Salary 3  
  EMPLOYEES TABLE: Years of service 3  
  LOCATIONS TABLE: Location ID (half for 'L', half for the digits) 6  
  LOCATIONS TABLE: Postal code (1 mark for each character) 7  
  LOCATIONS TABLE: Province (2 marks for only letters, 2 for ensuring upper) 4  
  LOCATIONS TABLE: Telephone (1 mark for each character: dash, bracket or 'digit') 13  
  TITLES TABLE: Title ID (Half for 'T', Half for digits) 6  
  TOTAL INTEGRITY 42  
     
Other changes to tables    
  Providing useful error messages 4  
  Documenting the 'description' fields 10  
  Add images to the 'picture' attribute 2  
  Setting the primary key for each table 6  
  Establish foreign-primary key relations between tables 8  
  TOTAL FOR OTHER TABLE CHANGES 30  
       
Queries    
  First query (showing correct fields: 2 marks, query: 2 marks) 4  
  Second query (showing correct fields: 3 marks, query: 4 marks) 7  
  Third query (showing correct fields: 3 marks, query: 4 marks) 7  
  Fourth query (showing correct fields: 2 marks, query: 4 marks, sorting: 2 marks) 8  
  Fifth query (showing correct fields: 4 marks, query: 3 marks) 7  
  Sixth query (showing correct fields: 4 marks, query: 7 marks) 11  
  Seventh query (showing correct fields: 4 marks, query: 7 marks) 11  
  TOTAL FOR THE QUERIES 55  
       
ERD    
  Employees table (1 mark for primary key, remainder for the rest of the table) 3  
  Locations table (1 mark for primary key, remainder for the rest of the table) 3  
  Titles table (1 mark for primary key, remainder for the rest of the table) 3  
  Relationships 2  
  Multiplicity/cardinality 2  
  TOTAL FOR THE ERD 13  
       
  Contact information excluded (max 14 marks lost)    
Total raw score 140  
       
Grade point    

Cutoff scale

Min raw score Grade point
0 0
56 1
64 1.1
67 1.2
70 1.3
72 1.4
74 1.5
75 1.6
77 1.7
78 1.8
81 1.9
84 2
85 2.1
88 2.2
91 2.3
93 2.4
95 2.5
96 2.6
98 2.7
99 2.8
102 2.9
105 3
106 3.1
109 3.2
112 3.3
113 3.4
116 3.5
117 3.6
119 3.7
120 3.8
123 3.9
126 4