Created
December 12, 2023 08:12
-
-
Save sqlparser/6de84ee00c5fae803c2617544c6b9eeb to your computer and use it in GitHub Desktop.
OpenEdge Sample SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sql | |
-- openedge sample sql | |
CREATE VIEW ne_customers AS | |
SELECT name, address, city, state | |
FROM customer | |
WHERE state IN ( 'NH', 'MA', 'ME', 'RI', 'CT', 'VT' ) | |
WITH CHECK OPTION ; | |
INSERT INTO neworders (order_no, product, qty) | |
SELECT order_no, product, qty | |
FROM orders | |
WHERE order_date = SYSDATE ; | |
UPDATE OrderLine | |
SET (ItemNum, Price) = | |
(SELECT ItemNum, Price * 3 | |
FROM Item | |
WHERE ItemName = 'gloves') | |
WHERE OrderNum = 21 ; | |
Update Orderline | |
SET (Itemnum) = | |
(Select Itemnum | |
FROM Item | |
WHERE Itemname = 'Tennis balls') | |
WHERE Ordernum = 20; | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment