# assume we have a db_cursor object in our code sql = “selec…