DISC

Contents | What's New | Quick Links

 

SQL Reference - SELECT Statement Syntax

Introduction

Software Installation

Concepts and Design

Designing Applications

Omnidex Environments

SQL Reference

Omnidex API's

Utilities

Interfaces

Performance Guide

Troubleshooting Guide

Appendix

 

 

GROUP BY Clause

SELECT Statement WHERE ClauseSELECT Statement ORDER BY Clause

 

Column Names from the Select List

Column Names Not in the Select List

HAVING Clause - Can contain any of the following:

  • Column Value Criteria
  • Column Value Aggregations
  • Nested Selects

SELECT Statement Syntax

Select List Items

FROM Clause

WHERE Criteria

GROUP BY Clause

ORDER BY Clause

Criteria Conditioning

 

SQL Language Reference

ON CURSOR | INSTANCE

WITH Options

Commands

Functions

Column Names From the Select List

select customer_no, sum(amount) from orders group by customer_no

select city, state, count(distinct company) from customers group by city, state

 

Column Names Not in the Select List

select status, sum(amount) from orders group by customer_no, status

select count(company) from customers group by state

 

Having

select customer_no, sum(amount) from orders
group by customer_no having customer_no = 1001

select customer_no, sum(amount) from orders
group by customer_no having status != 'shipped'

select status, sum(amount) from orders group by status having customer_no
in (select customer_no from customers where company='systems')

top

Dynamic Information Systems Corporation - Omnidex Version 3.8 Build 6 J15.03-Copyright © 2003

DISC | Documentation Home