0

Sub query question.

I Need to select total number of banks each from different cities from thr same table with banks indicated as 1 for yes n null for no. Thus it will be a sub query.

30th Aug 2017, 6:09 PM
Alexander Ajiduku
Alexander Ajiduku - avatar
1 Answer
0
Try: select city, count(*) from table_name where is_bank=1 group by city; or something like that, this should return num of banks per city, hope I understood the question...
4th Sep 2017, 12:32 AM
Jonhy