Db2 Optimize for 1 Row Db2 is a relational database management system developed by IBM…