Uploaded by PATRICIA CAMILLE JANABAN

Assessment4 Janaban

advertisement
Patricia Camille C. Janaban
IS31S1
Information Management
WHERE clause

When collecting data from a single table or merging many tables, the SQL WHERE clause is used
to set a condition. Only a specific value from the table is returned if the stated condition is met.
Condition

A condition is a set of expressions and logical (Boolean) operators that returns one of three values:
TRUE, FALSE, or unknown.
Comparison Conditions

A comparison (or relational) operator is a mathematical symbol that allows two values to be
compared. In instances when one expression is compared to another, comparison operators are
utilized. A comparison's outcome can be TRUE, FALSE, or UNKNOWN (an operator that has one
or two NULL expressions returns UNKNOWN).
Between Condition

The BETWEEN operator chooses values from a specified range. Numbers, text, and dates can all
be used as values. The BETWEEN operator takes both the start and finish values into account.
In Condition

The SQL IN condition (also known as the IN operator) makes it simple to see if an expression
matches any element in a list. It's utilized in SELECT, INSERT, UPDATE, and DELETE statements
to help eliminate the need for multiple OR conditions.
Like Condition

The SQL LIKE condition allows you to match patterns in a query using wildcards. In a SELECT,
INSERT, UPDATE, or DELETE statement, the LIKE condition is utilized in the WHERE clause.
Logical Condition

A logical condition combines or inverts the outputs of two component conditions to give a single
result depending on them.
Describe

DESCRIBE is a word that means "to describe." Because tables exist in databases, we utilize the
Explain or DESC(both are the same) command to describe the structure of a table.
Patricia Camille C. Janaban
IS31S1
Information Management
References:
Tutorial is on point. (n.d.). SQL - WHERE Clause. SQL - Where clause. Retrieved December 4, 2021, from
https://www.tutorialspoint.com/sql/sql-where-clause.htm.
Database SQL quick reference. SQL Conditions. (2005, November 4). Retrieved December 4, 2021, from
https://docs.oracle.com/cd/B19306_01/server.102/b14195/sqlqr04.htm.
SQL comparison operator. w3resource. (n.d.). Retrieved December 4, 2021, from
https://www.w3resource.com/sql/comparison-operators/sql-comparison-operators.php.
SQL BETWEEN Operator. SQL between operator. (n.d.). Retrieved December 4, 2021, from
https://www.w3schools.com/sql/sql_between.asp.
www.techonthenet.com. (n.d.). SQL: In condition. Retrieved December 4, 2021, from
https://www.techonthenet.com/sql/in.php.
Www.techonthenet.com. (n.d.). SQL: Like Condition. SQL: Like condition. Retrieved December 4, 2021,
from https://www.techonthenet.com/sql/like.php.
Database SQL reference. Moved. (2005, July 10). Retrieved December 4, 2021, from
https://docs.oracle.com/cd/B19306_01/server.102/b14200/conditions004.htm.
SQL: Describe statement. GeeksforGeeks. (2018, March 21). Retrieved December 4, 2021, from
https://www.geeksforgeeks.org/sql-describe-statement/.
Download