exam-select-max-id-by-team_name-and-topic.sql 88 B

123456
  1. select id
  2. from exam
  3. where team_name = ?
  4. and topic = ?
  5. order by begin_time desc
  6. limit 1