Table
Result
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Oct 1, 2014, 1:09 PM EDT
Find the below query
SELECT Id, Branch, Part, Rate
FROM tbl
WHERE Branch IN (SELECT Branch
FROM tbl
GROUP BY Branch
HAVING MAX(Rate) > 0)
Chk if this works for you. If yes plz mark it as answered
Thank you