我有一张这样的桌子:
NAME, SURNAME, TIME_SESSION
John, White, Morning
John, White, Evening
Alexander, Black, Morning
Carl, Yellow, Morning
Carl, Yellow, Afternoon
James, Red, Morning
James, Red, Evening
我必须从该表中提取 time_session = 'Morning' 的所有元素,但不提取也具有 time_session='Evening' 或 time_session = 'Afternoon' 的记录。结果必须在此示例中:
Alexander, Black, Morning.
欢迎任何建议。