I have 2 tables.
t1 has the following cells:
t1. event
t1.zipcode
t2 has the following:
t2.zipcode
t2.city
t2.state
I already have a zipcode given, let's say t1.zipcode = '12345' how do I count how many events in that city?
I was trying something like this:
SELECT count(t1. event)
FROM t1
LEFT JOIN t2 ON (t1.zipcode = t2.zipcode)
WHERE ... // and that's where I'm stuck...