Skip to main content
  • 10000+ Posts
  • 53,496 Replies
10000+ Posts
SQL Executor issues a warning for a valid statement

Using Form/Workbench 2022.2, connecting to MSSQL 15 with 10.9 SDE over the top. I'm not an SQL expert, and this statement was a combination of my knowledge, ChatGPT and colleagues knowledgeSELECT    p.*,    -- Calculate the rate of nitrogen (N) application over the entire spread.    -- Convert the area to hectares, then multiply by the rate to get the total weight.    -- Finally, divide by the applied area to obtain the average rate.    SUM(p.Shape.STArea()  / 10000 * p.NutrientN / p.AppliedAreaInHa) OVER () AS  total_n_rate,     -- Calculate the total fertilizer rate over the entire spread.    -- Convert the area to hectares, then multiply by the rate to get the total weight.    -- Finally, divide by the applied area to obtain the average rate.    SUM(p.Shape.STArea()  / 10000 * p.RateKgPerHa / p.AppliedAreaInHa) OVER () AS total_fert_rateFROM    [Agtech].[MASTER].[ProofOfPlacementS

Badge Winners

  • Welcome Back
    shlesha_achhas earned the badge Welcome Back
  • Online Training
    sachas earned the badge Online Training
  • Online Training
    sclemethas earned the badge Online Training
  • Webinar Watcher (Grey)
    jpaulohas earned the badge Webinar Watcher (Grey)
  • Spanish Speaker
    j.giberthas earned the badge Spanish Speaker
Show all badges

Community Stats

32,555
Posts
123,616
Replies
40,809
Members