Creams productions
ProjectsNotities
  • main
    • Creams Productions
  • Notities
    • Notities
      • software ontwikeling Avans
        • Database(WIP)
          • Drop & Create table stament
          • Alter
          • INSERT INTO/ UPDATE / DELETE
          • Subquerys
          • DataTypes(WIP)
      • Scheikunde
        • Scheikunde(Havo 4) h1 & h2
        • Scheikunde(Havo 4) H3
        • Scheikunde Havo 5 h7
        • scheikunde havo 5 h8
        • scheikunde Havo 5 h9
        • scheikunde Havo 5 h10
        • scheikunde Havo 5 h11
      • Wiskunde
        • 10. Functies bewerken
        • 9. Afstand en hoeken
        • 8. Logaritmische functies
        • 7. Goniometrie
      • Informatica
        • D1 toets Arduino (mail opdracht)
          • voorbeeld 1
          • voorbeeld 2
          • voorbeeld 3
        • co-teach c2 (SQL)
      • Nederlands
        • formuleren h7
      • Natuurkunde
        • H7 natuurkunde golven
        • H5 Radioactief verval
        • sport en verkeer
      • Bedrijfs economie examen formules havo
  • Projects
    • Creams Console Utilities package documentation
      • Version 2
        • valueBar
        • Consoleout
        • writingstyle (text styling)
        • conBox(console boxes)
          • conboxFunc (functions to use with conbox)
          • Page 1
      • release 1(never finsished)
        • Selection menu
        • multiSelection menu
    • Projects
      • Project: Focus
      • chess ai 3.0
Powered by GitBook
On this page
  • standaard functies
  • STRFTIME()
  • DATE()
  • TIME()
  • MIN(kolomnaam)
  • MAX(kolomnaam)
  • SUM(kolomnaam)
  • AVG(kolomnaam)
  • COUNT(*)
  • DISTINCT(kolomnaam)
  • UPPER(Kolomnaam)
  • LOWER(kolomnaam)
  • SUBSTR(kolomnaam, startwaarde, lengte)
  • LENGTH(kolomnaam)
  • CAST(... AS Interger)
  1. Notities
  2. Notities
  3. Informatica

co-teach c2 (SQL)

alle SQL functies nodig voor examen SQL

standaard functies

Functies

STRFTIME('%x', klomnaam)

DATE()

TIME()

MIN(kolomnaam)

MAX(kolomnaam)

SUM(kolomnaam)

AVG(kolomnaam)

COUNT(*)

DISTINCT(kolomnaam)

UPPER(kolomnaam)

LOWER(kolomnaam)

SUBSTR(kolomnaam, startwaarde, lengte)

LENGTH(kolomnaam)

CAST(... AS Integer)

STRFTIME()

STRFTIME('%x', klomnaam) //verandert de datum syntax naar dagen, maanden, seconden, ect

in Het voorbeeld van deze functie woord '%x' gebruikt als placeholde

%x vervangers
functie

%d

de dag(01-31)

%m

De maand(01-12)

%Y

Het jaar

%S

Aantal seconde(0-60)

%M

Het aantal minuten(0-60)

%H

op vragen van het aantal uur

DATE()

DATE() // Gets current date. The parentheses stay empty

TIME()

TIME() //Gets current time. The parentheses stay empty

MIN(kolomnaam)

MIN(kolomnaam) //gets the minimum amount of a group ints in a table

MAX(kolomnaam)

MAX(kolomnaam) // gets the maximum of a group of integers in a table

SUM(kolomnaam)

SUM(kolomnaam) //gets the sum of all the integers in a table

AVG(kolomnaam)

AVG(kolomnaam) // gets a average of all the integers in a table

COUNT(*)

COUNT(*) //returns an integer value of the total amount of rows in a table

DISTINCT(kolomnaam)

DISTINCT(kolomnaam) //only returns unique value's 

UPPER(Kolomnaam)

UPPER(kolomnaam) // make all chars in a table of strings uppercase

LOWER(kolomnaam)

LOWER(kolomnaam) // does the opposite of upper so it makes everything 
                 // lower case

SUBSTR(kolomnaam, startwaarde, lengte)

SELECT SUBSTR(naam, 1,3)
FROM bezorger

// this returns from every bezorger the first three letters of there name

LENGTH(kolomnaam)

LENGTH(kolomnaam) // returns a integer of the length of a string

CAST(... AS Interger)

CAST(... AS Interger)// turns number stored as string into a integer type

Last updated 8 months ago