Step-by-Step Practical Exercise_ SQL
Step-by-Step Practical Exercise_ SQL
Exercise Overview
This exercise will guide you through the basic operations in SQL, including starting and working
in the SQL environment, executing basic SQL commands, running SQL statements, displaying
data sets, sorting, searching, filtering databases, and using/reusing queries.
Assessment Criteria
Step-by-Step Instructions
Open the SQL environment and execute the following command to create a database:
sql
○
Step 2: Basic SQL Code (SELECT, UPDATE, DELETE) (8 marks)
1. Create Tables:
○
2. Insert Data:
○
4. Update Data:
UPDATE Students
SET LastName = 'Johnson'
WHERE FirstName = 'John' AND LastName = 'Doe';
○
5. Delete Data:
Write and execute a query to display the full list of students along with their class names:
sql
1. Sort Data:
○
2. Search and Filter Data:
○
2. Use the Saved Query:
Final Steps