title: How to return 0 if table empty, 1 otherwise
body: <p>In postgreSQL, how can i return a table containing 0 if my table is empty and a table containing 1 if my table has rows?</p>
  
  <p>I need to do it in SQL, not using any other language</p>