Hello All,
I need help in How to skip the last record and output the second record an the rest. I greatly appreaciate any help.
This is what I have so far:
SELECT my_id, name, lastName, my_date, myTitle
FROM myRecords
where myTitle='supervisor'
order by ReleaseDate desc limit 3
table name myRecords
my_id name lastName my_date myTitle
1 John Smith 2006-02-08 00:00:00 supervisor
2 Frank White 2006-02-02 00:00:00 supervisor
3 susan jones 2006-01-08 00:00:00 manager
4 jane webster 2006-01-02 00:00:00 supervisor
5 gina beck 2005-12-08 00:00:00 supervisor
Desire output
2 Frank White 2006-02-02 00:00:00 supervisor
4 jane webster 2006-01-02 00:00:00 supervisor
5 gina beck 2005-12-08 00:00:00 supervisor
I need help in How to skip the last record and output the second record an the rest. I greatly appreaciate any help.
This is what I have so far:
SELECT my_id, name, lastName, my_date, myTitle
FROM myRecords
where myTitle='supervisor'
order by ReleaseDate desc limit 3
table name myRecords
my_id name lastName my_date myTitle
1 John Smith 2006-02-08 00:00:00 supervisor
2 Frank White 2006-02-02 00:00:00 supervisor
3 susan jones 2006-01-08 00:00:00 manager
4 jane webster 2006-01-02 00:00:00 supervisor
5 gina beck 2005-12-08 00:00:00 supervisor
Desire output
2 Frank White 2006-02-02 00:00:00 supervisor
4 jane webster 2006-01-02 00:00:00 supervisor
5 gina beck 2005-12-08 00:00:00 supervisor