Share
Write a query using above tables to display the Emp_no, name and Experience ( in year and month)from joining date to current date.
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Write a query using above tables to display the Emp_no, name and Experience ( in year and month)from joining date to current date.
Answer ( 1 )
SQL> select employee.emp_no, emp_name, basic+DA-deduction as net_salary from employee,salary where employee.emp_no=salary.emp_no;
SQL> select employee.emp_no, emp_name, basic+DA-deduction as net_salary,extract(month from salary_date) from employee,salary where employee.emp_no=salary.emp_no;
Attachment