You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the best way to allow filtering on a discriminator column in a dataset? In the example below, I filter rows in the table Person on the PersonType.
datasets:
- name: Employee
source: |
SELECT *
FROM dba.Person
WHERE PersonType = 1
Because the source is a now a complete SQL query, it makes it harder to apply the filter. I could use CTE for this is SQL Server, but I would prefer a cleaner way. Like the example below. Is there another option available, or a proposal? Or should I use the source sql query?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
What is the best way to allow filtering on a discriminator column in a dataset? In the example below, I filter rows in the table Person on the PersonType.
Because the source is a now a complete SQL query, it makes it harder to apply the filter. I could use CTE for this is SQL Server, but I would prefer a cleaner way. Like the example below. Is there another option available, or a proposal? Or should I use the source sql query?
Beta Was this translation helpful? Give feedback.
All reactions