Sub query question. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
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