So I have this table. How can I know which Staff has been here the longest?
create table Staff (
StaffId char(5) not null,
StaffName varchar(20) not null,
StaffPhone varchar(13),
StaffIc char(14),
JoinDate date,
primary key(StaffId),
constraint chk_StaffIc check (REGEXP_LIKE(StaffIc,'\d{6}\-\d{2}\-
\d{4}')),
constraint chk_StaffPhone check (REGEXP_LIKE(StaffPhone,'^01[0-9]-
\d{7}|\d{8}$'))
);