Find count of customers whose postal code is same in sql language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Find count of customers whose postal code is same in sql language?

4th Oct 2018, 4:39 AM
T.Amulya
T.Amulya - avatar
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.
4th Oct 2018, 6:50 AM
Femi
Femi - avatar
0
yes this is a table structure
4th Oct 2018, 6:38 AM
T.Amulya
T.Amulya - avatar
- 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.
4th Oct 2018, 8:08 AM
Ipang