I have a table applicants and one of the columns is age, i want to be able to calculate the age range, frequency and variation. Is there a way this can be achieved?
lilwizz770
0
Newbie Poster
Recommended Answers
Jump to PostWhat do you mean 'Frequency of Age'? Frequency means something else.. Do you know the how frequent a particular age is given?
Jump to PostLilwizz, you can calculate frequency in a loop. Set
$count = 0
and at the end of each loop increment count by one :$count++
. In the middle of the loop you'll need to execute a query counting the number of rows whereage = $count
. You can of course …
All 5 Replies
phorce
131
Posting Whiz in Training
Featured Poster
mmcdonald
28
Posting Pro
diafol
mmcdonald
28
Posting Pro
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.