+ 1
Find count of customers whose postal code is same in sql language?
3 Answers
+ 1
-> First Connect to Database
-> Select from Table Columns which users have postal code
-> Use mysqli_num_rows() to get the results and output it.
0
yes this is a table structure
- 1
Try this query, not sure it will work, I haven't tested it : )
SELECT COUNT(<post_code>) FROM <table_name> GROUP BY <post_code> ORDER BY <post_code>;
Where:
<table_name> is table name.
<post_code> post code column/field.