Database System: A database refers to an electronically preserved and accessible set of data. The…