Write a query that selects and assigns aliases to the specified details of an employee. The query should output the following information with the given aliases:
First name as
first_namewith the value 'John'Second name as
second_namewith the value 'Jeffrey'Salary as
salarywith the value 20000Department as
departmentwith the value 'IT'