A1Session7 MBIS4002
A1Session7 MBIS4002
Assessment In this assessment, you will work individually to demonstrate an ability to query a relational
database using Structured Query Language (SQL) to retrieve data information stored on
Description PostgreSQL server through the SQL command line client, psql, The topics for this
assessment will be covered topics we have learned in the first 3 weeks.
Question 1 (2 marks)
List the astronauts’ names (astroname), year of birth, and age at year of death (death -
birth) of all astronauts who have dead and the age of death was less than 50, Order by
astronauts’ name. With the given data, the result of the correct query will be:
Question 2 (4 marks)
List all missions (projectName, missionType) that did not land on the Moon (e.g
missionType = 'LL' means all missions landed on the moon), all astronaut Name who
have flown in the role of ‘Pilot’, and project Name = “Skylab”. Order by astronaut
Name. With the given data, the result of the (correct) query needs to use Natural
Join operator as follows:
Question 3 (4 marks)
Re-express the above natural join query as a cross product.
1
Detailed • It required students use PostgreSQL and SQL command line client, psql to
complete this Practical Test.
Submission • It required students use and load nasa.sql database to the PostgreSQL server.
• It required submission file containing a full copy of the output from the psql,
Requirements
including login details, \i loading nasa.sql to the server, \dt list tables, etc.
• 5 marks penalty would apply, if submission files could not meet above
requirements (-5 marks)
• Submission file name should be A1Lab7_YourSID.sql
• Each student must submit the assessment through the Turnitin link on the Moodle
page for this unit
• Any photos taken from mobile phone or screenshot from computer as your
solutions without .txt/.sql file will not be accepted, zero marks will be given.
• Any Academic Misconducts will be reported to AIH, and zero marks will be given.
(e.g. if students shared their solutions with other students, e.g. they have submitted
the same file, they would receive zero marks, and will be reported to AIH.)
• Any Late submission will be subject to a reduction of the mark allocated for the
assessment item by 20% of the total marks available for the assessment item,
unless special consideration is approved as per the formal process.
Misconduct • The assessment will be submitted through Turnitin via your unit page on Moodle.
• Turnitin is plagiarism software, which will identify if you have copied information
and included it in your assessment.
• Copying information from others (i.e. websites, partner company information, or
other students etc.) without the acknowledging the author is classified as
misconduct.
• Engaging someone else to write any part of your assessment for you outside of the
group work arrangement is classified as misconduct.
• To avoid being charged with Misconduct, students need to submit their own work
and apply Harvard Style Referencing (ask your lecturer or the learning support
coordinator ([email protected]) if you do not know what this
means, or you need assistance applying it).
• The AIH misconduct policy and procedure can be read on the AIH website
(https://aih.nsw.edu.au/about-us/policies-procedures/).
• Use the AIH referencing guide accessible via Library and Learning Support Page
on Moodle.
Late Submission • Any assessment submitted past the specific due date and time will be classified as
Late.
• Any Late submission will be subject to a reduction of the mark allocated for the
assessment item by 20% of the total marks available for the assessment item.
Assignments submitted later than your class session closed after the due date will
not be accepted, unless special consideration is approved as per the formal
process.
2
• The form can be obtained from the AIH website (https://aih.nsw.edu.au/current-
students/student-forms/) or on-campus at Reception.
• The request form must be submitted to Student Services. Supporting evidence
should be attached. For further information please refer to the Student Assessment
Policy and associated Procedure available on
• (https://aih.nsw.edu.au/about-us/policies-procedures/).
3
Unit MBIS4002 Database Management Systems
Assessment 4 – Practical Exam - Marking Rubric
Q3. Re-express the SQL query and its SQL query and its SQL query and its SQL query and its SQL query and its
above natural join output in psql are output in psql are output in psql are output in psql are output in psql are lots
query as a “Cross accurate and accurate and mostly satisfactory. satisfactory with of errors, or not
Product”. (4 marks) complete. complete. errors. attempted.
(4 – 3.4 marks) (3.3 – 3 marks) (2.9 – 2.6 marks) (2.5 – 2 marks) (1.9 – 0 marks)
4
The penalty (10 marks) will be applied, if submission file did not meet Assessment Requirements or did not include required
information below:
Fail to meet • Using PostgreSQL and command client PSQL Shall (psql) to complete tasks.
Assessment • Login to psql
Requirements • \i loading nasa.sql
(50% marks penalty) • \dt list tables
• Submission file, .txt/.sql – a copy of full outputs from psql
(-5 marks)
Any submission after 1-hour test period, unless special consideration is approved as per the formal process.
Late Submission (-2 marks)
(a reduction, 20% of
total marks)