Category Archives: SQL Basics

SQL ORDER BY – Sorting Data in SQL Table in Descending or Ascending Order

ORDER BY clause in SQL enables us to sort results of the query by specific field (column) or more columns. There are 2 sorting options: Ascending order (ASC) – sorts records from lowest to highest in case of numbers and from A to Z in case of text strings Descending order (DESC) – sorts records… Read More »

SQL LEFT OUTER JOIN – Joining tables in SQL With Explanation in Excel

When you work with SQL database you usually need more than 1 table. Some values are in one table and the others are in a different one = division of the information into many tables which are connected between each other (via keys) is the principle of relational database. There are 5 basic kinds of… Read More »

SQL RIGHT OUTER JOIN – Joining Tables in SQL With Explanation in Excel + Example

When you work with SQL database you usually need more than 1 table. Some values are in one table and the others are in a different one = division of the information into many tables which are connected between each other (via keys) is the principle of relational database. There are 5 basic kinds of… Read More »

SQL INNER JOIN – Joining Tables in SQL With Explanation in Excel + Examples

When you work with SQL database you usually need more than 1 table. Some values are in one table and the others are in a different one = distribution of data into many tables which are connected between each other (via keys) is the principle of relational database. There are 5 basic kinds of joins:… Read More »