I have a case where I have a select that filters a dataset. I have it set the condition of the filter to have a value. However not all records have a value in that column. So it only shows null matches by default. The job Coach drop down sometimes has null values in it.
SO I think I need to do something like below but I don't know where or how to do it in the query builder or even if it will help
In MySQL, you can set a default value of 1 for columns that allow NULL values using the DEFAULT clause in your ALTER TABLE statement. Here’s how you can do it:
ALTER TABLE your_table_name
MODIFY column_name column_type DEFAULT 1;
Replace your_table_name with the actual name of your table and column_name with the column name you want to modify. column_type should be replaced with the data type of the column. This statement modifies the column to set a default value of 1 for new rows where the column value is NULL.