Join the Stack Overflow Community
Stack Overflow is a community of 6.6 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I have a "sparse" table in Postgres, described in Pandas: Adding zero values where no rows exist (sparse) . I'd like to add explicit rows with zero, just as described in http://stackoverflow.com/a/41370228/785494 . However, that answer shows how to do it in Python Pandas. Is there a way to do something similar directly in Postgres SQL?

share|improve this question
    
show what table you have and what result you want to get – Vao Tsun Dec 29 '16 at 8:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.