Jump to content

SQL hates SUMing the loads from PIREP table? [SOLVED]


Kyle

Recommended Posts

  • Moderators

Hey,

I'm trying to make an query to get all of the passenger loads columns from the PIREP tables.

Here's the SQL Query i ran in our database manager

SELECT SUM(load) AS passengers FROM pireps

And I got the Query error...

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load) AS passengers FROM pireps' at line 1

Does anyone know why? I tried to sum the fuelused column and it worked, same query, but what the heck, why not to the loads column?

Hopefully someone can shine in! ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...