🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
All Subjects
Free · 67 Topics · No Signup

SQL Notes

Query, join, and manage relational data — written by CodingNow 2.0's mentors. Free to read, structured to actually help you learn.

SQL notes by CodingNow 2.0 cover 67 topics — from sql home to sql hosting — each explained with short definitions, syntax and runnable code examples. They are 100% free, need no signup, and work as quick revision for college exams, SQL interviews and CodingNow 2.0's mentor-led SQL course in Pitampura, Delhi.

No notes found. Try a different search term, or browse all SQL notes.

SQL Tutorial

46 of 46 topics published
1

SQL HOME

SQL is a standard language for storing, manipulating and retrieving data in databases.

2

SQL Intro

SQL is a standard language for accessing and manipulating databases.

3

SQL Syntax

Most of the actions you need to perform on a database are done with SQL statements.

4

SQL Select

The SELECT statement is used to select data from a database.

5

SQL Select Distinct

The SELECT DISTINCT statement is used to return only distinct (unique) values.

6

SQL Where

The WHERE clause is used to filter records.

7

SQL Order By

The ORDER BY keyword is used to sort the result-set in ascending or descending order.

8

SQL And

The WHERE clause can contain one or many AND operators.

9

SQL Or

The WHERE clause can contain one or more OR operators.

10

SQL Not

The NOT operator is used in the WHERE clause to return all records that DO NOT match the specified criteria. It reverses the result of a condition from true

11

SQL Insert Into

The INSERT INTO statement is used to insert new records in a table.

12

SQL Null Values

If a field in a table is optional, it is possible to insert or update a record without adding any value to this field. This way, the field will be saved with a

13

SQL Update

The UPDATE statement is used to update or modify one or more records in a table.

14

SQL Delete

The DELETE statement is used to delete existing records in a table.

15

SQL Select Top

The SELECT TOP clause is used to limit the number of records to return.

16

SQL Aggregate Functions

An aggregate function is a function that performs a calculation on a set of values, and returns a single value.

17

SQL Min()

The MIN() function returns the smallest value of the selected column.

18

SQL Max()

The MAX() function returns the largest value of the selected column.

19

SQL Count()

The COUNT() function returns the number of rows that matches a specified criterion.

20

SQL Sum()

The SUM() function is used to calculate the total sum of values within a numeric column.

21

SQL Avg()

The AVG() function returns the average value of a numeric column.

22

SQL Like

The LIKE operator is used in a WHERE clause to search for a specified pattern within a column's text data.

23

SQL Wildcards

A wildcard character is used to substitute one or more characters in a string.

24

SQL In

The IN operator is used in the WHERE clause to check if a specified column's value matches any value within a provided list.

25

SQL Between

The BETWEEN operator is used in the WHERE clause to select values within a specified range.

26

SQL Aliases

An alias is created with the AS keyword, and is often used to make a column name more readable.

27

SQL Joins

The JOIN clause is used to combine rows from two or more tables, based on a related column between them.

28

SQL Inner Join

The INNER JOIN returns only rows that have matching values in both tables.

29

SQL Left Join

The LEFT JOIN returns all rows from the left table (table1), and only the matched rows from the right table (table2).

30

SQL Right Join

The RIGHT JOIN returns all rows from the right table (table2), and only the matched rows from the left table (table1).

31

SQL Full Join

The FULL JOIN returns all rows when there is a match in either the left or right table.

32

SQL Self Join

A self join is a regular join, but the table is joined with itself.

33

SQL Union

The UNION operator is used to combine the result-set of two or more SELECT statements.

34

SQL Union All

The UNION ALL operator is used to combine the result-set of two or more SELECT statements.

35

SQL Group By

The GROUP BY statement is used to group rows that have the same values into summary rows, like "Find the number of customers in each country".

36

SQL Having

The HAVING clause is used to filter the results of a GROUP BY query based on aggregate functions.

37

SQL Exists

The EXISTS operator is used in a WHERE clause to check whether a subquery returns any rows.

38

SQL Any

The ANY operator is used to compare a value to every value returned by a subquery.

