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
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Oct 14, 2026
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
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="MihiCherub" data-source="post: 16002856" data-attributes="member: 238676"><p><span style="font-size: 12px">මේ Table තුනම join කරල දෙන්න පුලුවන්ද තනි query කින්. <img src="/styles/default/xenforo/smilies/default/confused.gif" class="smilie" loading="lazy" alt=":confused:" title="Confused :confused:" data-shortname=":confused:" /></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">(*)Indicates PK -- invoicedetails table - invoiceno - FK</span></p><p></p><p><strong><span style="font-size: 12px">Expected Result - </span></strong><span style="font-size: 12px"><span style="color: Navy"> inv.itemcode, itd.itemname, inv.saleprice, inv.qty AS curentq, fis.qty AS freeq,ret.qty AS returnq, discount,amount where invoiceno = '1'</span></span><img src="/styles/default/xenforo/smilies/default/eek.gif" class="smilie" loading="lazy" alt=":eek:" title="eek :eek:" data-shortname=":eek:" /></p><p><span style="font-size: 12px">-----------------------</span></p><p><span style="font-size: 12px">0001,Pen,12.00,2,1,0,1.50,10.50</span></p><p></p><p><span style="font-size: 12px">මම ගැහුවෙ මෙහෙම එකක්. ඒත් freeitems ගාන එන්නෙ වැරදියට. සමහර invoice වල items ගාන repeat වෙනව.</span></p><p></p><p>[CODE]</p><p>SELECT </p><p> inv.itemcode,</p><p> itd.itemname,</p><p> inv.saleprice,</p><p> inv.qty AS curentq,</p><p> fis.qty AS freeq,</p><p> ret.qty AS returnq,</p><p> discount,</p><p> amount </p><p>FROM</p><p> invoicedetails inv </p><p> INNER JOIN itemdetails itd </p><p> ON inv.itemcode = itd.itemcode </p><p> LEFT JOIN freeissue fis </p><p> ON inv.invoiceno = fis.invoiceno </p><p> LEFT JOIN returnitems ret </p><p> ON inv.invoiceno = ret.invoiceno </p><p>WHERE inv.invoiceno = '1' [/CODE]<span style="font-size: 12px">තව පැහැදිලි කරන්න කියන්න එපා <img src="/styles/default/xenforo/smilies/default/angry.gif" class="smilie" loading="lazy" alt=":angry:" title="Angry :angry:" data-shortname=":angry:" /><img src="/styles/default/xenforo/smilies/default/angry.gif" class="smilie" loading="lazy" alt=":angry:" title="Angry :angry:" data-shortname=":angry:" /><img src="/styles/default/xenforo/smilies/default/angry.gif" class="smilie" loading="lazy" alt=":angry:" title="Angry :angry:" data-shortname=":angry:" /></span></p></blockquote><p></p>
[QUOTE="MihiCherub, post: 16002856, member: 238676"] [SIZE=3]මේ Table තුනම join කරල දෙන්න පුලුවන්ද තනි query කින්. :confused: (*)Indicates PK -- invoicedetails table - invoiceno - FK[/SIZE] [B][SIZE=3]Expected Result - [/SIZE][/B][SIZE=3][COLOR=Navy] inv.itemcode, itd.itemname, inv.saleprice, inv.qty AS curentq, fis.qty AS freeq,ret.qty AS returnq, discount,amount where invoiceno = '1'[/COLOR][/SIZE]:eek: [SIZE=3]----------------------- 0001,Pen,12.00,2,1,0,1.50,10.50[/SIZE] [SIZE=3]මම ගැහුවෙ මෙහෙම එකක්. ඒත් freeitems ගාන එන්නෙ වැරදියට. සමහර invoice වල items ගාන repeat වෙනව.[/SIZE] [CODE] SELECT inv.itemcode, itd.itemname, inv.saleprice, inv.qty AS curentq, fis.qty AS freeq, ret.qty AS returnq, discount, amount FROM invoicedetails inv INNER JOIN itemdetails itd ON inv.itemcode = itd.itemcode LEFT JOIN freeissue fis ON inv.invoiceno = fis.invoiceno LEFT JOIN returnitems ret ON inv.invoiceno = ret.invoiceno WHERE inv.invoiceno = '1' [/CODE][SIZE=3]තව පැහැදිලි කරන්න කියන්න එපා :angry::angry::angry:[/SIZE] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom