How can I only show results with a budget> 1000?
SELECT BP_Year ,BP_UID ,BP_Name ,SUM(BP_Budget) as sumBudget FROM T_UPS_BudgetPositions GROUP BY BP_UID ,BP_Name ,BP_Year
Using the HAVING clause:
SELECT BP_Year ,BP_UID ,BP_Name ,SUM(BP_Budget) as sumBudget FROM T_UPS_BudgetPositions GROUP BY BP_UID ,BP_Name ,BP_Year HAVING SUM(BP_Budget) > 1000
Source: https://habr.com/ru/post/1274369/More articles:How to check attribute value in controller instance variable? - unit-testingWhat is the correct batch normalization function in Tensorflow? - pythonWhere are JNLP related parameters stored - javaHow to make the layout of the seats, as in red? - jsonHow to endlessly repeat the sequence in Kotlin? - collectionsWhat is the best way to pass a list of functions as an argument? - functionHow to redirect to admin page with custom admin table - phpHow to access rootPath set from gulp task from angular app - javascriptSwagger API Client Authentication - node.jsHow to build checkmarks and numbers of y and x axes in ggplot graph? - rAll Articles