39

SQL All

The ALL operator is used to compare a value to every value returned by a subquery.

40

SQL Select Into

The SELECT INTO statement is used to create a new table and fill it with data from an existing table.

41

SQL Insert Into Select

The INSERT INTO SELECT statement is used to copy data from an existing table and insert it into another existing table.

42

SQL Case

The CASE expression is used to define different results based on specified conditions in an SQL statement.

43

SQL Null Functions

SQL COALESCE(), IFNULL(), ISNULL(), and NVL() Functions

44

SQL Stored Procedures

A stored procedure is a precompiled SQL code that can be saved and reused.

45

SQL Comments

Comments are used to explain SQL code, or to temporarily prevent execution of SQL code (for debugging).

46

SQL Operators

SQL operators are keywords and symbols used to perform operations with data values.

SQL Database

21 of 21 topics published
47

SQL Create DB

The CREATE DATABASE statement is used to create a new SQL database.

48

SQL Drop DB

The DROP DATABASE statement is used to permanently delete an existing SQL database.

49

SQL Backup DB

The BACKUP DATABASE statement is used in SQL Server to create a full backup of an existing SQL database.

50

SQL Create Table

The CREATE TABLE statement is used to create a new table in a database.

51

SQL Drop Table

The DROP TABLE statement is used to permanently delete an existing table in a database.

52

SQL Alter Table

The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.

53

SQL Constraints

SQL constraints are rules for data in a table.

54

SQL Not Null

The NOT NULL constraint enforces a column to NOT accept NULL values. This enforces a field to always contain a value, which means that you cannot insert a new

55

SQL Unique

The UNIQUE constraint ensures that all values in a column are unique.

56

SQL Primary Key

The PRIMARY KEY constraint uniquely identifies each record in a database table.

57

SQL Foreign Key

The FOREIGN KEY constraint establishes a link between two tables, and prevents action that will destroy the link between them.

58

SQL Check

The CHECK constraint is used to ensure that the values in a column satisfies a specific condition.

59

SQL Default

The DEFAULT constraint is used to automatically insert a default value for a column, if no value is specified.

60

SQL Create Index

The CREATE INDEX statement is used to create indexes on tables in databases, to speed up data retrieval.

61

SQL Auto Increment

An auto-increment field is a numeric column that automatically generates a unique number, when a new record is inserted into a table.

62

SQL Dates

The most difficult part when working with dates in databases, is to be sure that the format of the date you are trying to insert/select, matches the format of t

63

SQL Views

An SQL view is a virtual table based on the result-set of an SQL statement. An SQL view contains rows and columns, just like a real table. The fields in the vie

64

SQL Injection

SQL injection is a code injection technique that can destroy your database. SQL injections are a common web hacking technique.

65

SQL Parameters

SQL parameters (Parameterized Queries) can be used to protect a web site from SQL injections.

66

SQL Prepared Statements

SQL Prepared Statements - Prevent SQL Injection

67

SQL Hosting

If you want your web site to store and retrieve data from a database, your web server must have access to a database-system.

Ready to go from notes to a real career?

Join CodingNow 2.0's SQL course — live mentorship, hands-on projects, and 100% placement support in Delhi NCR.

Enroll Now — Free Demo Available

SQL Notes – FAQs

What students search before reading SQL notes.

Yes — all 67 SQL topics on CodingNow 2.0 are completely free with no signup or paywall. Read them in the browser on mobile or desktop.
This hub covers 67 structured SQL topics — from absolute basics to advanced, interview-ready concepts — each with short explanations and working code examples.
The notes are written to be self-study friendly, but for job-ready skills, projects and placement support, CodingNow 2.0's mentor-led SQL course in Delhi (online + classroom) is the fastest path.
Yes. Each topic is concise and example-driven — ideal for last-minute revision before college exams, campus placements and SQL job interviews in India.
Working AI/ML engineers and full-stack developers from CodingNow 2.0 – Gurukul of AI, Pitampura Delhi, aligned with our 2026 course curriculum.
WhatsApp
Call NowEnroll Now