Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » Getting Started » Optimizer |
<ColumnReference> [<CollationReference>] <Operator> <Expression> <RowValueConstructor> <Operator> <Expression> <RowValueConstructor> = (<ColumnReference> [<CollationReference>], <ColumnReference> [<CollationReference>] [,<ColumnReference> [<CollationReference>]])
CREATE INDEX State ON Customer (State)
SELECT * FROM Customer WHERE State = 'FL'
SELECT * FROM Customer WHERE State = 'fl'
CREATE INDEX State ON Customer (State COLLATE ANSI_CI)
SELECT * FROM Customer WHERE State COLLATE ANSI_CI = 'FL'
SELECT OrderHdr.Cust_ID, OrderHdr.Order_Num, OrderDet.Model_Num, OrderDet.Cust_Item FROM OrderHdr INNER JOIN OrderDet ON OrderHdr.Order_Num=OrderDet.Order_Num WHERE OrderHdr.Cust_ID = 'C901' ORDER BY OrderHdr.Cust_ID, OrderHdr.Order_Num
OrderHdr.Cust_ID = 'C901'
OrderHdr.Order_Num = OrderDet.Order_Num
SELECT OrderHdr.Cust_ID, OrderHdr.Order_Num, OrderDet.Model_Num, OrderDet.Cust_Item FROM OrderHdr INNER JOIN OrderDet ON OrderHdr.Order_Num = OrderDet.Order_Num AND OrderHdr.Cust_ID = 'C901' ORDER BY OrderHdr.Cust_ID, OrderHdr.Order_Num
OrderHdr.Cust_ID = 'C901'
OrderHdr.Order_Num = OrderDet.Order_Num
SELECT OrderHdr.Cust_ID, OrderHdr.Order_Num, FROM OrderHdr LEFT OUTER JOIN OrderDet ON OrderHdr.Order_Num = OrderDet.Order_Num WHERE OrderDet.Order_Num IS NULL ORDER BY OrderHdr.Cust_ID, OrderHdr.Order_Num
OrderHdr.Order_Num IS NULL
SELECT c.Company, o.OrderNo, e.LastName, p.Description, v.VendorName FROM Customer c INNER JOIN Orders o ON c.CustNo=o.CustNo INNER JOIN Employee e ON o.EmpNo=e.EmpNo INNER JOIN Items i ON o.OrderNo=i.OrderNo INNER JOIN Parts p ON i.PartNo=p.PartNo INNER JOIN Vendors v ON p.VendorNo=v.VendorNo ORDER BY e.LastName
Employee Column Data Type Index ---------------------------------------------------------------------- LastName VARCHAR(30) Primary Key (both columns are part of the FirstName VARCHAR(20) Primary Key primary key constraint)
SELECT * FROM Employee WHERE (LastName = 'Smith') and (FirstName = 'John')
SELECT * FROM Employee WHERE (LastName,FirstName) = ('Smith','John')
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |