Queries with constraints
EXAMPLE:
- Find the movie with a row
id
of 6
SELECT id, title FROM movies
WHERE id = 6;
The table will look like:
year
between 2000 and 2010
SELECT title, year FROM movies
WHERE year BETWEEN 2000 AND 2010;
The table will look like:
year
s between 2000 and 2010
SELECT title, year FROM movies
WHERE year < 2000 OR year > 2010;
year
No comments:
Post a Comment