input: Write a function to select all rows from a table where the 'status' is 'approved'. If the input table is empty or no rows have 'status' as 'approved', the function should return an empty list.
  
  def select_approved_rows(cur):
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()
  
  assert select_approved_rows(cur) == [('John', 'approved'), ('Jane', 'approved')], "Test Case 1 Failed"
  assert select_approved_rows(cur) == [], "Test Case 2 Failed"
output: def select_approved_rows(cur):
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     rows = cur.fetchall()
     return rows if rows else []