Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgres count distinct

SELECT 
   COUNT(DISTINCT column) 
FROM 
   table_name
WHERE
   condition;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle list tablespaces 
Sql :: mysql subtract month from timestamp 
Sql :: change mysql root password 
Sql :: postgres check blocking 
Sql :: wordpress change user password sql 
Sql :: pentaho + pasar de excel a sql 
Sql :: table information in sql server 
Sql :: postgresql create table with timestamp 
Sql :: oracle nls instance 
Sql :: How to disable foreign key checks ? 
Sql :: capitalize 1st letter in sql server 
Sql :: how to use a trigger to validate input data 
Sql :: xampp mysql database server is not starting mac m1 
Sql :: oracle pl/sql prevent sql injection 
Sql :: mysql get character set 
Sql :: insert random numbers in columns postgress 
Sql :: ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 
Sql :: get all table names in sql 
Sql :: oracle list service names 
Sql :: delete all table oracle 
Sql :: oracle trace session 
Sql :: having vs where sql 
Sql :: sql multiline comment 
Sql :: ora-00054 find lock 
Sql :: get monday of current week sql 
Sql :: convert to hexadecimal sql 
Sql :: shell mysql connect 
Sql :: MySQL insert into examble 
Sql :: sql to char function with date 
Sql :: oracle undotbs usage 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =