Structured Query Language (SQL) (AQA GCSE Computer Science): Flashcards

📚Flashcards
Use of SQL to Insert, Update and Delete Data
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

SQL data manipulation three operations

Add new records, modify existing ones, remove unwanted data

Three essential SQL data manipulation commands

INSERT, UPDATE, DELETE

Purpose of INSERT command

Adds brand new rows of data to an existing table

Basic INSERT syntax structure

INSERT INTO table (fields) VALUES (values)

INSERT requirement for fields and values

Must match up perfectly (first value to first field, etc.)

Purpose of UPDATE command

Modifies existing records without deleting and recreating them

Three key parts of UPDATE command

Table to update, SET clause, WHERE clause

Role of WHERE clause in UPDATE

Specifies exactly which records should be modified

Result of UPDATE without WHERE clause

Changes every single record in the table

Purpose of DELETE command

Removes unwanted records permanently from database

Basic DELETE syntax structure

DELETE FROM table_name WHERE condition

Result of DELETE without WHERE clause

Deletes every single record in the table

Most dangerous SQL command

DELETE (permanently removes data)

WHERE clause role as safety feature

Acts as filter ensuring only specific records are affected

Explore AQA GCSE Computer Science Revision Notes by Topics

Explore AQA GCSE Computer Science Model Answers by Topics

Explore AQA GCSE Computer Science Quizzes by Topics

Explore AQA GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.