13f3e67ec2157c0bc54e80d0be63270189f52f9d
API/CodeSamples/AllowComparativeArithmetic.md
| ... | ... | @@ -52,10 +52,24 @@ End Class |
| 52 | 52 | |
| 53 | 53 | ##Screenshots (Report Designer) |
| 54 | 54 | |
| 55 | -Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" |
|
| 55 | +Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (less than arithmetic) (average operator) |
|
| 56 | 56 | |
| 57 | - |
|
| 57 | + |
|
| 58 | 58 | |
| 59 | -Provided "Average" is selected, this will generate SQL like the following: |
|
| 60 | 59 | CASE WHEN ([dbo].[Invoices].[ExtendedPrice]<AVG(CAST([dbo].[Invoices].[Quantity] AS float))) THEN 1 ELSE 0 END AS 'Sales' |
| 61 | 60 | |
| 61 | +--- |
|
| 62 | + |
|
| 63 | +Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (equals arithmetic) (group operator) |
|
| 64 | + |
|
| 65 | + |
|
| 66 | + |
|
| 67 | +CASE WHEN ([dbo].[Invoices].[ExtendedPrice]=[dbo].[Invoices].[Quantity]) THEN 1 ELSE 0 END AS 'Sales' |
|
| 68 | + |
|
| 69 | +--- |
|
| 70 | + |
|
| 71 | +Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (greater than arithmetic) (sum operator) |
|
| 72 | + |
|
| 73 | + |
|
| 74 | + |
|
| 75 | +CASE WHEN ([dbo].[Invoices].[ExtendedPrice]>SUM([dbo].[Invoices].[Quantity])) THEN 1 ELSE 0 END AS 'Sales' |
|
| ... | ... | \ No newline at end of file |