DBMS Aryan
DBMS Aryan
DBMS Aryan
No duplicate no allowed no
values
LIKE operator that can be used with the WHERE clause to search
for a specified pattern in a column.
Wild card characters:
1. % (per cent)- used to represent zero, one, or multiple characters
2. _ (underscore)- used to represent exactly a single character
SELECT * FROM EMPLOYEE WHERE Ename like ‘s%';
UPDATE: make changes in the value(s) of one/more columns.
UPDATE table_name SET attribute1 = value1, attribute2 = value2,
...WHERE condition;
DELETE statement is used to delete/remove one/more/all records
from a table. It can be undo.
DELETE FROM table_name WHERE condition;
Functions
Function is used to perform some particular task and it returns zero
or more values as a result.
Types:
1. Single Row functions(Scalar functions): applied on a single
value and return a single value.
2. Multiple row/Aggregate functions: Applied on a set of records
as a whole, and return a single value for each column of the
records on which the function is applied.
Single row functions
Numeric(Math) Functions: Math Functions accept numeric
value as input and return a numeric value as a result.
String Functions: String Functions accept character value as
input and return either character or numeric values as output.
Date Functions: Date and Time functions accept date and time
value as input and return numeric or string or Date and Time as
output.
1. Numeric function