In SQL, the DELETE query is used to delete a row from a table. In this tutorial we will show you how to use the delete command to remove one or more rows from a table. The key is to carefully test your query and make sure your WHERE clause targets exactly those desired rows. To do this, we will first write the DELETE query, comment it out using one of the two ways to write a comment in SQL, test the WHERE with a SELECT, then finally execute the DELETE.
Stay tuned! Bonus features for this video are under development...
In this Introduction to SQL Course, you will learn the essential queries needed to work with a relational database: How to create data (INSERT), change existing data (UPDATE), and find data (SELECT and JOINs). You will also learn how to choose a database, install PostgreSQL, speed up queries with indexes, and more.