I have a land register table with several columns (some of them: id, address, city, proposal, etc.) and would like to count how many fields are empty.
For example, the table has a total of 44 columns, if you only have 20 fields filled in, the sql query should bring the result to 24, which are either blank or null.
Is it possible to do this?
He has to do the land search and must present the table so that the person knows how many fields he has not filled in and is missing:
ID terreno|camposembranco
1 | 5
2 | 2
3 | 0