Project 1
1. Click on the following link to open the Online SQL Editor.
2. Click on File>Open DB and select the file “emptyDb.db” in ClassesICT
3. Create the table celebs just like in the example, with three columns:
idthat storesINTEGER;namethat storesTEXT;agethat storesINTEGER.
You need to erase the previous query before writing a new one
Once you are happy with your query, you should copy/paste it in the Word document Project 1 and erase it from the Online Editor.
If you just add some queries and run your code, it will execute the previous query again, which can be a problem when you want to only do something once (like creating a table or adding a record).
You can find the history of all your queries on sqliteonline by clicking on this bottom right button:

And then selecting History:

4. Add 4 celebrities to the celebs table:
Justin Bieberwho is23and has theidof1.Beyonce Knowleswho is34and has theidof2.Jeremy Linwho is27and has theidof3.Taylor Swiftwho is27and has theidof4.
Important
Each time you change something to your table, use the command:
SELECT * FROM celebs;
to check the result.
5. Use a SELECT to retrieve all the names from the celebs table.
6. Add a new column named twitter_handle to the table.
7. Update the table to include Taylor Swift’s twitter handle: @taylorswift13.
8. Delete all of the rows that have a NULL value in the twitter handle column.
9. Create a new table awards with constraints on the values:
idshould acceptINTEGERand is aPRIMARY KEY;recipientshould acceptTEXTand should beNOT NULL;award_nameshould acceptTEXTand should have a default value equal toGrammy.