Computing
Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Lesson Video

78

Lesson Tasks

  • Watch the Lesson video
    Make notes if needed.
  • Open your Learning Journal
    Complete Task 1 in your Learning Journal
  • Complete the learning activities
    Make sure you complete the book tasks in your Unit Booklet
  • Complete End of Task Assessment
    Update your learning objectives

What do I need to Learn?

0 results forGuest0 results

Key Terms

SELECT INSERT INTO UPDATE condition query ORDER BY DELETE

Task 0 - Getting organised Click to see more


Task: Learning Journal

Open your Learning Journal by clicking on the image below

Good notes will help you organise and process data and information


Task 1 - INSERT data using SQL Click to see more

3 SQL Syntax - INSERT

Learn It: Insert a new record

  • Example 1: To insert a new record into an existing table we use the SQL INSERT INTO statement. The syntax is:
INSERT INTO tableName (column1, column2,...)
VALUES (value1, value2,...)
  • For example, to insert a record for a new customer, Mrs T Rush, 78 Oak Ave, Peterborough, 01733873194, 19/04/1974
INSERT INTO Customer(CustID, Title, Initial, Surname, Address, City, Phone, DoB)
       VALUES(C005, "Mrs", "T", "Rush", "78 Oak Ave", "Pboro", "01733873194", "19/04/1974");
  • Example 2: To insert a record for a new book, C456, You Care Too Much, Carl Vernon, Self Help, 4, 07/01/2019:
INSERT INTO Books(BookID, Title, Author, Genre, Rating, PublishDate)
        VALUES(C456, "You Care Too Much", "Self Help", "4", "07/01/2019");

SQL- INSERT

  • Lets do some more SQL complete the SQL INSERT Tutorial and the exercises using theW3 Schools SQL link below:

Task 2 - UPDATE data using SQL Click to see more

4 SQL Syntax - UPDATE

Learn It: Update an existing record

  • To update an existing record's attribute(s) that meeting a specified condition, we use the SQL UPDATE statement. The syntax is:
UPDATE tableName
SET column1 = value1, column2 = value2, ...
WHERE column = value
  • Example: Update the record of CustID C001, Mrs Flowers, who has changed her address to 63 River Way, and her phone number to 01778 886210.
UPDATE Customer
       SET Address = "63 River Way", Phone = "01778 886210"
       WHERE CustID = "C001"

SQL- UPDATE

  • Lets do some more SQL complete the SQL UPDATE Tutorial and the exercises using theW3 Schools SQL link below:

Task 3 - DELETE data using SQL Click to see more

5 SQL Syntax - DELETE

Learn It: Delete an existing record

  • To delete an existing record from a table that meeting a specified condition, we use the SQL DELETE statement. The syntax is:
DELETE FROM tablename
WHERE column = value
  • Example: Delete the record for CustID C004, Ms, P, Jones.
DELETE FROM Customer
WHERE CustID = C004

SQL- DELETE

  • Lets do some more SQL complete the SQL DELETE Tutorial and the exercises using theW3 Schools SQL link below:

Task 4 - Querying Multiple Tables Click to see more

  • Watch the above video and use the link below it to work thr0ugh the tasks in the video with the presenter

Task 5 - Book Tasks Click to see more

Task:

Open your student workbook at page 11 Read through the notes then complete the following tasks in your book.
  1. Tasks 4 - 8

  • When you are finished screenshot your answer into your Learning Journal

  • Task 6 - Creating an SQL Database using DB Browser Click to see more

    Task:

    Open your student workbook at page 22 Read through the notes then and complete the tasks in your book. DB Browser is on your machine and any files you need can be found in the shared area in the same folder as your booklet
    1. Task Creating an SQL Database using DB Browser

  • When you are finished screenshot your answer into your Learning Journal

  • Task 7 - End of Task Assessment Click to see more