Hi
IN below code i want only to get 1 record . I dont want to use Max
SQL
(Select "Location" from OLCT where "Code" = (Select Max("LocCode") from DPO1 where "DocEntry"=T0."DocEntry")) "Location"Thanks
Hi
IN below code i want only to get 1 record . I dont want to use Max
(Select "Location" from OLCT where "Code" = (Select Max("LocCode") from DPO1 where "DocEntry"=T0."DocEntry")) "Location"Thanks
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
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 16, 2025, 12:07 AM EST
Hello Ramco,
You can use this one,
(SELECT TOP 1 "Location" FROM OLCT WHERE "Code" = (SELECT "LocCode" FROM DPO1 WHERE "DocEntry" = T0."DocEntry") ) AS "Location"