Professional Documents
Culture Documents
Naming Expressions:
An Expression specifies a value. The value can be simple, such as a
constant or a column name without any operators, or it can be more complex
and include one or more different operator types. There are Sting
expressions, arithmetic expressions and case expressions.
Grouping:
Use the HAVING clause to retrieve results only for groups that satisfy
a specific condition. A HAVING clause can contain one or more predicated
that compare some property of the group with either another property of the
group.
e.g.
SELECT <DB Name>, SUM (row name) AS <total> FROM <Table Name>
GROUP BY <DB Name> HAVING SUM<Table Name>
The IN predicate:
It compares one or more values with a collection of values.
Syntax is-
SELECT * FROM <Table Name> WHERE <Row Name> IN (values)