Hi all,
I have this information
employee(status Integer not null,
pay_rate numeric Not null,
payment_id integer not Null,
checkIn timestamp without time zone Not null,
checkOut timestamp without time zone Not null,
employee_id integer Not null);
I want calculate the salary of employees in a month (given by user) and write them to a new table called Payment.
I tried to use Select extract(epoch....) approach but I could not display the total work hours for each employee in format of hours(not timestamp format) so that i can time it with "pay_rate" to find the salary.
How can i write them to a new table?
Please help.
Thanks.
I have this information
employee(status Integer not null,
pay_rate numeric Not null,
payment_id integer not Null,
checkIn timestamp without time zone Not null,
checkOut timestamp without time zone Not null,
employee_id integer Not null);
I want calculate the salary of employees in a month (given by user) and write them to a new table called Payment.
I tried to use Select extract(epoch....) approach but I could not display the total work hours for each employee in format of hours(not timestamp format) so that i can time it with "pay_rate" to find the salary.
How can i write them to a new table?
Please help.
Thanks.