Course Title: Use structured query language

Part B: Course Detail

Teaching Period: Term2 2020

Course Code: COSC7373C

Course Title: Use structured query language

School: 650T Vocational Business Education

Campus: City Campus

Program: C5395 - Diploma of Information Technology

Course Contact: Val Christou

Course Contact Phone: +61 3 9925 5076

Course Contact Email: val.christou@rmit.edu.au


Name and Contact Details of All Other Relevant Staff

Course Leader: Chandra Nannegari

email: chandra.nannegari@rmit.edu.au

 

phone:+61 03 9925 1657

 

 

 

Nominal Hours: 60

Regardless of the mode of delivery, represent a guide to the relative teaching time and student effort required to successfully achieve a particular competency/module. This may include not only scheduled classes or workplace visits but also the amount of effort required to undertake, evaluate and complete all assessment requirements, including any non-classroom activities.

Pre-requisites and Co-requisites

None

Course Description

This unit describes the skills and knowledge required to use a structured query language (SQL) to define, create, and manipulate database structures, and the associated data in a relational database.

It applies to individuals in a wide variety of information and communications technology (ICT) roles, where relational databases and SQL are being used.


National Codes, Titles, Elements and Performance Criteria

National Element Code & Title:

ICTPRG425 Use structured query language

Element:

1. Write a simple SQL statement to retrieve and sort data

Performance Criteria:

1.1 Retrieve all the data from a single table

1.2 Retrieve data from specific columns in a single table

1.3 Use 'order by' to sort query output 

Element:

2. Write an SQL statement that selectively retrieves data

Performance Criteria:

2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause

2.2 Restrict the number of rows retrieved, by placing specific criteria in the select statement

2.3 Use comparison operators in the 'where' clause to compare numeric, character, string, date and time data

2.4 Use Boolean operators with the correct precedence

2.5 Use criteria in the 'where' clause, to check for a range of values, to select values from a list, and to check for values that match a pattern

2.6 Use SQL syntax to suppress duplicate values from query results

2.7 Take action to exclude null values from a query result 

Element:

3. Write SQL statements that use functions

Performance Criteria:

3.1 Use arithmetical operators with the correct precedence

3.2 Use string functions, and operators, to obtain the required query output

3.3 Use mathematical functions to obtain the required output 

3.4 Use date functions to obtain the required output

3.5 Use SQL aggregate functions to obtain the required output 

Element:

4. Write SQL statements that use aggregation and filtering

Performance Criteria:

4.1 Use 'group by' to aggregate data by multiple columns

4.2 Sort aggregated data in the query output

4.3 Filter aggregated data using the 'having' clause 

Element:

5. Write SQL statements that retrieve data from multiple tables

Performance Criteria:

5.1 Employ the inner join syntax, to retrieve data from two or more tables

5.2 Use 'left outer', 'right outer' and 'full outer' syntax, to join tables in the select statement

5.3 Use correct syntax in the 'where' clause, to retrieve data from multiple tables

5.4 Write a union query that retrieves data from more than one table 

Element:

6. Write and execute SQL sub-queries

Performance Criteria:

6.1 Construct single and nested sub-queries

6.2 Construct sub-queries that return a single row and multiple rows

6.3 Use correlated sub-queries to retrieve required data

6.4 Write sub-queries that use aggregates 

Element:

7. Create and manipulate tables

Performance Criteria:

7.1 Identify the required columns, data types, keys, relationships, indexes and constraints

7.2 Use the relevant naming conventions for database elements

7.3 Create tables that implement the required elements

7.4 Manipulate tables to meet specific requirements 

Element:

8. Create and use views

Performance Criteria:

8.1 Create views that satisfy information requirements

8.2 Use check constraints in a view

8.3 Retrieve, insert, update, and delete data using a view

8.4 Drop a view from a database 

Element:

9. Create and use stored procedures

Performance Criteria:

9.1 Create and execute stored procedures that use SQL to retrieve, insert, or modify data, according to information requirements

9.2 Create and execute stored procedures, that use one or more parameters

9.3 Drop a stored procedure from the database

9.4 Create and test database triggers that automate data management, or perform specific required data-related functions


Learning Outcomes



Details of Learning Activities

A range of learning activities are planned for this course on a variety of topics as shown in the teaching schedule.

 

This may include self-paced and collaborative classroom activities such as:

  • Class exercises
  • Challenges
  • Problem solving
  • Project work
  • Quizzes

 

We expect you to participate and contribute in all scheduled learning activities as each week builds on the next.


Teaching Schedule

Course Delivery: 

The nominal hours associated with this are a guide only and represent the total teaching time and student effort required to successfully complete the course. This may include not only scheduled classes but also the amount of effort required to undertake, evaluate and complete all assessment requirements, including any non-classroom activities.

Week

Week Commencing

Topics

Assessment

1

6th July

Introduction to the Course including:
• Course requirements
• Course support documents
• Course Canvas access
• Accuracy of enrolment
• Assessment requirements/Cover Sheets
• Reminder re Plagiarism
• Reminder re Appeals
• Extensions/Re-submissions
• Feedback in this course
• Reminder re submission requirements
• Getting help


Simple SQL statements to retrieve and sort data

 

2

13th July

SQL statements that selectively retrieve data.

 

3

20th July

SQL statements to extract data from more than one table.

Assessment 1 (Project) Stage 1 & Stage 2 handed out

4

27th July

SQL in multi-table table queries continued

 

5

3rd Aug

SQL aggregation and filtering of data.

 

6

10th Aug

SQL sub-queries            

Assessment 1 (Project) Stage 1: draft checks

7

17th Aug

SQL functions

Assessment 1 (Project): Stage 1: Submission Due.

Demonstration & feedback of this assessment in Week 8 & 9.  If required, re-submission for this assessment is due by the end of Week 11.

8

24th Aug

SQL action Queries

Assessment 1 (Project): Stage 1 - feedback

Break ( Monday 31st Aug - Friday 4th Sept inclusive)

9

7th Sept

Views

  Assessment 1 (Project): Stage 1 - feedback;  Work on Assessment 1 (Project) Stage 2

10

14th Sept

Stored procedure

 Work on Assessment 1 (Project) Stage 2

11

21st Sept

Left Join, Right Join & UNION

 Work on Assessment 1 (Project) Stage 2

12

28th Sept

Server concepts & Modelling concepts overview

 Assessment 1 (Project) : Stage 2: Project draft checks

13

5th Oct

Assessment 2 : Modelling concepts worksheet

Assessment 1 (Project) Stage 2: Project draft checks;    

14

12th Oct

Assessment 1 (Project) Stage 2: Submission due.

Assessment 1 (Project) Stage 2: Submission due.

Demonstration & feedback of this assessment in Week 15. If required, re-submission for this assessment is due by the end of Week 16.

15

19th Oct

Assessment 3 (Skills Review Test)

AND

Assessment 1 (Project) Stage 2 demonstration and feedback.

Demonstration & feedback of this assessment in Week 15 & 16. If required, re-submission for this assessment is due by the end of Week 16.

16

26th Oct

Feedback & Review . Re-submissions if required

 


Learning Resources

Prescribed Texts

Larry Rockoff, The Language of SQL, Course Technology

978-1-4354-5751-5


References

SQL for SQL Server by Bijoy Bordoloi and Douglas Bock

0-13-113299-7


Other Resources

You will need laptop with charger for each class

  • Windows laptops we do recommend an i5 or better machine with a minimum 4 GB of RAM.
  • Macs you will need 8 GB of RAM to run a virtual machine

You may also refer to various media, websites, textbooks and e-books as indicated in Canvas

 

Prescribed Texts

Larry Rockoff, The Language of SQL, Course Technology, ISBN - 13: 978-1-4354-5751-5

References

SQL for SQL Server by Bijoy Bordoloi and Douglas Bock ISBN: 0-13-113299-7


Overview of Assessment

In order to achieve competency in this unit, you must provide:

Performance Evidence

Evidence of the ability to:

  • write a simple, structured query language (SQL) statement to retrieve and sort data
  • write an SQL statement that selectively retrieves data
  • write SQL statements that:
  • use functions and operators
  • use aggregation and filtering
  • retrieve data from multiple tables
  • write and execute SQL sub-queries
  • create and manipulate tables to meet specific requirements
  • create and use views that satisfy information requirements
  • create and use stored procedures. 

Knowledge Evidence

To complete the unit requirements safely and effectively, you must:

  • explain client-server concepts
  • explain data-integrity concepts
  • describe data-modelling structures
  • explain databases and database objects, including data types, data structures, identifiers and metadata
  • summarise programming concepts
  • give an overview of query design
  • give an overview of relational database design
  • describe the SQL client environment
  • describe the SQL server architecture.

 Assessment Conditions

Assessment must be conducted in a safe environment where evidence gathered demonstrates consistent performance in conditions that are safe and replicate the workplace. Noise levels, production flow, interruptions and time variances must be typical of those experienced in the programming and software development, and include access to:

  • special purpose tools, equipment and materials
  • industry software packages.

You are advised that you are likely to be asked to personally demonstrate your assessment work to your teacher to ensure that the relevant competency standards are being met.

Feedback

Feedback will be provided throughout the semester in class and/or online discussions.  You are encouraged to ask and answer questions during class time and online sessions so that you can obtain feedback on your understanding of the concepts and issues being discussed. Finally, you can email or arrange an appointment with your teacher to gain more feedback on your progress.

You should take note of all feedback received and use this information to improve your learning outcomes and final performance in the course.       


Assessment Tasks

You are required to complete three Assessment tasks - Assessment 1 (Project) , Assessment 2 (Worksheet) and Assessment 3 (Skills Review Test). You must complete all assessments and demonstrate competency in these assessments.

The Assessment 1 (Project) will be submitted in two stages. Stage 1 is an individual submission and Stage 2 a team submission. The project provides an opportunity to students to demonstrate the skills they learn in this unit. ASSESSMENT 2(Worksheet) involves database modelling. Assessment 3 (Skills Review Test) is a paper based TEST administered in the class.

 A workable database structure will be provided in Week 3 for Assessment 1 (Project)  

Assessment 1 ( Project) Stage 1: Submission (Due Week 7 ) - Individual  

  • The database structure is implemented using graphical tools with appropriate data either in MS Access or in MS SQL Server.
  • You will design and execute simple SQL queries to extract data from this database.
  • You will be asked to demonstrate, answer question about, and modify queries during assessment time. 

Assessment 1 (Project) Stage 2: Submission (Due Week 14) – Team

  • 2 or 3 students will be expected to form a team.
  • The database structure is implemented using SQL statements in MS SQL Server. Further tables are populated with appropriate data using SQL statements.
  • You will design and execute complex SQL Queries to extract data from this database. Also answer questions on server concepts. 

Assessment 2 (Worksheet) Submission (Due Week 13) – Individual

  • You are required to demonstrate your knowledge in database modelling by completing a task sheet successfully in the class. A case study will be provided based on which you will draw ERD and then implement the same in MS SQL Server. And enter appropriate sample data in the tables.

 Assessment 3 (Skills review TEST) (Due Week 15) – Individual

  • You will be required to design queries under TEST conditions. 

 


Assessment Matrix

 

Elements/Performance Criteria   Assessment Details  

1. Write a simple SQL statement to retrieve and sort data

1.1 Retrieve all the data from a single table 1.2 Retrieve data from specific columns in a single table 1.3 Use 'order by' to sort query output 
• Assessment 1 ( Project) Stage 1

2. Write an SQL statement that selectively retrieves data

2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause

2.2 Restrict the number of rows retrieved, by placing specific criteria in the select statement 2.3 Use comparison operators in the 'where' clause to compare numeric, character, string, date and time data 2.4 Use Boolean operators with the correct precedence 2.5 Use criteria in the 'where' clause, to check for a range of values, to select values from a list, and to check for values that match a pattern 2.6 Use SQL syntax to suppress duplicate values from query results 2.7 Take action to exclude null values from a query result 

• Assessment 1 ( Project) Stage 1

• Assessment 3 (Skills Review TEST)

3. Write SQL statements that use functions

3.1 Use arithmetical operators with the correct precedence 3.2 Use string functions, and operators, to obtain the required query output 3.3 Use mathematical functions to obtain the required output  3.4 Use date functions to obtain the required output 3.5 Use SQL aggregate functions to obtain the required output 
• Assessment 1 ( Project) Stage 1

4. Write SQL statements that use aggregation and filtering

4.1 Use 'group by' to aggregate data by multiple columns 4.2 Sort aggregated data in the query output 4.3 Filter aggregated data using the 'having' clause 

• Assessment 1 ( Project) Stage 1

• Assessment 3 (Skills Review TEST)

5. Write SQL statements that retrieve data from multiple tables

5.1 Employ the inner join syntax, to retrieve data from two or more tables 5.2 Use 'left outer', 'right outer' and 'full outer' syntax, to join tables in the select statement 5.3 Use correct syntax in the 'where' clause, to retrieve data from multiple tables 5.4 Write a union query that retrieves data from more than one table 
• Assessment 1 ( Project) Stage 1

6. Write and execute SQL sub-queries

6.1 Construct single and nested sub-queries 6.2 Construct sub-queries that return a single row and multiple rows 6.3 Use correlated sub-queries to retrieve required data 6.4 Write sub-queries that use aggregates 

• Assessment 1 ( Project) Stage 1

• Assessment 3 (Skills Review TEST)

7. Create and manipulate tables

