Hello everyone:
I need to answer this if else question in a sql query:
if status has changed from leave of absence (loa) to active
what is the enddate of the leave of absence (loa).
My MS sql database contains two table ebase and eemploy
there is one record for every employee in ebase and there could be many records for an employee in eemploy.
I'm stuck as to how to code it in sql since the row that I'm interested in eemploy is no longer the current row the active one is. Is there a way to handle this situation in sql.??
Any ideas are welcomed.
I need to answer this if else question in a sql query:
if status has changed from leave of absence (loa) to active
what is the enddate of the leave of absence (loa).
My MS sql database contains two table ebase and eemploy
there is one record for every employee in ebase and there could be many records for an employee in eemploy.
I'm stuck as to how to code it in sql since the row that I'm interested in eemploy is no longer the current row the active one is. Is there a way to handle this situation in sql.??
Any ideas are welcomed.