I have two tables users and admin which contains same column emp\_code.

I have a input field with button. I need to enter emp\_code in input field.I need to get the rows from two tables which contains emp\_code which i entered.

I need sql query to get the rows from two tables which contains emp\_code which i entered.