iansaimima

Query MySQL

Oct 16th, 2025
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.80 KB | None | 0 0
  1. select
  2.     e.employee_number_formatted `ID`,
  3.     e.name `Nama`,
  4.     c.contract_type `Contract Type`,
  5.     e.date_of_birth `Tgl. Lahir`,
  6.     c.payroll_period `Payroll Period`,
  7.     c.base_salary `Gaji Pokok`,
  8.     c.lembur_type `Tipe Lembur`,
  9.     c.lembur_index `Index Lembur`,
  10.     c.allowance_json `Tunjangan`,
  11.     c.allowance_extra_json `Tunjangan Extra`,
  12.    
  13.     c.enabled_salary_site `Gaji Site Aktif ?`,
  14.     c.base_salary_site `Gaji Pokok Site`,
  15.     c.allowance_site_json `Tunjangan di Site`,
  16.     c.allowance_site_standby_json `Tunjuangan Standby Site`
  17. from contract as c
  18. left join employee as e on c.employee_id = e.id
  19. where
  20.     c.end_date > now() and
  21.     c.is_approved = 1 and
  22.     c.is_confirmed = 1 and
  23.     c.is_rejected = 0 and
  24.     c.is_terminated = 0 and
  25.     c.cache_is_terminated = 0;
  26. ;
Advertisement
Add Comment
Please, Sign In to add comment