TI Logbook
Java, Angular, Eclipse, PostgreSQL, SQL, Tips....
Friday, November 27, 2015
SQL - COUNT AND DISTINCT FUNCTIONS (Same query)
This is an example of how to use the the count and distinct funcions ins the same query
Example:
SELECT
COUNT(
DISTINCT(
T.field
)
)
FROM Table T
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment