SQL for Beginners

Learn to Code SQL Example – SQL | DROP, TRUNCATE

(SQL Example for Citizen Data Scientist & Business Analyst)   SQL | DROP, TRUNCATE DROP DROP is used to delete a whole database or just a table.The DROP statement destroys the objects like an existing database, table, index, or view. A DROP statement in SQL removes a component from a relational database management system (RDBMS). Syntax: …

Learn to Code SQL Example – SQL | SELECT Query

(SQL Example for Citizen Data Scientist & Business Analyst)   SQL | SELECT Query Select is the most commonly used statement in SQL. The SELECT Statement in SQL is used to retrieve or fetch data from a database. We can fetch either the entire table or according to some specified rules. The data returned is …

Learn to Code SQL Example – SQL | UNIQUE Constraint

(SQL Example for Citizen Data Scientist & Business Analyst)   SQL | UNIQUE Constraint Unique constraint in SQL is used to check whether the sub query has duplicate tuples in it’s result. It returns a boolean value indicating the presence/absence of duplicate tuples. Unique construct returns true only if the sub query has no duplicate …

Learn to Code SQL Example – SQL | AND and OR operators

(SQL Example for Citizen Data Scientist & Business Analyst)   SQL | AND and OR operators In SQL, the AND & OR operators are used for filtering the data and getting precise result based on conditions. The AND and OR operators are used with the WHERE clause. These two operators are called conjunctive operators. AND Operator …

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 | Transactions

(SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Transactions.   SQL tutorials for Business Analyst – SQL | Transactions   A transaction is a unit of work that is performed against a database. Transactions are units or sequences of work accomplished …

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 …