Day: December 12, 2020

Beginners Guide to SQL – SQL DROP Statement

(SQL Tutorials for Citizen Data Scientist) SQL DROP Statement In this tutorial you will learn how to delete database and table using SQL. Removing a Table from Database You can use the DROP TABLE statement to easily delete the database tables that you no longer need. The DROP TABLE statement permanently erase all data from the table, as well as the …

Beginners Guide to SQL – SQL TRUNCATE TABLE Statement

(SQL Tutorials for Citizen Data Scientist) SQL TRUNCATE TABLE Statement In this tutorial you will learn how to quickly delete all rows from a table using SQL. Removing Table Data The TRUNCATE TABLE statement removes all the rows from a table more quickly than a DELETE. Logically, TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause. The TRUNCATE TABLE statement removes all the rows from …

Beginners Guide to SQL – SQL DELETE Statement

(SQL Tutorials for Citizen Data Scientist) SQL DELETE Statement In this tutorial you will learn how to delete records from a database table using SQL. Deleting Data from Tables Just as you insert records into a table with the INSERT statement, you can delete records from a table as well with the DELETE statement. Syntax The DELETE statement is used to remove one …

Beginners Guide to SQL – SQL UPDATE Statement

(SQL Tutorials for Citizen Data Scientist) SQL UPDATE Statement In this tutorial you will learn how to update records in a database table using SQL. Updating Table Data In the previous chapters we’ve learnt how to insert data as well as how to select data from a database table based on various conditions. In this tutorial we’ll learn to perform one …

Beginners Guide to SQL – SQL DISTINCT Clause

(SQL Tutorials for Citizen Data Scientist) SQL DISTINCT Clause In this tutorial you will learn how to remove duplicate values from a result set. Retrieving Distinct Values When fetching data from a database table, the result set may contain duplicate rows or values. If you want to remove these duplicate values you can specify the keyword DISTINCT directly after …

Beginners Guide to SQL – SQL IN & BETWEEN Operators

(SQL Tutorials for Citizen Data Scientist) SQL IN & BETWEEN Operators In this tutorial you will learn how to use IN and BETWEEN operators with WHERE clause. Working with Range and Membership Conditions In the previous chapter we’ve learned how to combine multiple conditions using the AND and OR operators. However, sometimes this is not sufficient and very productive, for example, if you have to check the values that …