Sql Server

SQL Server used for database connectivity with windows as well as web applications.

The WHERE Clause

The WHERE clause is used to extract only those records that fulfill a specified criterion.

Operators Allowed in the WHERE Clause

With the WHERE clause, the following operators can be used:
OperatorDescription
=                               Equal
<>                               Not equal
>                               Greater than
<                               Less than
>=                              Greater than or equal
<=                               Less than or equal
BETWEEN                               Between an inclusive range
LIKE                               Search for a pattern
IN                               To specify multiple possible values for a column
Note: In some versions of SQL the <> operator may be written as !=

The TOP Clause

The TOP clause is used to specify the number of records to return.
The TOP clause can be very useful on large tables with thousands of records. Returning a large number of records can impact on performance.
Note: Not all database systems support the TOP clause.

No comments:

Post a Comment