Union Vs Union ALL

UNION and UNION ALL are both used to retrieve records from multiple tables. This article will detail the differences between the two, allowing you to make the best choice for each unique scenario. You can use SQLโ€™sย UNIONย andย UNION ALLย commands to get data from multiple tables in […]

SQL CTEs

What Is a CTE? CTE is defined as a Common Table Expression. You create a CTE using a WITH query, then reference it within a SELECT, INSERT, UPDATE, or DELETE statement. It goes by a few names: Common Table Expression Subquery Factoring SQL WITH Clause […]

Subquery Vs Join

One of the greatest challenges in writing queries is deciding which to use, whether to use joins or sub-queries. The truth is that they vary, there are situations that subquery is best to use and there are some situations that join is the best option. […]