← All tables and views

Employees (browser edition) view

dept_emp_latest_date

Native view in the Employees (browser edition) sample database.

1,024rows

3 columns

Schema from the provider contract
ColumnTypeNullableKeyReferences
emp_noyes——
from_dateyes——
to_dateyes——

View definition

CREATE VIEW dept_emp_latest_date AS
              SELECT emp_no, MAX(from_date) AS from_date, MAX(to_date) AS to_date
              FROM dept_emp GROUP BY emp_no

Data preview

Sample records

1,024 rows available
emp_nofrom_dateto_date
100011986-06-269999-01-01
100021996-08-039999-01-01
100031995-12-039999-01-01
100041986-12-019999-01-01
100051989-09-129999-01-01
100061990-08-059999-01-01
100071989-02-109999-01-01
100081998-03-112000-07-31