SQL Tutorials for Citizen Data Scientists

Beginners Guide to SQL – SQL LIKE Operator

(SQL Tutorials for Citizen Data Scientist) SQL LIKE Operator In this tutorial you will learn how to retrieve the data based on a partial match. Pattern Matching So far, you’ve seen the conditions that identify an exact string, e.g. WHERE name=’Lois Lane’. But in SQL you can perform partial or pattern matching too using the LIKE operator. The LIKE operator provides a …

Beginners Guide to SQL – SQL UNION Operation

(SQL Tutorials for Citizen Data Scientist) SQL UNION Operation In this tutorial you will learn how to combine the results of two or more SQL queries. The UNION Operator The UNION operator is used to combine the results of two or more SELECT queries into a single result set. The union operation is different from using joins that combine columns from …

Beginners Guide to SQL – SQL CROSS JOIN Operation

(SQL Tutorials for Citizen Data Scientist) SQL CROSS JOIN Operation In this tutorial you will learn how to fetch data from two tables using SQL cross join. Using Cross Joins If you don’t specify a join condition when joining two tables, database system combines each row from the first table with each row from the second table. …

Beginners Guide to SQL – SQL INNER JOIN Operation

(SQL Tutorials for Citizen Data Scientist) SQL INNER JOIN Operation In this tutorial you will learn how to fetch data from two tables using SQL inner join. Using Inner Joins The INNER JOIN is the most common type of join. It returns only those rows that have a match in both joined tables. The following Venn diagram illustrates how inner …

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 …