MYSQL

MySQL is an open-source relational database management system (RDBMS) that uses structured query language (SQL) for accessing and managing data. Developed by MySQL AB and now owned by Oracle Corporation, MySQL is widely used for web applications and is a central component of the LAMP stack (Linux, Apache, MySQL, PHP/Perl/Python). Known for its reliability, robustness, and ease of use, MySQL supports various storage engines and offers features like transactions, replication, and clustering, making it suitable for both small and large-scale applications.

MySQL Tutorial

1
MySQL Intro
10 minutes

A MySQL intro is an overview that introduces the basic concepts, features, and functionalities of the MySQL database management system.

2
MySQL RDBMS
10 minutes

MySQL RDBMS is an open-source relational database management system that uses SQL for managing and accessing data efficiently.

MySQL SQL

1
MySQL SQL
10 minutes

MySQL SQL refers to the structured query language used to manage and manipulate data within MySQL databases.

2
MySQL SELECT
10 minutes

MySQL SELECT retrieves data from a database based on specified criteria, allowing for flexible querying of information.

3
MySQL WHERE
10 minutes

MySQL WHERE specifies conditions that filter rows retrieved from a database, allowing for precise data selection based on specified criteria.

4
MySQL AND, OR , NOT
10 minutes

The AND and OR operators are used to filter records based on more than one condition

5
MySQL ORDER BY
10 minutes

MySQL ORDER BY is a clause used to sort the result-set of a query in ascending or descending order based on specified columns or expressions.

6
MySQL INSERT INTO
10 minutes

MySQL INSERT INTO is a command used to add new records or rows into a specified table in a database.

7
MySQL NULL Values
10 minutes

MySQL NULL Values represent missing or undefined data in a database, indicating that a particular field does not contain any value.

8
MySQL UPDATE
10 minutes

MySQL UPDATE is a command used to modify existing records in a table by changing values in specified columns based on specified conditions in the WHERE clause.

9
MySQL DELETE
10 minutes

MySQL DELETE is a command used to remove existing records from a table based on specified conditions in the WHERE clause.

10
MySQL LIMIT
10 minutes

MySQL LIMIT is a clause used to restrict the number of rows returned by a query, allowing you to specify the maximum number of records to retrieve.

11
MySQL MIN and MAX
10 minutes

MySQL MIN and MAX functions are used to find the smallest and largest values in a specified column, respectively.

12
MySQL COUNT, AVG , SUM
10 minutes

MySQL COUNT(): Counts the number of rows that meet specific criteria.

MySQL AVG(): Computes the mean value of a specified column.

MySQL SUM(): Totals all the values in a specified column.

13
MySQL LIKE
10 minutes

MySQL's LIKE operator is used to search for a specified pattern in a column.

14
MySQL Wildcards
10 minutes

MySQL wildcards are symbols used in SQL queries with LIKE or NOT LIKE operators to match patterns within strings. They include % to match any sequence of characters (including zero), and _ to match any single character.

15
MySQL IN
10 minutes

IN in MySQL is an operator used in a WHERE clause to specify multiple values for a column, allowing the selection of rows where the column value matches any of the specified values.

16
MySQL BETWEEN
10 minutes

BETWEEN in MySQL is an operator used in a WHERE clause to filter data within a specified range of values, inclusive of both endpoints.

17
MySQL Aliases
10 minutes

MySQL aliases are temporary names assigned to database tables or columns, allowing them to be referenced with shorter or more meaningful names in SQL queries.

18
MySQL Joins
10 minutes

MySQL joins are SQL operations used to combine rows from two or more tables based on related columns, enabling queries to retrieve data from multiple tables simultaneously.

19
MySQL INNER JOIN
10 minutes

MySQL INNER JOIN retrieves records with matching values in both tables based on a related column.

20
MySQL LEFT JOIN
10 minutes

MySQL LEFT JOIN retrieves all records from the left table and matching records from the right table, if any, based on a related column.

21
MySQL RIGHT JOIN
10 minutes

MySQL RIGHT JOIN retrieves all records from the right table and the matched records from the left table, if any, based on a related column.

22
MySQL CROSS JOIN
10 minutes

MySQL CROSS JOIN returns the Cartesian product of two tables, combining each row from the first table with every row from the second table.

23
MySQL Self Join
10 minutes

MySQL Self Join is a join in which a table is joined with itself to combine rows that satisfy a given condition.

24
MySQL UNION
10 minutes

MySQL UNION combines the results of two or more SELECT statements into a single result set, eliminating duplicates by default.

25
MySQL GROUP BY
10 minutes

MySQL GROUP BY is a clause used to aggregate identical data into groups based on one or more columns, often used with aggregate functions like SUM or COUNT.

26
MySQL HAVING
10 minutes

MySQL HAVING is a clause used to filter group rows that meet specified conditions when GROUP BY is used.

27
MySQL EXISTS
10 minutes

MySQL EXISTS is a condition used to test whether a subquery returns any rows. If the subquery returns at least one row, the EXISTS condition evaluates to true; otherwise, it evaluates to false.

28
MySQL ANY, ALL
10 minutes

MySQL ANY and ALL are used with subqueries and compare a value to a set of values.

29
MySQL INSERT SELECT
10 minutes

The INSERT INTO SELECT statement in MySQL inserts data into a table by selecting data from another table.

30
MySQL CASE
10 minutes

The CASE statement in MySQL is used for conditional logic to return different values based on specified conditions.

31
MySQL NULL Functions
10 minutes

MySQL NULL functions are used to handle NULL values in queries and include functions like ISNULL, IFNULL, and COALESCE to manage and manipulate NULL values effectively.

32
MySQL Comments
10 minutes

MySQL comments are used to annotate SQL code for documentation purposes and can be single-line (using --) or multi-line (enclosed between /* */).

33
MySQL Operators
10 minutes

MySQL operators are symbols or keywords used to perform operations on values or expressions, such as arithmetic operations (+, -, *, /), comparison operations (>, <, =), logical operations (AND, OR, NOT), and more.

My SQL Database

1
MySQL CREATE DB
10 minutes

MySQL CREATE statement is used to create new databases, tables, indexes, views, or other database objects."

2
MySQL DROP DB
10 minutes

MySQL DROP is used to delete databases, tables, indexes, views, or other database objects.

3
MySQL CREATE TABLE
10 minutes

MySQL CREATE TABLE is used to create a new table in a database, specifying its structure with columns, data types, and optional constraints.

4
MySQL DROP TABLE
10 minutes

MySQL DROP TABLE is used to delete an existing table from a database.

5
MySQL ALTER TABLE
10 minutes

MySQL ALTER TABLE is used to modify an existing table structure, such as adding or removing columns, modifying column data types, or adding constraints.

6
MySQL Constraints
10 minutes

SQL constraints define rules that dictate the data within a table.

7
MySQL NOT NULL
10 minutes

MySQL NOT NULL ensures that a column cannot contain NULL values.

8
MySQL UNIQUE
10 minutes

MySQL UNIQUE ensures that all values in a column are distinct

9
MySQL PRIMARY KEY
10 minutes

MySQL PRIMARY KEY uniquely identifies each record in a table and ensures that the key does not contain NULL values.

10
MySQL FOREIGN KEY
10 minutes

MySQL FOREIGN KEY establishes a relationship between tables, enforcing referential integrity and preventing actions that would break links between related tables.

11
MySQL CHECK
10 minutes

MySQL CHECK ensures that values inserted into a column satisfy a specified condition.

12
MySQL DEFAULT
10 minutes

MySQL DEFAULT sets a default value for a column when no explicit value is specified during an INSERT operation.

13
MySQL CREATE INDEX
10 minutes

MySQL CREATE INDEX is used to create an index on a table, which enables fast retrieval of rows based on the indexed columns.

14
MySQL AUTO INCREMENT
10 minutes

MySQL AUTO INCREMENT automatically generates unique values for a column when new rows are inserted into a table.

15
MySQL Dates
10 minutes

MySQL Dates are used to store date and time values in databases, supporting various formats and functions for manipulation and comparison.

16
MySQL Views
10 minutes

MySQL Views are virtual tables generated by a query, allowing users to access and manipulate data as if it were a regular table.

MySQL References

1
MySQL Data Types
10 minutes

MySQL data types define the type of data that can be stored in a column of a MySQL database table.

