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
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 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
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom