DELETE Statement in SQL

SQL DELETE

The SQL DELETE command is used to remove the records from the relational database tables permanently. For example: DELETE FROM table_name;

SQL OR Operator

An infographic journey through the logical power of the OR operator. Explore inclusive data retrieval, dynamic filtering, and flexible query conditions.

The “OR” is a logical operator in SQL that is used to combine two or more conditions in the WHERE clause. The WHERE clause with OR operator can be used with SELECT, UPDATE, INSERT and DELETE statements.

SQL IN operator

SQL IN operator

The IN operator enables you providing a list of values to be tested in the WHERE clause (generally) with SELECT, DELETE, or UPDTAE statements.

SQL WHERE Clause

A visual guide to mastering the WHERE clause with logical and comparison operators for precise data filtering. See examples of Comparison, Logical, operators along with IN and BETWEEN operators.

What is SQL WHERE clause? The simple SELECT statement returns all records from the table(s) in an SQL database. For example: SELECT * FROM tbl_name; In order to return only filtered records or rows that fulfill certain criteria, the SQL WHERE clause is used in the SELECT statement. For example: SELECT * FROM tbl_name Where … Read more

SQL DATEDIFF Function

SQL DATEDIFF Year

In MS SQL Server, the DATEDIFF function is used to get the difference between two dates in terms of years, months, days, hours, minutes. e.g. SELECT DATEDIFF(day, ‘2018-03-13’, GETDATE()) AS “Difference in days”;

ISNULL Function in SQL

SQL ISNULL string

The SQL ISNULL function enables you replacing the NULL values with the specified value as retrieving data from the SQL Server database.

SQL INNER JOIN

SQL INNER JOIN

The INNER join returns the records of matched values in both tables that are joined.
On the contrary, the OUTER JOIN returns all records from both tables.

What is EXISTS operator?

SQL EXISTS IN

The SQL EXISTS is an operator that is used with the WHERE clause that tests the existence of rows by using a subquery.
If that subquery in the EXISTS contains any row, it returns TRUE.

SQL HAVING Clause

SQL HAVING GROUP BY

The SQL HAVING clause is generally used with the GROUP BY clause for specifying a condition for a group or aggregate.