Hi to all SQL guru..
im using Postgres _"command-line"_ i want to show you this query i create that will view the total counts of record of one particular area[city]...
SELECT count(municipality_code) FROM party_list_cocv INNER JOIN municipalities USING (municipality_code) INNER JOIN party_list_orgs ON party_id = party_list WHERE municipality_code = '980106000';
==which gives a result of:
count
-----
159
(1 row)
now what i want to do next is to view all of the records from party_list_cocv which has a records is less than or equal to 161. what should query i used to get a good result?
anyhelp will appreciate very much.
please ask me if this is not clear to you.. i reaally need help.. thnx.
im using Postgres _"command-line"_ i want to show you this query i create that will view the total counts of record of one particular area[city]...
SELECT count(municipality_code) FROM party_list_cocv INNER JOIN municipalities USING (municipality_code) INNER JOIN party_list_orgs ON party_id = party_list WHERE municipality_code = '980106000';
==which gives a result of:
count
-----
159
(1 row)
now what i want to do next is to view all of the records from party_list_cocv which has a records is less than or equal to 161. what should query i used to get a good result?
anyhelp will appreciate very much.
please ask me if this is not clear to you.. i reaally need help.. thnx.