我有個table分別有username,userid,supervisorid,hiredate,sal...當中hiredate係date format(即係dd/mmm/yyyy),想問下以下兩條問題用sql係點寫呀...???
Q1: Who were hire on the First of May, the Labour Day? Show their names & hiredates. (我唔知點可以只按月份同日期去找..??)
Q2: Show the employeeid, name, and their supervisorid & name.
(即係要做到下面咁既情況...)
Employee ID Supervisor Name ID
-------------------------------------------------
Peter 452 Ken 451
May 453 Peter 452
John 454 Ken 451
Candy 455 Peter 452
Sandy 456 May 453