How to select distinct values in Google Bigquery?
Query:
SELECT DISTINCT cc_info FROM user WHERE date = ?
Thanks!
Simply use group by,
SELECT cc_info FROM user WHERE date = ? GROUP BY cc_info
If you want to COUNT over DISTINCT values you can use,
SELECT COUNT(DISTINCT cc_info) FROM user WHERE date = ?