Homework
Part 1
Read and answer Lessons 1 and 2 on SQL Bolt.
Part 2
On your local computer:
Create a new database
car_yards
.Create a table of
cars
with the columns:id
,brand
,number_of_seats
,max_speed
using appropriate data types.Insert 5 cars into the table using
INSERT INTO
.Update the first car's
brand
to'ferrari'
(remember strings/text are single quotes in PostgreSQL).Delete the 3rd record from the table.
Select all cars that have a
max_speed
greater than 130.
Last updated
Was this helpful?