Skip to content

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

MarkvanMents
Copy link
Collaborator

No description provided.

Copy link
Collaborator Author

@MarkvanMents MarkvanMents left a 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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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 |
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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"

Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant