I'm trying to figure out how to run the two following commands simultaneously:
Code:
1. psql -U user myDB -c "select city, count(1) as total_people
from list where time_up > '2011-05-12 05:00:00' and time_up <
'2011-05-12 06:00:00' group by city order by city;"
2. psql -U user myDB -c "select city, count(1) as
total_people_with_no_car from list where car is null and time_up >
'2011-05-12 05:00:00' and time_up < '2011-05-12 06:00:00' group by
city order by city;"
Then I hope to show the following:
city | total_people_with_no_car | total_people
----------------------------------------------------
Miami | 3232 | 35345
Denver | 4234 | 83883
Chicago | 4445 | 82834
numbers don't mean anything, but you get the idea. Is it even possible to do this?