23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SELECT<br />

Syntax<br />

46<br />

GROUP BY grouping_condition<br />

See the “GROUP BY clause” section on page 52.<br />

HAVING search_condition<br />

See the “HAVING clause” section on page 54.<br />

ORDER BY ordering_condition<br />

See the “ORDER BY clause” section on page 54.<br />

WITH locking_hints<br />

See the “WITH clause” section on page 55.<br />

FOR UPDATE update_condition<br />

See the “FOR UPDATE clause” section on page 56.<br />

Authorization<br />

Must have DBA privilege or SELECT permission on all the tables or views referred to in the<br />

query_expression.<br />

Related statements<br />

INSERT, DELETE<br />

COLUMN_LIST clause<br />

Specifies which columns to retrieve by the SELECT statement.<br />

[ ALL | DISTINCT ]<br />

{ * | { table_name | alias.}* [ , { table_name.| alias.} * ] ...<br />

| expr [ [ AS ] [ ' ] column_title [ ' ] ]<br />

[, expr [ [ AS ] [ ' ] column_alias [ ' ] ] ] ...<br />

| [ table| alias.]column_name , ... ]<br />

}<br />

[ ALL | DISTINCT ]<br />

Indicates whether a result table omits duplicate rows. ALL is the default and specifies<br />

that the result table includes all rows. DISTINCT specifies that a table omits duplicate<br />

rows.<br />

* | { table_name. | alias. } *<br />

Specifies that the result table includes all columns from all tables named in the FROM<br />

clause.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!