Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
SQL Help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="hrm" data-source="post: 10448789" data-attributes="member: 88125"><p>machan me approach try karapan.</p><p></p><p>habay math meke output gaththe ne. gedara DB ekak install karala ne.</p><p>result set eka adjust karaganin group by clause eka one widiyata change karagene.</p><p>meka ubata nikam idea ekak ganna witharai danne mata test karaganne widiyak nethi nisa.</p><p>Oracle wala nam sysntax tikak wenas wenewa. ehema unoth DECODE function eka use karapan.</p><p></p><p>SELECT t1.id, t1.name, t1.team,</p><p> t2.month, MAX(t2.year) ,</p><p> 'OT' = case t2.type</p><p> when 'OT' then t2.type,</p><p> 'Incent'= case t2.type</p><p> when 'Incent' then t2.type</p><p>FROM Table1 t1 INNER JOIN Table2 t2</p><p>ON t1.id = t2.id</p><p>GROUP BY t1.id, t1.name,t1.team, t2.month</p></blockquote><p></p>
[QUOTE="hrm, post: 10448789, member: 88125"] machan me approach try karapan. habay math meke output gaththe ne. gedara DB ekak install karala ne. result set eka adjust karaganin group by clause eka one widiyata change karagene. meka ubata nikam idea ekak ganna witharai danne mata test karaganne widiyak nethi nisa. Oracle wala nam sysntax tikak wenas wenewa. ehema unoth DECODE function eka use karapan. SELECT t1.id, t1.name, t1.team, t2.month, MAX(t2.year) , 'OT' = case t2.type when 'OT' then t2.type, 'Incent'= case t2.type when 'Incent' then t2.type FROM Table1 t1 INNER JOIN Table2 t2 ON t1.id = t2.id GROUP BY t1.id, t1.name,t1.team, t2.month [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom