Computer Science - 9210 OxfordAQA

Structured Query Language (sql)

Overzicht

A database with a million records is useless unless you can ask it a question and get the four rows you actually wanted. The language for asking is SQL, and its central idea is unusual for a programming language: you describe what you want rather than how to find it. You do not write a loop over a million records. You say which fields, from which tables, matching which condition, and the database works out the rest.

This lesson covers the commands the specification names. You will learn to retrieve data with SELECT, FROM and WHERE, including queries that draw on two tables at once; to add a record with INSERT INTO; and to edit and delete data with UPDATE and DELETE FROM. You will also learn the single most consequential detail in the whole topic, which is what happens to an UPDATE or a DELETE that is missing its WHERE clause.

Doelstellingen

  1. Be able to use SQL to retrieve data from a relational database, using the commands:
  2. SELECT
  3. FROM
  4. WHERE. Be able to use SQL to insert data into a relational database using INSERT INTO. Be able to use the SQL commands UPDATE and DELETE FROM to edit and delete data in a database.

Mindmap

Dit onderwerp is in kaart gebracht zodat je ziet hoe de ideeen samenhangen.

Open de mindmap in de app

Lesnotitie

SQL, structured query language, is the language used to work with a relational database. A statement written in it is a description of a result rather than a set of instructions for producing one, which is why the same short query works whether the table holds six records or six million.

Volledige lesnotitie beschikbaar in de Green Bridge-app

Installeer de Green Bridge CBT-app op je telefoon of computer voor de volledige IGCSE-bibliotheek: examens uit voorgaande jaren, correctiemodellen, mindmaps, flashcards en audiolessen.

Volledige lesnotities met diagrammen
AI-gestuurde leerassistent
Proefexamens op tijd, nagekeken zodra je klaar bent
Beschikbaar voor Android, Windows, macOS en Linux iOS-app binnenkort beschikbaar

Lesevaluatie

Gefeliciteerd met het voltooien van de les op Structured Query Language (sql). Nu je de sleutelconcepten en ideeën, het is tijd om uw kennis op de proef te stellen. Deze sectie biedt een verscheidenheid aan oefeningen vragen die bedoeld zijn om uw begrip te vergroten en u te helpen uw begrip van de stof te peilen.

Je zult een mix van vraagtypen tegenkomen, waaronder meerkeuzevragen, korte antwoordvragen en essayvragen. Elke vraag is zorgvuldig samengesteld om verschillende aspecten van je kennis en kritisch denkvermogen te beoordelen.

Gebruik dit evaluatiegedeelte als een kans om je begrip van het onderwerp te versterken en om gebieden te identificeren waar je mogelijk extra studie nodig hebt. Laat je niet ontmoedigen door eventuele uitdagingen die je tegenkomt; beschouw ze in plaats daarvan als kansen voor groei en verbetering.

  1. Which SQL clause states which records a query should return? A. SELECT B. FROM C. WHERE D. INSERT INTO Answer: C
  2. Which query correctly finds the names of all cats and all birds in a table called Pet? A. SELECT Name FROM Pet WHERE TypeOfAnimal = 'Cat' AND TypeOfAnimal = 'Bird' B. SELECT Name FROM Pet WHERE TypeOfAnimal = 'Cat' OR TypeOfAnimal = 'Bird' C. SELECT Name FROM Pet WHERE TypeOfAnimal = Cat OR Bird D. SELECT Name FROM Pet WHERE TypeOfAnimal = 'Cat' OR 'Bird' Answer: B
  3. What does the statement DELETE FROM Booking do if it has no WHERE clause? A. Nothing, because a WHERE clause is required B. It deletes the first record only C. It deletes every record in the Booking table D. It deletes the Booking table's field names Answer: C
  4. Which command is used to change the value already stored in a field? A. SELECT B. INSERT INTO C. UPDATE D. DELETE FROM Answer: C
  5. In a query drawing on two tables, what is the purpose of a condition such as Pet.PetID = Appointment.PetID? A. It sorts the results into order B. It matches each record in one table with the correct record in the other C. It deletes records that appear in both tables D. It renames a field Answer: B

Maak deze vragen in de app

Maak deze vragen in de app

Oefen Proefexamenvragen

Wilt u proefexamenvragen over Structured Query Language (sql) oefenen? Download de Green Bridge CBT-app voor toegang tot proefexamenvragen en volledige oefentoetsen over dit onderwerp.

Download de app in de Google Playstore

Alles wat je nodig hebt om uit te blinken in JAMB, WAEC en NECO.

Green Bridge CBT Mobile App
Persoonlijke AI Leerchat Assistent
Meer dan 200.000 IGCSE-, JAMB-, WAEC- en NECO-examenvragen.
Meer dan 1200 lesnotities
Offline ondersteuning - Leer altijd en overal
Dienstregeling Groene Brug
Literatuursamenvattingen & Potentiële Vragen
Volg je prestaties en vooruitgang.
Diepgaande Uitleg voor Uitgebreid Leren