You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I prefer select type, count(*) from table group by 1 as is if the elements counted are something like select substring(unnaccent(upper('firstname',1,2))) .... there are less character to type at the end of the command :)
The text was updated successfully, but these errors were encountered:
In
https://github.com/jbranchaud/til/blob/master/postgres/count-records-by-type.md
I prefer
select type, count(*) from table group by 1
as is if the elements counted are something likeselect substring(unnaccent(upper('firstname',1,2))) ....
there are less character to type at the end of the command :)The text was updated successfully, but these errors were encountered: