-
Notifications
You must be signed in to change notification settings - Fork 742
Add domain models and review OQL documentation #9914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First shot at adding a domain model and doing a quick review.
@@ -111,15 +115,15 @@ The following query returns all attributes of objects of `Sales.Request` that ar | |||
``` | |||
SELECT Sales.Request/* | |||
FROM Sales.Customer | |||
JOIN Sales.Customer/Sales.Customer_Request/Sales.Request | |||
JOIN Sales.Customer/Sales.Request_Customer/Sales.Request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was back to front naming?
@@ -544,7 +548,7 @@ Where `expression` is an expression of any datatype. | |||
The `IS` operator can be used to filter out rows with values that are NULL. For example: | |||
|
|||
```sql | |||
SELECT Revenue, Cost FROM Sales.Finance WHERE Revenue IS NOT NULL | |||
SELECT Revenue, Cost FROM Sales.Finances WHERE Revenue IS NOT NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - the other examples used "Finances"
@@ -1141,18 +1145,18 @@ For example, a space delimited list can be converted to one with commas to be us | |||
SELECT * FROM Sales.Raw | |||
``` | |||
|
|||
| ID | Import | | |||
| ID | RawImport | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Import" is an invalid attribute name
@@ -173,7 +177,7 @@ SELECT MAX(Stock) as StockMax FROM Sales.Product | |||
To return the name(s) of the product(s) with the highest stock level you have to use a subquery. The subquery returns the maximum stock number, which is then compared to each product's stock in the `WHERE` clause: | |||
|
|||
```sql | |||
SELECT HighestStockProductName FROM Sales.Product | |||
SELECT Name AS HighestStockProductName FROM Sales.Product |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to pick up Name here but report it as "HighestStockProductName"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this - what is the relationship between Storage and Location?
I think the example works with this, but not convinced that the example gives a meaningful answer?
No description provided.