Skip to content

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.

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?


```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"

```

| 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


```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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to have something meaningful from the OQL perspective. We could add an association between those, but I would not since it is not used in the queries.

Copy link
Contributor

@pijuskri pijuskri Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Customer entity is mostly defined with LastName/FirstName in the examples. Only a few examples on Line 789 breaks that an includes Age and TotalOrderAmount. Perhaps let's rename the entity there to something else like CustomerInfo and use it in the COALESCE examples

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.

3 participants