Sektion 2. Kapitel 1
single
Word filtering
Stryg for at vise menuen
Imagine that we want to extract all the hybrid cars from our database. As you understand, doing it manually is a worthless job and has to be automated.
Surely it has already been implemented! To filter observations based on columns with text use WHERE statement. For example,
123SELECT * FROM audi_cars WHERE fueltype = 'Hybrid'
This query will return all the Hybrid cars.
Please note, that in that case, you have to use single quotes, not double!
Opgave
Swipe to start coding
From audi_cars table extract only cars with Automatic transmission. Extract all the columns.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 1
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat