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 Help
SQL SEVER
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="hirushan" data-source="post: 13043487" data-attributes="member: 31863"><p>[CODE]</p><p>CREATE TABLE table1(</p><p>billno int,</p><p>billinfo varchar(50)</p><p>)</p><p></p><p>CREATE TABLE table2(</p><p>billno int,</p><p>billinfo varchar(50)</p><p>)</p><p></p><p>CREATE TABLE table3(</p><p>billno int,</p><p>billinfo varchar(50)</p><p>)</p><p></p><p>--3 Tables</p><p>Insert into table1 values (1111,'Marie')</p><p>Insert into table2 values (1111,'Marie')</p><p>Insert into table3 values (1111,'Marie')</p><p></p><p>--Only 2 Tables</p><p>Insert into table1 values (1112,'Hirushan')</p><p>Insert into table2 values (1112,'Hirushan')</p><p></p><p>--Only 1 </p><p>Insert into table1 values (1113,'Eranga')</p><p></p><p>select * from table1</p><p>select * from table2</p><p>select * from table3</p><p></p><p>--All 3</p><p>select table1.billno as [table1-BillNo],</p><p> table1.billinfo as [table1-BillInfo],</p><p> table2.billinfo as [table2-BillInfo],</p><p> table3.billinfo as [table3-BillInfo] </p><p>from table1</p><p>INNER JOIN table2 </p><p> ON table1.billno=table2.billno</p><p>INNER JOIN table3</p><p> ON table1.billno=table3.billno</p><p></p><p></p><p>--2 only</p><p>select table1.billno as [table1-BillNo],</p><p> table1.billinfo as [table1-BillInfo],</p><p> table2.billinfo as [table2-BillInfo],</p><p> table3.billinfo as [table3-BillInfo] </p><p>from table1</p><p>INNER JOIN table2 </p><p> ON table1.billno=table2.billno</p><p>LEFT JOIN table3</p><p> ON table1.billno=table3.billno</p><p></p><p>--only 1</p><p>select table1.billno as [table1-BillNo],</p><p> table1.billinfo as [table1-BillInfo],</p><p> table2.billinfo as [table2-BillInfo],</p><p> table3.billinfo as [table3-BillInfo] </p><p>from table1</p><p>LEFT JOIN table2 </p><p> ON table1.billno=table2.billno</p><p>LEFT JOIN table3</p><p> ON table1.billno=table3.billno</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="hirushan, post: 13043487, member: 31863"] [CODE] CREATE TABLE table1( billno int, billinfo varchar(50) ) CREATE TABLE table2( billno int, billinfo varchar(50) ) CREATE TABLE table3( billno int, billinfo varchar(50) ) --3 Tables Insert into table1 values (1111,'Marie') Insert into table2 values (1111,'Marie') Insert into table3 values (1111,'Marie') --Only 2 Tables Insert into table1 values (1112,'Hirushan') Insert into table2 values (1112,'Hirushan') --Only 1 Insert into table1 values (1113,'Eranga') select * from table1 select * from table2 select * from table3 --All 3 select table1.billno as [table1-BillNo], table1.billinfo as [table1-BillInfo], table2.billinfo as [table2-BillInfo], table3.billinfo as [table3-BillInfo] from table1 INNER JOIN table2 ON table1.billno=table2.billno INNER JOIN table3 ON table1.billno=table3.billno --2 only select table1.billno as [table1-BillNo], table1.billinfo as [table1-BillInfo], table2.billinfo as [table2-BillInfo], table3.billinfo as [table3-BillInfo] from table1 INNER JOIN table2 ON table1.billno=table2.billno LEFT JOIN table3 ON table1.billno=table3.billno --only 1 select table1.billno as [table1-BillNo], table1.billinfo as [table1-BillInfo], table2.billinfo as [table2-BillInfo], table3.billinfo as [table3-BillInfo] from table1 LEFT JOIN table2 ON table1.billno=table2.billno LEFT JOIN table3 ON table1.billno=table3.billno [/CODE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom