Unit of Competency Mapping – Information for Teachers/Assessors – Information for Learners

ICTPRG425 Mapping and Delivery Guide
Use structured query language

Version 1.0
Issue Date: March 2024


Qualification -
Unit of Competency ICTPRG425 - Use structured query language
Description
Employability Skills
Learning Outcomes and Application 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.No licensing, legislative or certification requirements apply to this unit at the time of publication.
Duration and Setting X weeks, nominally xx hours, delivered in a classroom/online/blended learning setting.

Gather evidence to demonstrate 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.

Assessors must satisfy NVR/AQTF assessor requirements.

Prerequisites/co-requisites
Competency Field
Development and validation strategy and guide for assessors and learners Student Learning Resources Handouts
Activities
Slides
PPT
Assessment 1 Assessment 2 Assessment 3 Assessment 4
Elements of Competency Performance Criteria              
Element: Write a simple SQL statement to retrieve and sort data
  • Retrieve all the data from a single table
  • Retrieve data from specific columns in a single table
  • 1.3 Use 'order by' to sort query output
       
Element: Write an SQL statement that selectively retrieves data
  • 2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause
  • 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
  • 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
  • Use SQL syntax to suppress duplicate values from query results
  • Take action to exclude null values from a query result
       
Element: Write SQL statements that use functions
  • Use arithmetical operators with the correct precedence
  • Use string functions, and operators, to obtain the required query output
  • Use mathematical functions to obtain the required output
  • Use date functions to obtain the required output
  • Use SQL aggregate functions to obtain the required output
       
Element: Write SQL statements that use aggregation and filtering
  • 4.1 Use 'group by' to aggregate data by multiple columns
  • Sort aggregated data in the query output
  • 4.3 Filter aggregated data using the 'having' clause
       
Element: Write SQL statements that retrieve data from multiple tables
  • 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
  • Write a union query that retrieves data from more than one table
       
Element: Write and execute SQL sub-queries
  • Construct single and nested sub-queries
  • Construct sub-queries that return a single row and multiple rows
  • Use correlated sub-queries to retrieve required data
  • Write sub-queries that use aggregates
       
Element: Create and manipulate tables
  • Identify the required columns, data types, keys, relationships, indexes and constraints
  • Use the relevant naming conventions for database elements
  • Create tables that implement the required elements
  • Manipulate tables to meet specific requirements
       
Element: Create and use views
  • Create views that satisfy information requirements
  • Use check constraints in a view
  • Retrieve, insert, update, and delete data using a view
  • Drop a view from a database
       
Element: Create and use stored procedures
  • Create and execute stored procedures that use SQL to retrieve, insert, or modify data, according to information requirements
  • Create and execute stored procedures, that use one or more parameters
  • Drop a stored procedure from the database
  • Create and test database triggers that automate data management, or perform specific required data-related functions
       


Evidence Required

List the assessment methods to be used and the context and resources required for assessment. Copy and paste the relevant sections from the evidence guide below and then re-write these in plain English.

ELEMENT

PERFORMANCE CRITERIA

Elements describe the essential outcomes.

Performance criteria describe the performance needed to demonstrate achievement of the element.

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

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

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

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

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

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

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

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

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

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.

Note: If a specific volume or frequency is not stated, then evidence must be provided at least once.

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.


Submission Requirements

List each assessment task's title, type (eg project, observation/demonstration, essay, assignment, checklist) and due date here

Assessment task 1: [title]      Due date:

(add new lines for each of the assessment tasks)


Assessment Tasks

Copy and paste from the following data to produce each assessment task. Write these in plain English and spell out how, when and where the task is to be carried out, under what conditions, and what resources are needed. Include guidelines about how well the candidate has to perform a task for it to be judged satisfactory.

ELEMENT

PERFORMANCE CRITERIA

Elements describe the essential outcomes.

Performance criteria describe the performance needed to demonstrate achievement of the element.

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

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

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

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

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

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

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

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

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

Copy and paste from the following performance criteria to create an observation checklist for each task. When you have finished writing your assessment tool every one of these must have been addressed, preferably several times in a variety of contexts. To ensure this occurs download the assessment matrix for the unit; enter each assessment task as a column header and place check marks against each performance criteria that task addresses.

Observation Checklist

Tasks to be observed according to workplace/college/TAFE policy and procedures, relevant legislation and Codes of Practice Yes No Comments/feedback
Retrieve all the data from a single table 
Retrieve data from specific columns in a single table 
1.3 Use 'order by' to sort query output 
2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause 
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 
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 
Use SQL syntax to suppress duplicate values from query results 
Take action to exclude null values from a query result 
Use arithmetical operators with the correct precedence 
Use string functions, and operators, to obtain the required query output 
Use mathematical functions to obtain the required output 
Use date functions to obtain the required output 
Use SQL aggregate functions to obtain the required output 
4.1 Use 'group by' to aggregate data by multiple columns 
Sort aggregated data in the query output 
4.3 Filter aggregated data using the 'having' clause 
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 
Write a union query that retrieves data from more than one table 
Construct single and nested sub-queries 
Construct sub-queries that return a single row and multiple rows 
Use correlated sub-queries to retrieve required data 
Write sub-queries that use aggregates 
Identify the required columns, data types, keys, relationships, indexes and constraints 
Use the relevant naming conventions for database elements 
Create tables that implement the required elements 
Manipulate tables to meet specific requirements 
Create views that satisfy information requirements 
Use check constraints in a view 
Retrieve, insert, update, and delete data using a view 
Drop a view from a database 
Create and execute stored procedures that use SQL to retrieve, insert, or modify data, according to information requirements 
Create and execute stored procedures, that use one or more parameters 
Drop a stored procedure from the database 
Create and test database triggers that automate data management, or perform specific required data-related functions 

Forms

Assessment Cover Sheet

ICTPRG425 - Use structured query language
Assessment task 1: [title]

Student name:

Student ID:

I declare that the assessment tasks submitted for this unit are my own work.

Student signature:

Result: Competent Not yet competent

Feedback to student

 

 

 

 

 

 

 

 

Assessor name:

Signature:

Date:


Assessment Record Sheet

ICTPRG425 - Use structured query language

Student name:

Student ID:

Assessment task 1: [title] Result: Competent Not yet competent

(add lines for each task)

Feedback to student:

 

 

 

 

 

 

 

 

Overall assessment result: Competent Not yet competent

Assessor name:

Signature:

Date:

Student signature:

Date: