Hi Muhammet,
Sorry for the delay. We have checked your reported
query, and for more clarification, based on Query Builder architecture, we have
prepared only the WHERE value of the SQL query from the Blazor Query Builder
using the GetSqlFromRules method. Using those SQL values, we can frame the
SQL query like shown below.
|
var
condition = QueryBuilderObj.GetSqlFromRules(QueryBuilderObj.GetRules());
SELECT
MAX(column_name)
FROM table_name
WHERE condition;
|
Please
note that in SQL, aggregate functions such as SUM, MAX, and MIN are designed to
operate on the result set after aggregation. They are typically used within the
SELECT statement to perform calculations or in combination with the GROUP BY
clause to group and analyze data.
However, aggregate functions
cannot be used directly in the WHERE clause. The WHERE clause is applied before
any aggregation occurs and is intended to filter rows at the dataset level.
Attempting to use aggregate functions in the WHERE clause will result in an
error.
Regards,
YuvanShankar A