Tag Archives: SQL Examples

Learn to Code SQL Example – SQL | Arithmetic Operators

(SQL Example for Citizen Data Scientist & Business Analyst)   SQL | Arithmetic Operators Arithmetic Operators are: + [Addition] – [Subtraction] / [Division] * [Multiplication] % [Modulus] Addition (+) : It is used to perform addition operation on the data items, items include either single column or multiple columns. Implementation: SELECT employee_id, employee_name, salary, salary + 100 AS …

Learn to Code SQL Example – SQL | ALL and ANY

(SQL Example for Citizen Data Scientist & Business Analyst) SQL | ALL and ANY ALL & ANY are logical operators in SQL. They return boolean value as a result. ALL ALL operator is used to select all tuples of SELECT STATEMENT. It is also used to compare a value to every value in another value set …

Learn to Code SQL Example – SQL | WITH clause

(SQL Example for Citizen Data Scientist & Business Analyst) SQL | WITH clause The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also called sub-query refactoring), which can be referenced in several places within …

SQL tutorials for Business Analyst – SQL | Date Functions

  SQL tutorials for Business Analyst – SQL | Date Functions   The following table has a list of all the important Date and Time related functions available through SQL. There are various other functions supported by your RDBMS. The given list is based on MySQL RDBMS. Sr.No. Function & Description 1 ADDDATE()Adds dates 2 …

SQL tutorials for Business Analyst – SQL | Wildcard Operators

  SQL tutorialsfor Business Analyst SQL| Wildcard Operators We have already discussed about the SQL LIKE operator, which is used to compare a value to similar values using the wildcard operators. SQL supports two wildcard operators in conjunction with the LIKE operator which are explained in detail in the following table. Sr.No. Wildcard & Description …

SQL tutorials for Business Analyst – SQL | Having Clause

(SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Having Clause.   SQL tutorials for Business Analyst – SQL | Having Clause   The HAVING Clause enables you to specify conditions that filter which group results appear in the results. The WHERE clause places …

SQL tutorials for Business Analyst – SQL | Using Views

(SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Using Views.   A view is nothing more than a SQL statement that is stored in the database with an associated name. A view is actually a composition of a table in the …

SQL tutorials for Business Analyst – SQL | TRUNCATE TABLE

(SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | TRUNCATE TABLE.   The SQL TRUNCATE TABLE command is used to delete complete data from an existing table. You can also use DROP TABLE command to delete complete table but it would remove complete table …