Jump to content

Question regarding an idea I have [solved]


Strider

Recommended Posts

I would like to know, what code would I need to get the percentage of flights done with each recording tool, like kacars,fspax,xacars and manual. The out come would be something like:

80% mACARS

55%xacars

60% fspax

30% manual

Those figures are not accurate in the slightest, just used them to illustrate my point. I do not want this to look at just the current months pirep count, but the entire pirep count for the VA

Link to comment
Share on other sites

Depends on what you want to do with it... just a list?

If its a one-off you can just go to your phpmyadmin and enter the following query:

SELECT source, count(*) as amount, (count(*)/(select count(*) from `phpvms_pireps`)) *100 as percentage FROM `phpvms_pireps` group by source

that'll give you a list of amounts and percentages for each "method" of filing a pirep, including manual ones.

if you only want acars you'd just have to add --- where source<>"manual" --- or something

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...