SlideShare a Scribd company logo
1 of 7
Hoofdstuk 7 : Structured
Query language
1. Inleiding (1)
Wat is SQL?


Taal waarmee databanken communiceren



Standaard : ANSI SQL-92



Soms afwijkingen



Twee grote onderdelen
 DML
 DDL
1. Inleiding (2)
Hoe werkt SQL?
Bestaat uit statements


Sleutelwoorden  soort commando’s : hoofdletters



Niet-sleutelwoorden : kleine letters
 Tabelnamen
 Veldnamen
 Criteria



Operatoren : Hoofdletters



Per sleutelwoord = clause
1. Inleiding (3)
Enkele basisregels :


Case insensitive



Meerdere statements binnen één commando worden
gescheiden door een blanco lijn



Spaties worden genegeerd
2. SQL-queries in Access
Zie les
3. Enkele DML statements
De volgende statements zullen we behandelen :






SELECT
ORDER
ASC en DESC
WHERE
Operatoren :





Algemene SQL operatoren
WHERE operatoren

Zoeken naar lege velden
4. Enkele DDL statements
De volgende DDL - statements zullen we
behandelen :




CREATE TABLE
DROP TABLE
ALTER TABLE

More Related Content

More from CVO_De_Nobel (20)

Li3
Li3Li3
Li3
 
Li1
Li1Li1
Li1
 
Inleiding
InleidingInleiding
Inleiding
 
Overzicht evaluatie bibliotheeksoftware
Overzicht evaluatie bibliotheeksoftwareOverzicht evaluatie bibliotheeksoftware
Overzicht evaluatie bibliotheeksoftware
 
Pres idbb hoofdstuk5
Pres idbb hoofdstuk5Pres idbb hoofdstuk5
Pres idbb hoofdstuk5
 
Pres idbb hoofdstuk4
Pres idbb hoofdstuk4Pres idbb hoofdstuk4
Pres idbb hoofdstuk4
 
Pres idbb hoofdstuk3
Pres idbb hoofdstuk3Pres idbb hoofdstuk3
Pres idbb hoofdstuk3
 
Pres idbb hoofdstuk3
Pres idbb hoofdstuk3Pres idbb hoofdstuk3
Pres idbb hoofdstuk3
 
Pres idbb hoofdstuk1
Pres idbb hoofdstuk1Pres idbb hoofdstuk1
Pres idbb hoofdstuk1
 
Pres idbb inleiding
Pres idbb inleidingPres idbb inleiding
Pres idbb inleiding
 
Pres baa hoofdstuk 6
Pres baa hoofdstuk 6Pres baa hoofdstuk 6
Pres baa hoofdstuk 6
 
Pres baa hoofdstuk 4.pptx
Pres baa hoofdstuk 4.pptxPres baa hoofdstuk 4.pptx
Pres baa hoofdstuk 4.pptx
 
Pres baa hoofdstuk 2
Pres baa hoofdstuk 2Pres baa hoofdstuk 2
Pres baa hoofdstuk 2
 
Pres baa hoofdstuk 3
Pres baa hoofdstuk 3Pres baa hoofdstuk 3
Pres baa hoofdstuk 3
 
Pres baa hoofdstuk 1
Pres baa hoofdstuk 1Pres baa hoofdstuk 1
Pres baa hoofdstuk 1
 
Pres baa inleiding
Pres baa inleidingPres baa inleiding
Pres baa inleiding
 
Pres bab hoofdstuk4
Pres bab hoofdstuk4Pres bab hoofdstuk4
Pres bab hoofdstuk4
 
Pres bab hoofdstuk3
Pres bab hoofdstuk3Pres bab hoofdstuk3
Pres bab hoofdstuk3
 
Pres bab hoofdstuk2
Pres bab hoofdstuk2Pres bab hoofdstuk2
Pres bab hoofdstuk2
 
Pres bab inleiding
Pres bab inleidingPres bab inleiding
Pres bab inleiding
 

Pres b3 hoofdstuk7

  • 1. Hoofdstuk 7 : Structured Query language
  • 2. 1. Inleiding (1) Wat is SQL?  Taal waarmee databanken communiceren  Standaard : ANSI SQL-92  Soms afwijkingen  Twee grote onderdelen  DML  DDL
  • 3. 1. Inleiding (2) Hoe werkt SQL? Bestaat uit statements  Sleutelwoorden  soort commando’s : hoofdletters  Niet-sleutelwoorden : kleine letters  Tabelnamen  Veldnamen  Criteria  Operatoren : Hoofdletters  Per sleutelwoord = clause
  • 4. 1. Inleiding (3) Enkele basisregels :  Case insensitive  Meerdere statements binnen één commando worden gescheiden door een blanco lijn  Spaties worden genegeerd
  • 5. 2. SQL-queries in Access Zie les
  • 6. 3. Enkele DML statements De volgende statements zullen we behandelen :      SELECT ORDER ASC en DESC WHERE Operatoren :    Algemene SQL operatoren WHERE operatoren Zoeken naar lege velden
  • 7. 4. Enkele DDL statements De volgende DDL - statements zullen we behandelen :    CREATE TABLE DROP TABLE ALTER TABLE