sql - predicates
In previous chapter i have explained How To Use Identifiers, think sql In SQL now i am gonna eplain you What are the SQL Predicates
SQL Predicates:
AND
OR
LIKE
BETWEEN
AS
TOP(LIMIT)
sql - top
SQL Top is used to limit the number of results returned by a query. The top command is generally followed by a number that indicates the maximum number of results to return for a given query.
SQL Code:
use mydatabase;
SELECT TOP 2 *
FROM orders
SQL Results:
id | customer | day_of_order | product | quantity |
1 | Tizag | 2008-08-01 00:00:00.000 | Pen | 4 |
2 | Tizag | 2008-08-01 00:00:00.000 | Stapler | 3 |
No comments:
Post a Comment