Skip to main content
  • 10000+ Posts
  • 53,235 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

  • Student (Grey)
    crbhas earned the badge Student (Grey)
  • Webinar Watcher (Grey)
    ewoonkhas earned the badge Webinar Watcher (Grey)
  • Welcome Back
    ewoonkhas earned the badge Welcome Back
  • Online Training
    aclarkhas earned the badge Online Training
  • FME Form Basic Training
    quentinvdshas earned the badge FME Form Basic Training
Show all badges

Community Stats

32,413
Posts
122,925
Replies
40,129
Members

Latest FME