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

MySQL Notes

Relational SQL — queries, joins, constraints, views and prepared statements — written by CodingNow 2.0's mentors. Free to read, structured to actually help you learn.

MySQL notes by CodingNow 2.0 cover 64 topics — from mysql home to mysql prepared statements — 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, MySQL interviews and CodingNow 2.0's mentor-led MySQL course in Pitampura, Delhi.

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

MySQL SQL

43 of 43 topics published
4

MySQL SQL

SQL is the standard language for dealing with Relational Databases.

5

MySQL SELECT

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

6

MySQL SELECT DISTINCT

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

7

MySQL WHERE

The WHERE clause is used to filter records.

8

MySQL ORDER BY

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

9

MySQL AND

The WHERE clause can contain one or many AND operators.

10

MySQL OR

The WHERE clause can contain one or more OR operators.

11

MySQL 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

12

MySQL INSERT INTO

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

13

MySQL 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

14

MySQL UPDATE

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

15

MySQL DELETE

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

16

MySQL LIMIT

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

17

MySQL Aggregate Functions

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

18

MySQL MIN()

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

19

MySQL MAX()

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

20

MySQL COUNT()

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

21

MySQL SUM()

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

22

MySQL AVG()

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

23

MySQL LIKE

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

24

MySQL Wildcards

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

25

MySQL 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.

26

MySQL BETWEEN

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

27

MySQL Aliases

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

28

MySQL Joins

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

29

MySQL INNER JOIN

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

30

MySQL LEFT JOIN

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

31

MySQL RIGHT JOIN

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

32

MySQL CROSS JOIN

The CROSS JOIN clause returns the Cartesian product of two or more tables (combines every row from the first table with every row from the second table).

33

MySQL Self Join

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

34

MySQL UNION

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

35

MySQL UNION ALL

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

36

MySQL 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".

37

MySQL HAVING

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

38

MySQL EXISTS

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

39

MySQL ANY

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

40

MySQL ALL

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

41

MySQL INSERT SELECT

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

42

MySQL CASE

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

43

MySQL Null Functions

Operations involving NULL values can sometimes lead to unexpected results.

44

MySQL Stored Procedures

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

45

MySQL Comments

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

46

MySQL Operators

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

MySQL Database

18 of 18 topics published
47

MySQL Create DB

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

48

MySQL Drop DB

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

49

MySQL Create Table

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

50

MySQL Drop Table

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

51

MySQL Alter Table

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

52

MySQL Constraints

Constraints are rules for data in a table.

53

MySQL 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

54

MySQL Unique

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

55

MySQL Primary Key

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

56

MySQL Foreign Key

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

57

MySQL Check

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

58

MySQL Default

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

59

MySQL Create Index

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

60

MySQL 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.

61

MySQL 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

62

MySQL 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

63

MySQL Injection

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

64

MySQL Prepared Statements

Prepared statements is used to protect a web site from SQL injections.

Ready to go from notes to a real career?

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

Enroll Now — Free Demo Available

MySQL Notes – FAQs

What students search before reading MySQL notes.

Yes — all 64 MySQL 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 64 structured MySQL 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 MySQL 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 MySQL job interviews in India.
Working AI/ML engineers and full-stack developers from Coding Now Tech Institute Gurukul of AI, Pitampura Delhi, aligned with our 2026 course curriculum.
WhatsApp
Call NowEnroll Now