7.1 Identify the required columns, data types, keys, relationships, indexes and constraints 7.2 Use the relevant naming conventions for database elements 7.3 Create tables that implement the required elements 7.4 Manipulate tables to meet specific requirements 
• Assessment 1 ( Project) Stage 2

8. Create and use views

8.1 Create views that satisfy information requirements 8.2 Use check constraints in a view 8.3 Retrieve, insert, update, and delete data using a view 8.4 Drop a view from a database 

• Assessment 1 ( Project) Stage 2

• Assessment 3 (Skills Review TEST)

9. Create and use stored procedures

9.1 Create and execute stored procedures that use SQL to retrieve, insert, or modify data, according to information requirements 9.2 Create and execute stored procedures, that use one or more parameters 9.3 Drop a stored procedure from the database 9.4 Create and test database triggers that automate data management, or perform specific required data-related functions

• Assessment 1 ( Project) Stage 2

• Assessment 3 (Skills Review TEST)

Performance Evidence  
Evidence of the ability to:   • write a simple, structured query language (SQL) statement to retrieve and sort data • write an SQL statement that selectively retrieves data • write SQL statements that: • use functions and operators • use aggregation and filtering • retrieve data from multiple tables • write and execute SQL sub-queries • create and manipulate tables to meet specific requirements • create and use views that satisfy information requirements • create and use stored procedures. 

• Assessment 1 ( Project) Stage 1

• Assessment 1 ( Project) Stage 2

• Assessment 3 (Skills Review TEST) 

Knowledge Evidence  
To complete the unit requirements safely and effectively, the individual must:   • explain client-server concepts • explain data-integrity concepts • describe data-modelling structures • explain databases and database objects, including data types, data structures, identifiers and metadata • summarise programming concepts • give an overview of query design • give an overview of relational database design • describe the SQL client environment • describe the SQL server architecture. 

• Assessment 2 (Worksheet) 

• Assessment 1 ( Project) Stage 2

 

Other Information

Submission Requirements

You should:

  • Ensure that you submit assessments on or before the due date via CANVAS.
  • Always retain a copy of your assessment tasks. (hard copy and soft copy)
  • When you submit work for assessment at RMIT University you need to use a cover sheet that includes a declaration and statement of authorship. You must complete, sign and submit a cover sheet with all work you submit for assessment, whether individual or group work. On the cover sheet you declare that the work you are presenting for assessment is your own work.
  • Each page of your assessment should include footer with your name, student number, the title of the assessment, unit code and title and page numbers. For example, Julie Macpherson, 324567, Task 2, OHS2345C Ensure safe workplace, Page 1 of 10.
  • Projects must be submitted via Canvas.


Late Submission Procedures

 You are required to submit assessment items and/or ensure performance-based assessment is completed by the due dates. 
If you are prevented from submitting an assessment item on time, by circumstances outside your control, you may apply in advance to your teacher for an extension to the due date of up to seven calendar days.

More Information: https://www.rmit.edu.au/students/student-essentials/assessment-and-exams/assessment/extensions-of-time-for-submission-of-assessable-work
Form to use: http://mams.rmit.edu.au/seca86tti4g4z.pdf

Special Consideration Procedures

Where an extension of greater than seven days is needed, you must apply for special consideration. Applications for special consideration must be submitted no later than two working days after the assessment task deadline or scheduled examination

More Information: https://www.rmit.edu.au/students/student-essentials/assessment-and-exams/assessment/special-consideration
Online special consideration link: https://specon.rmit.edu.au/specon/

Resubmissions

If you are found to be unsuccessful in a Course Assessment Task, you will be allowed one resubmission only. Your teacher will provide feedback regarding what you need to do to improve and will set a new deadline for the resubmission.

If you are still not meeting the assessment requirements you must apply to your Program Manager in writing outlining the steps you will take to demonstrate competence in your course. Your submission will be considered by the Program Team and you will be advised of the outcome as soon as possible.

Adjustments to Assessment

In certain circumstances students may be eligible for an assessment adjustment. For more information about the circumstances under which the assessment arrangements might be granted please access the following website.

More Information: https://www.rmit.edu.au/students/student-essentials/assessment-and-exams/assessment/adjustments-to-assessment

Marking Guide (Courses delivered in accordance with competency-based assessment):

You must demonstrate that you have all the required skills/knowledge/elements in the unit of competency you are studying. You will receive feedback on each assessment task that will inform you about your progress and how well you are performing.

CA       Competency Achieved

NYC    Not Yet Competent

DNS    Did Not Submit for assessment

Course Overview: Access Course Overview