input: Write a function to select all rows from a table where the 'status' is 'approved'. This function should take the table name as an argument and return all rows that match the condition.
  
  def select_approved_rows(table_name):
     sql = f"SELECT * FROM {table_name} WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()
  
  assert select_approved_rows("orders")==[('order1', 'approved'), ('order2', 'approved')]
  assert select_approved_rows("payments")==[]
  assert select_approved_rows("customers")==[('cust1', 'approved'), ('cust2', 'approved'), ('cust3', 'approved')]
output: def select_approved_rows(table_name):
     sql = f"SELECT * FROM {table_name} WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()