Hi,
I am working on small project for a local football (soccer) team. This admin of this program should enter all football games (both played or not yet). That data will be stored in a SQL DB.
The only problem I am facing is how make SQL accept NULL value for the teams score when is game is still not played yet. When the admin enters the game details (i.e. Team1, Team2, Date and time) SQL automatically puts "0" as the score for both teams while I set those fields to allow NULL values. I defined those two fields (for the score) as SmallInt.
Any suggestions.
Thanks and wish you a pleasant day.
I am working on small project for a local football (soccer) team. This admin of this program should enter all football games (both played or not yet). That data will be stored in a SQL DB.
The only problem I am facing is how make SQL accept NULL value for the teams score when is game is still not played yet. When the admin enters the game details (i.e. Team1, Team2, Date and time) SQL automatically puts "0" as the score for both teams while I set those fields to allow NULL values. I defined those two fields (for the score) as SmallInt.
Any suggestions.
Thanks and wish you a pleasant day.