Hello, I am trying to get the phone number from which the oldest call was made. Is there a more efficient query for this?

Hello, I am trying to get the phone number from which the oldest call was made. Is there a more efficient query for this?

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
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 21, 2022, 8:56 AM EDT
Try,
SELECT PhoneNumber FROM mobile JOIN calls USING(MobileID) ORDER BY CallDate LIMIT 1;