0% found this document useful (0 votes)
4 views

DBMS Research

Uploaded by

jaarambulo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

DBMS Research

Uploaded by

jaarambulo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

NAME: John Carlo A. Arambulo Instructor: Prof.

John Gio Arciaga

YEAR AND SECTION II-CS2 Subject: CS211- DBMS

Midterm| Research Activity #1

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

WHERE column LIKE pattern ;

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:

SELECT columnname AS aliasname FROM tablename

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:

SELECT * FROM tablename ORDER BY columnname ASC|DESC

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/

geeksforgeeks. 2023. SQL|ALIASES retrieved October 13, 2024 from

https://www.geeksforgeeks.org/sql-aliases/

geeksforgeeks. 2024. SQL ORDER BY retrieved October 13, 2024 from


https://www.geeksforgeeks.org/sql-order-by/

You might also like