Data integrity is the rules which have been set in place by the developer of the software. Only specific types of data is allowed to be entered into the database or program.
The data should stay the same and up to date over the time the database or program is being used. Date integrity makes sure data can be easily searched , recovered and easily traced. Data integrity is defined by if the data is correct and accurate.
Data integrity can be protected by encryption, backup, access permissions read and write permissions. Input validation which prevents incorrect data from being entered.