l2 SQL Queries Select Update Delete Insert
l2 SQL Queries Select Update Delete Insert
DATABASES
Objectives
• Understand what structured data is
• Use CTRL + C and CTRL + V to copy and paste it to your home drive
Basic Search Query – SELECT
SELECT Subjects.SubjectName, Subjects.SubjectTeacher
FROM Subjects
WHERE Subjects.ExamBoard = 'Edexcel'
• Adapt this query to find:
• All students who have a surname starting with the letter ‘G’
• SELECT Classes.SubjectName, Classes.StudentName
• FROM Classes
• WHERE Classes.SubjectName = 'Business'
• SELECT *
• FROM Students
• WHERE Students.DateofBirth < #01/01/2000#
DELETE – removes records from database