Hi I have a query that selects all the houses from my table of houses that are grouped by street address. He counts how much is on this street, but also counts how many on this street are referenced in another table.
I have a query that works in MYSQL, but when I try to use it in SQlite in my iOS application, it does not work. Are there any syntax differences between the two that I don't know about?
SELECT haddress AS hd, COUNT( * ) , ( SELECT COUNT( * ) FROM canvass, house WHERE canvass.hid = house.hid AND house.haddress = hd ) FROM house GROUP BY haddress
source share