' == VB.NET Code ===================================================
Dim
sel
As
SelectQuery = OQL
_
.Select(NW.Order.OrderID,NW.Order.OrderDate,NW.Order.RequiredDate)
_
.Add(NW.OrderDetail)
_
.From(NW.Order,
NW.Order.OrderDetail)
_
.Where(NW.Order.CustomerID
= 5
And NW.Order.ShipVia
= 1
_
And
NW.Order.OrderID
= NW.OrderDetail.OrderID)
_
.OrderBy(NW.Order.OrderID)
'
==== sql output for Microsoft Sql Server =========================
SELECT
[Orders].[OrderID]
, [Orders].[OrderDate]
, [Orders].[RequiredDate]
,
[Order
Details].*
FROM
[Orders] , [Order Details]
WHERE
[Orders].[EmployeeID]
= 5
AND
[Orders].[ShipVia]
= 1
AND
[Orders].[OrderID]
= [Order Details].[OrderID]
ORDER BY
[Orders].[OrderID]
'
==== sql output for Oracle ======================================
SELECT
"Orders"."OrderID"
, "Orders"."OrderDate"
, "Orders"."RequiredDate"
,
"Order
Details".*
FROM
"Orders" , "Order Details"
WHERE
"Orders"."EmployeeID"
= 5
AND
"Orders"."ShipVia"
= 1
AND
"Orders"."OrderID"
= "Order Details"."OrderID"
ORDER BY
"Orders"."OrderID" |