subquery - Sub-queries in MySQL -


i have 2 working queries , i'm having hard time figuring out how make 2nd subquery in first query.

query 1:

select w.ws_property_id wid, w.property_type wprop watershed_property_info w exists (select distinct w.property_type                  st_property_info s                              w.property_type=s.property_type) 

query 2:

select d.st_property, count(d.rental_date) st_rental_dates d year(rental_date) = '2015' group st_property 

the result should return d.rental_date in st_rental_dates 244 matching st_property rows in st_rental_dates every time try combine these 2 queries 14,888 rows. i'm having hard time understanding put when doing sub-queries. advice?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -