Commit 756a13a1 authored by Sorrel Harriet's avatar Sorrel Harriet

update practice queries

parent be2f9148
SELECT (name, price) FROM Album;
/* Here are some example RUD operations!
They're not all that sensible...maybe you'll
figure out why as we progress through the labs! */
/* Select all columns from Album table */
SELECT * FROM Album;
/* Selct only name and year columns from Album table
and where price > £15 */
SELECT name, year FROM Album WHERE price > 15;
/* Update the price of albums called 'Soul Rebel' */
UPDATE Album SET price=21.99 WHERE name='Soul Rebel';
/* Delete artists with first_name Madonna (Yay!) */
DELETE FROM Artist WHERE first_name='Madonna';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment