I need to assemble a method that would allow me to quantify how many fields in a row have been filled by the user.
For instance:
User Name Age Country Gender Height 1 Mike 34 USA Male 6 2 Bill 23 CA 5 3 Jane 31 USA
In the above example, I would like to query the database and return a value that will correspond to the degree of completion of the user record. For instance:
User 1 = 100% complete User 2 = 80% complete User 3 = 60% complete
I wonder if this needs to be done through SQL statements or if you can query the database and calculate the degree of completion through the SQL PHP functions.
Any suggestions on how to do this? I am using PHP 5 (codeigniter) and SQL 5.0.77, but any roadmap would be greatly appreciated.
source share