DBMS Research
DBMS Research
Limit Clause
- The Limit Clause helps with retrieving a specified number of data for example there is a database with a
thousand records and you want to find one specific record then the Limit Clause can help you find that
specific record.
Syntax:
SELECT columnname
FROM tablename
LIMIT number ;
SQL Example:
Output:
Like Operator
- The Like Operator is usually used with the Where Clause to search specific patterns in a database and
returns the data that has the same pattern typed in the code. The Like Operator is case-insensitive
meaning that if you input “PLACE” and the pattern you’re trying to find is “place” then the result will
still show up.
Syntax:
SELECT columnname
FROM tablename
SQL Example:
Output:
Aliases
- Aliases is a temporary name that can be used on a column or a table. It can be used on a column or a
table when you’re not using the original name of the column or table.
Syntax:
SQL Example:
Output:
Order By
- Order By is a statement in sql that makes the data it returns be in a descending order or an ascending
order in one or more columns. It’s useful if the user wants the columns to be organized be it in
ascending or descending order.
Syntax:
SQL Example:
Output:
Reference:
geeksforgeeks. 2024. SQL LIMIT CLAUSE retrieved October 13, 2024 from
https://www.geeksforgeeks.org/sql-limit-clause/
geeksforgeeks. 2024. SQL LIKE OPERATOR retrieved October 13, 2024 from
https://www.geeksforgeeks.org/sql-like/
https://www.geeksforgeeks.org/sql-aliases/