Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Sat, 11 Nov 2006 02:01:48 -0000
Try this syntax:
SELECT
C.CompanyName,
O.OrderDate,
S.CompanyName
FROM Shippers S
INNER JOIN Orders O ON (S.ShipperID = O.ShipVia)
INNER JOIN Customers C ON (C.CustomerID = O.CustomerID)
What wrapper do you use now to connect to SQLite?
RBS
"MM" <kylix_is@xxxxxxxxxxx> wrote in message news:qd4al2la6oabgm2dsh092pt0aapgnj367k@xxxxxxxxxx
On Fri, 10 Nov 2006 21:14:55 -0000, "RB Smissaert"
<bartsmissaert@xxxxxxxxxxxxxxxx> wrote:
Joins are working fine, try this on the NWind DB:
SELECT C.CustomerID, O.ShipName from Customers C inner join Orders O on
(C.CustomerID = O.CustomerID)
Only these are not supported:
LEFT OUTER JOIN is implemented, but not RIGHT OUTER JOIN or FULL OUTER JOIN.
I also got a query with ONE inner join to work, but not two.
My first query, using the nwind.db example:
SELECT Customers.CompanyName, Orders.OrderDate FROM Customers INNER
JOIN Orders ON Customers.CustomerID = Orders.CustomerID;
returns 830 rows, just as in Access.
But when I try a query with TWO inner joins, it barfs:
SELECT Customers.CompanyName, Orders.OrderDate, Shippers.CompanyName
FROM Shippers INNER JOIN (Customers INNER JOIN Orders ON
Customers.CustomerID = Orders.CustomerID) ON Shippers.ShipperID =
Orders.ShipVia;
Sqlite/SQLiteSimpleQuery now says:
no such column: Customers.CompanyName
Unless there is a weird undocumented syntax specific to Sqlite that I
don't know about, it apparently cannot parse the two inner joins.
By the way, this is not a failing of the wrapper code. If you pump the
'two inner joins' query straight into Sqlite3.exe in a DOS window, it
also says:
no such column: Customers.CompanyName
MM
.
- Follow-Ups:
- References:
- Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: RB Smissaert
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: RB Smissaert
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: bart.smissaert@xxxxxxxxx
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: RB Smissaert
- Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- From: MM
- Simple, free RDBMS for VB3/6 with minimal installation footprint
- Prev by Date: Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- Next by Date: VB 6 program to read from and save to text file
- Previous by thread: Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- Next by thread: Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
- Index(es):
Relevant Pages
|