sql - average age of different countries -


I have to do a query in which I have to show the average age of all countries. I have a lot of countries in my database, and at least two or three of them are entries I want to find the average age of all countries.

Your SQL should look something like this do.

If you want the age of the average country, then how many times in the country your table will appear, this will be something like this:

  (Choose from age, choose age from country);   

If you want weighted average on the basis of what you are pulling from, then something like this will happen:

  Selection Average (age) average Countries by average;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -