NTISthis.com

Evidence Guide: ICTPRG425 - Use structured query language

Student: __________________________________________________

Signature: _________________________________________________

Tips for gathering evidence to demonstrate your skills

The important thing to remember when gathering evidence is that the more evidence the better - that is, the more evidence you gather to demonstrate your skills, the more confident an assessor can be that you have learned the skills not just at one point in time, but are continuing to apply and develop those skills (as opposed to just learning for the test!). Furthermore, one piece of evidence that you collect will not usualy demonstrate all the required criteria for a unit of competency, whereas multiple overlapping pieces of evidence will usually do the trick!

From the Wiki University

 

ICTPRG425 - Use structured query language

What evidence can you provide to prove your understanding of each of the following citeria?

Write a simple SQL statement to retrieve and sort data

  1. Retrieve all the data from a single table
  2. Retrieve data from specific columns in a single table
  3. 1.3 Use 'order by' to sort query output
Retrieve all the data from a single table

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Retrieve data from specific columns in a single table

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

1.3 Use 'order by' to sort query output

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write an SQL statement that selectively retrieves data

  1. 2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause
  2. Restrict the number of rows retrieved, by placing specific criteria in the select statement
  3. 2.3 Use comparison operators in the 'where' clause to compare numeric, character, string, date and time data
  4. Use Boolean operators with the correct precedence
  5. 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
  6. Use SQL syntax to suppress duplicate values from query results
  7. Take action to exclude null values from a query result
2.1 Restrict the number of rows retrieved, by placing criteria in the 'where' clause

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use Boolean operators with the correct precedence

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use SQL syntax to suppress duplicate values from query results

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Take action to exclude null values from a query result

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write SQL statements that use functions

  1. Use arithmetical operators with the correct precedence
  2. Use string functions, and operators, to obtain the required query output
  3. Use mathematical functions to obtain the required output
  4. Use date functions to obtain the required output
  5. Use SQL aggregate functions to obtain the required output
Use arithmetical operators with the correct precedence

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use mathematical functions to obtain the required output

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use date functions to obtain the required output

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use SQL aggregate functions to obtain the required output

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write SQL statements that use aggregation and filtering

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Sort aggregated data in the query output

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

4.3 Filter aggregated data using the 'having' clause

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write SQL statements that retrieve data from multiple tables

  1. Employ the inner join syntax, to retrieve data from two or more tables
  2. 5.2 Use 'left outer', 'right outer' and 'full outer' syntax, to join tables in the select statement
  3. 5.3 Use correct syntax in the 'where' clause, to retrieve data from multiple tables
  4. Write a union query that retrieves data from more than one table
Employ the inner join syntax, to retrieve data from two or more tables

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write and execute SQL sub-queries

  1. Construct single and nested sub-queries
  2. Construct sub-queries that return a single row and multiple rows
  3. Use correlated sub-queries to retrieve required data
  4. Write sub-queries that use aggregates
Construct single and nested sub-queries

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use correlated sub-queries to retrieve required data

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Write sub-queries that use aggregates

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Create and manipulate tables

  1. Identify the required columns, data types, keys, relationships, indexes and constraints
  2. Use the relevant naming conventions for database elements
  3. Create tables that implement the required elements
  4. Manipulate tables to meet specific requirements
Identify the required columns, data types, keys, relationships, indexes and constraints

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use the relevant naming conventions for database elements

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Create tables that implement the required elements

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Manipulate tables to meet specific requirements

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Create and use views

  1. Create views that satisfy information requirements
  2. Use check constraints in a view
  3. Retrieve, insert, update, and delete data using a view
  4. Drop a view from a database
Create views that satisfy information requirements

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Use check constraints in a view

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Drop a view from a database

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Create and use stored procedures

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Drop a stored procedure from the database

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

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

Completed
Date:

Teacher:
Evidence:

 

 

 

 

 

 

 

Assessed

Teacher: ___________________________________ Date: _________

Signature: ________________________________________________

Comments:

 

 

 

 

 

 

 

 

Instructions to Assessors

Evidence Guide

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

Required Skills and Knowledge

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.