I want to get all "nearby merchants" from database using join (filterproducts.paramId is primary key and merchants.merchantid is foregin key)
Here is my table "filterproducts "
id FilterType paramId
1 merchant 1
2 merchant 2
3 merchant 3
4 tag 4
Here is my table "merchants"
merchantId latitude longitude merchantName
1 30.696231 76.856701 abc
2 30.740102 76.792538 xyz
3 30.741345 76.790943 jay
4 30.722829 76.768137 hya
5 30.739897 76.782707 aeb
How can i get nearby merchants using join ?