2
MySQL Functions
10 minutes

MySQL functions are reusable sets of SQL statements that perform specific operations and return a single value.

3
ASCII
10 minutes

ASCII (American Standard Code for Information Interchange) is a character encoding standard that represents text in computers and communication equipment, assigning numeric codes to each character, including letters, numbers, punctuation marks, and control characters.

4
CHAR_LENGTH
10 minutes

CHAR_LENGTH is a function that returns the number of characters in a string, excluding any trailing spaces.

5
CHARACTER_LENGTH
10 minutes

CHARACTER_LENGTH is a function that calculates the number of characters in a string.

6
CONCAT
10 minutes

CONCAT is a function used in SQL to combine two or more strings into a single string.

7
CONCAT_WS
10 minutes

CONCAT_WS is a function used in SQL to combine multiple strings with a specified separator.

8
FIELD
10 minutes

FIELD is a function in SQL that returns the position of a string within a set of strings, or 0 if the string is not found.

9
FIND_IN_SET
10 minutes

FIND_IN_SET is a function in SQL that returns the position of a string within a comma-separated list of strings, or 0 if the string is not found.

10
FORMAT
10 minutes

FORMAT is a function in SQL used to format numbers with commas and a specified number of decimal places.

11
INSERT
10 minutes

INSERT is a SQL command used to add new rows of data into a database table.

12
INSTR
10 minutes

INSTR is a function used in programming languages like Visual Basic and VBA to search for the occurrence of one string within another, returning the position of the first occurrence or zero if not found.

13
LCASE
10 minutes

LCASE is a function used in programming languages like Visual Basic and VBA to convert a string to lowercase letters.

14
LEFT
10 minutes

LEFT is a function in programming languages like Excel and SQL used to extract a specified number of characters from the left side of a string.

15
LENGTH
10 minutes

LENGTH is a function used in programming languages such as SQL and JavaScript to determine the number of characters in a string or the number of elements in an array.

16
LOCATE
10 minutes

LOCATE is a function used in SQL to find the position of a substring within a string and returns the position of its first occurrence.

17
LOWER
10 minutes

LOWER is a function in SQL used to convert all characters in a string to lowercase.

18
LPAD
10 minutes

LPAD is a function used in SQL to pad a string with specified characters on the left side until it reaches a desired length.

19
LTRIM
10 minutes

LTRIM is a function in SQL used to remove leading spaces (spaces at the beginning) from a string.

20
MID
10 minutes

MID is a function used in some programming languages to extract a substring from a string, starting at a specified position and extending for a certain number of characters.

21
POSITION
10 minutes

POSITION is a function used in SQL to find the position of a substring within a string and returns the position of its first occurrence.

22
REPEAT
10 minutes

REPEAT is a function used in SQL to replicate a string a specified number of times.

23
REPLACE
10 minutes

REPLACE is a function used in SQL to replace all occurrences of a specified substring within a string with another substring.

24
REVERSE
10 minutes

REVERSE is a function used in SQL to reverse the characters in a string.

25
RIGHT
10 minutes

RIGHT is a function used in SQL to extract a specified number of characters from the right side of a string.

26
RPAD
10 minutes

RPAD is a function used in SQL to pad a string with specified characters on the right side until it reaches a desired length.

27
RTRIM
10 minutes

RTRIM is a function used in SQL to remove trailing spaces (spaces at the end) from a string.

28
SPACE
10 minutes

SPACE is a function used in SQL to generate a string consisting of a specified number of spaces.

29
STRCMP
10 minutes

STRCMP is a function that compares two strings and returns an integer value indicating their relative order.

30
SUBSTR
10 minutes

SUBSTR is a function that extracts a portion of a string, specified by a starting position and length, and returns it as a new string.

31
SUBSTRING
10 minutes

SUBSTRING is a function that extracts a portion of a string based on specified starting position and length parameters.

32
SUBSTRING_INDEX
10 minutes

SUBSTRING_INDEX is a function that extracts a substring from a string before a specified delimiter, with an option to specify which occurrence of the delimiter to use.

33
TRIM
10 minutes

TRIM is a function that removes leading and trailing spaces from a string.

34
UCASE
10 minutes

UCASE is a function that converts all characters in a string to uppercase.

35
UPPER
10 minutes

UPPER is a function that converts all characters in a string to uppercase.

36
ABS
10 minutes

ABS is a function that returns the absolute value of a number, removing its sign.

37
ACOS
10 minutes

ACOS is a function that returns the arccosine (inverse cosine) of a value, measured in radians, within the range [0, π].

38
ASIN
10 minutes

ASIN is a function that returns the arcsine (inverse sine) of a value, measured in radians, within the range [-π/2, π/2].

39
ATAN
10 minutes

ATAN is a function that returns the arctangent (inverse tangent) of a value, measured in radians, within the range [-π/2, π/2].

40
ATAN2
10 minutes

ATAN2 is a mathematical function that computes the arctangent of the quotient of its two arguments, ensuring correct quadrant placement.

41
AVG
10 minutes

AVG computes the arithmetic mean of a set of values, commonly used in statistical analysis to determine a central tendency.

42
CEIL
10 minutes

CEIL rounds a numeric value up to the nearest integer, and returns the result.

43
CEILING
10 minutes

CEILING rounds a numeric value up to the nearest integer, and returns the result.

44
COS
10 minutes

COS is a mathematical function that calculates the cosine of a given angle in radians.

45
COT
10 minutes

COT calculates the cotangent of an angle in radians, defined as the reciprocal of the tangent of an angle.

46
COUNT
10 minutes

COUNT is a function used to determine the number of non-null values in a set of values or records.

47
DEGREES
10 minutes

DEGREES is a mathematical function that converts an angle measured in radians to its equivalent in degrees.

48
DIV
10 minutes

DIV is an arithmetic operator used for integer division, returning the quotient without the remainder.

49
EXP
10 minutes

EXP is a mathematical function that returns the value of Euler's number (approximately 2.71828) raised to the power of a given number.

50
FLOOR
10 minutes

FLOOR is a mathematical function that rounds a numeric value down to the nearest integer, and returns the result.

51
GREATEST
10 minutes

GREATEST is a function that returns the largest value among a list of expressions.

52
LEAST
10 minutes

LEAST is a function that returns the smallest value from a list of arguments.

53
LN
10 minutes

LN stands for "Logarithm Natural," a mathematical function representing the exponent to which the base number (usually Euler's number, e ≈ 2.718) must be raised to produce a given number.

54
LOG
10 minutes

The LOG function calculates the logarithm of a number with a specified base.

55
LOG10
10 minutes

LOG10 is a mathematical function that computes the base-10 logarithm of a given number.

56
LOG2
10 minutes

LOG2 is a mathematical function that computes the base-2 logarithm of a given number.

57
MAX
10 minutes

MAX is a function used to determine the highest value among a set of numbers or expressions.

58
MIN
10 minutes

MIN is a function used to determine the lowest value among a set of numbers or expressions.

59
MOD
10 minutes

MOD is a mathematical function that computes the remainder when one number is divided by another.

60
PI
10 minutes

PI is a mathematical constant representing the ratio of a circle's circumference to its diameter, approximately equal to 3.14159.

61
POW
10 minutes

POW is a mathematical function used to calculate a number raised to the power of another number.

62
POWER
10 minutes

In SQL, the POWER function returns the result of raising a number to a specified exponent.

63
RADIANS
10 minutes

SQL radians function converts an angle in degrees to radians.

64
RAND
10 minutes

SQL RAND() function generates a random number.

65
ROUND
10 minutes

SQL ROUND() function returns a number rounded to a specified number of decimal places.

66
SIGN
10 minutes

SQL SIGN() function returns the sign of a number.

67
SIN
10 minutes

SQL SIN() function calculates the sine of an angle in radians.

68
SQRT
10 minutes

SQL SQRT is a mathematical function used to calculate the square root of a numeric value in a SQL query.

69
SUM
10 minutes

SQL SUM is an aggregate function used to calculate the total sum of numeric values in a specified column or expression within a SQL query.

70
TAN
10 minutes

SQL TAN is a trigonometric function used to calculate the tangent of an angle in a SQL query.

71
TRUNCATE
10 minutes

SQL TRUNCATE is a command used to remove all records from a table in a database, effectively resetting it while preserving its structure.

72
ADDDATE
10 minutes

SQL ADDDATE is a function that adds a specified number of days to a date, returning a new date value.

73
ADDTIME
10 minutes

SQL ADDTIME is a function used to add a specified time interval to a given time or datetime value.

74
CURDATE
10 minutes

SQL CURDATE is a function that returns the current date in the system's timezone.

75
CURRENT_DATE
10 minutes

SQL CURRENT_DATE is a function that returns the current date in the system's timezone.

76
CURRENT_TIME
10 minutes

SQL CURRENT_TIME is a function that returns the current time in the system's timezone.

77
CURRENT_TIMESTAMP
10 minutes

CURRENT_TIMESTAMP in SQL returns the current date and time of the database server.

78
CURTIME
10 minutes

CURTIME() in SQL returns the current time from the database server.

79
DATE
10 minutes

In SQL, DATE represents a data type for storing dates without any associated time information.

80
DATEDIFF
10 minutes

DATEDIFF in SQL calculates the difference in days between two dates.

81
DATE_ADD
10 minutes

DATE_ADD in SQL is a function used to add a specified time interval to a date.

82
DATE_FORMAT
10 minutes

DATE_FORMAT in SQL is a function used to format date and time values based on a specified format string.

83
DATE_SUB
10 minutes

DATE_SUB is a function in SQL used to subtract a specified time interval from a date.

84
DAY
10 minutes

In SQL, DAY is a function used to extract the day of the month from a given date.

85
DAYNAME
10 minutes

In SQL, DAYNAME is a function used to retrieve the name of the day of the week from a given date.

86
DAYOFMONTH
10 minutes

DAYOFMONTH is a function in SQL used to extract the day of the month from a given date.

87
DAYOFWEEK
10 minutes

DAYOFWEEK is a function in SQL used to extract the day of the week from a given date.

88
DAYOFYEAR
10 minutes

DAYOFYEAR is an SQL function used to extract the day of the year from a given date.

89
EXTRACT
10 minutes

EXTRACT is a SQL function used to retrieve a specific part (e.g., year, month, day) from a date or timestamp.

90
FROM_DAYS
10 minutes

FROM_DAYS is a function in MySQL that converts a day number into a date.

91
HOUR
10 minutes

HOUR is a SQL function used to extract the hour portion from a given time or timestamp.

92
LAST_DAY
10 minutes

LAST_DAY in SQL returns the last day of the month for a given date.

93
LOCALTIME
10 minutes

LOCALTIME in SQL returns the current date and time for the local time zone.

94
LOCALTIMESTAMP
10 minutes

LOCALTIMESTAMP in SQL retrieves the current date and time including fractional seconds, based on the local time zone.

95
MAKEDATE
10 minutes

MAKEDATE in SQL is used to construct a date from year and day of year values.

96
MAKETIME
10 minutes

MAKETIME in SQL is used to construct a time value from hour, minute, and second components.

97
MICROSECOND
10 minutes

MICROSECOND in SQL is a function that retrieves the microsecond part of a given time or datetime value.

98
MINUTE
10 minutes

MINUTE in SQL retrieves the minute component of a given time or datetime value.

99
MONTH
10 minutes

MONTH in SQL retrieves the month component of a given date or datetime value.

100
MONTHNAME
10 minutes

MONTHNAME in SQL is a function that retrieves the name of the month from a given date or datetime value.

101
NOW
10 minutes

NOW in SQL retrieves the current date and time.

102
PERIOD_ADD
10 minutes

PERIOD_ADD in SQL is a function used to add a number of months to a period in the format YYYYMM.

103
PERIOD_DIFF
10 minutes

PERIOD_DIFF in SQL calculates the difference in months between two periods in the format YYYYMM.

104
QUARTER
10 minutes

QUARTER in SQL is a function that returns the quarter of the year (1 to 4) for a given date.

105
SECOND
10 minutes

SECOND in SQL retrieves the second component of a given time or datetime value.

106
SEC_TO_TIME
10 minutes

SEC_TO_TIME in SQL converts a number of seconds into a time format (HH:MM).

107
STR_TO_DATE
10 minutes

STR_TO_DATE in SQL converts a string representation of a date and time into a proper datetime value using a specified format.

108
SUBDATE
10 minutes

SUBDATE is a MySQL function that subtracts a specified number of days, months, or years from a given date, producing a new date.

109
SUBTIME
10 minutes

SUBTIME is a MySQL function that subtracts a specified time interval from a given time or datetime value.

110
SYSDATE
10 minutes

SYSDATE is a function in databases like Oracle and MySQL that returns the current date and time from the system's clock.

111
TIME
10 minutes

TIME refers to the representation of the current time or a specific time of day in a given context, typically as a part of a date-time format.

112
TIME_FORMAT
10 minutes

TIME_FORMAT is a function in MySQL that converts a time value to a specified format.

113
TIME_TO_SEC
10 minutes

TIME_TO_SEC is a MySQL function that converts a time value into seconds. 

114
TIMEDIFF
10 minutes

TIMEDIFF is a MySQL function that calculates the difference between two time or datetime values.

115
TIMESTAMP
10 minutes

TIMESTAMP is a data type in SQL that stores both date and time values.

116
TO_DAYS
10 minutes

TO_DAYS is a function in MySQL that converts a date or datetime value to a numeric value representing days since year 0.

117
WEEK
10 minutes

WEEK is a function in SQL that returns the week number of a given date.

118
WEEKDAY
10 minutes

WEEKDAY is a function in SQL that returns the index of the weekday for a given date (0 = Monday, 6 = Sunday).

119
WEEKOFYEAR
10 minutes

WEEKOFYEAR is a function in SQL that returns the week number within a year for a given date.

120
YEAR
10 minutes

YEAR is a function in SQL that extracts the year from a date or datetime value.

121
YEARWEEK
10 minutes

YEARWEEK is a function in SQL that returns the year and week number concatenated together for a given date.

122
BIN
10 minutes

BIN is a MySQL function that converts a decimal number to its binary representation.

123
BINARY
10 minutes

BINARY is a keyword in SQL used to specify a binary string literal or to cast a string to a binary type.

124
CASE
10 minutes

CASE is a conditional expression in SQL used to evaluate multiple conditions and return a result based on them.

125
CAST
10 minutes

CAST is a SQL function used to convert a value from one data type to another.

126
COALESCE
10 minutes

COALESCE returns the first non-null value in a list of expressions.

127
CONNECTION_ID
10 minutes

CONNECTION_ID returns the ID of the current client connection in a database session.

128
CONV
10 minutes

CONV() converts a number from one numeric base to another.

129
CONVERT
10 minutes

CONVERT function changes a value from one data type to another in SQL.

130
CURRENT_USER
10 minutes

CURRENT_USER returns the username of the current database user.

131
DATABASE
10 minutes

DATABASE retrieves the name of the current database in use.

132
IF
10 minutes

IF is a control flow function that returns one value if a condition is true and another value if the condition is false.

133
IFNULL
10 minutes

In SQL, IFNULL is a function that returns a specified value if the given expression is NULL; otherwise, it returns the expression itself.

134
ISNULL
10 minutes

In SQL, ISNULL is a function that replaces NULL with a specified value.

135
LAST_INSERT_ID
10 minutes

LAST_INSERT_ID() is a function in SQL that returns the ID generated for the last AUTO_INCREMENT column in the current session.

136
NULLIF
10 minutes
137
SESSION_USER
10 minutes

SESSION_USER is a SQL function that returns the name of the current database user for the session.

138
SYSTEM_USER
10 minutes

SYSTEM_USER is a SQL function that returns the login name of the current user in the database system.

139
USER
10 minutes

USER is a SQL function that returns the current user name in the context of the database system.

140
VERSION
10 minutes

VERSION is a SQL function that retrieves the version of the database system.

Be the first to add a review.

Please, login to leave a review
Start course
Enrolled: 3128 students
Lectures: 191
Level: Beginner

Archive

Working hours

Monday 9:30 am - 6.00 pm
Tuesday 9:30 am - 6.00 pm
Wednesday 9:30 am - 6.00 pm
Thursday 9:30 am - 6.00 pm
Friday 9:30 am - 5.00 pm
Saturday Closed
Sunday Closed
MYSQL
Category: