oracle:sql:count
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
oracle:sql:count [2021/08/08 16:09] – created peter | oracle:sql:count [2021/08/08 18:07] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Oracle - SQL - Count ====== | ====== Oracle - SQL - Count ====== | ||
- | A query can be wrapped in another SELECT: | + | [[Oracle:SQL: |
- | <code sql> | + | [[Oracle: |
- | select count(*) | + | |
- | from | + | |
- | ( | + | |
- | select count(SID) tot -- add alias | + | |
- | from Test | + | |
- | where Date = ' | + | |
- | group by SID | + | |
- | ) | + | |
- | select count(*) | ||
- | from | ||
- | (Select COLUMNS | ||
- | |||
- | |||
- | select column_name, | ||
- | </ | ||
oracle/sql/count.1628438994.txt.gz · Last modified: 2021/08/08 16:09 by peter