Date: / /: Logical Operation in Where Clause
Date: / /: Logical Operation in Where Clause
8
Date: \ \
8
Date: \ \
The underscore character ‘_’ is used with LIKE operator. In search string, the underscore signifies a single character. For more than
one character two underscore can be used.
Example:
To select the student whose name sname with ’a’ second character..
8
Date: \ \
Sql ‘in’ operators:-
The IN operator is used when want to compare a column with more than one value. It is similar to
an OR condition.
Example: To find the sname of the student whose dept_id either 2nd or 3rd.
There would be no output if every student participate in a game in the stud_member,else the
names of the student who do not partipate in any games would be displayed.
8
Date: \ \
SQL distinct():
This function is used to select the distinct rows.
Example:
Sql max():
This function is used to get the maximum values from acolumn drawn by an employe.
Example:
Sql min():
This function is used to get the minimum value from column.
Example:
8
Date: \ \
Sql avg():
This function is used to get the average values of a numeric column.
Example:
Sql sum():
This function is used to get the sum of a numeric column.
Example:
8
Date: \ \