Suppose You have 100 field of data in a table and few data are mandatory and maximum can contain null values. So finally you have to write a sql query where you will find averange percentage number how much filed is filled up with data.
Example: 100 field has 75 data and 25 field don't have any data, are null. So you will find 75% as the result.
SELECT count(*) FROM information_schema.columns WHERE table_name = 'my_table_name'
this query return how much column in my_table_name, but you need to find from a single row.
More real example: All the student have 10 information on a table. Some of the student have no parent name, contact number. So you need to calculate invidual students filled up data percentage and don't count the null filled.