• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Forum Basis Data Kelas E & F
1.
 
The HR department needs to find high-salary and low-salary employees. Display the lastname and salary for any employee whose salary isnot in the range of $5,000 to $12,000. Give both the script & screenshot!
Terjemahan
 Departemen HR perlu mencari gaji karyawan tinggi dan gaji rendah. Tampilkan namabelakang dan gaji untuk setiap karyawan yang gajinya tidak dalam kisaran $ 5,000 sampai $12,000. Berikan script & screenshot
Script
 
select last_name, salaryfrom employeeswhere salary not between 5000 and 12000;
 2.
 
The HR department needs a report that displays the last name and hire date for all employeeswho were hired in 1994. Give both the script & screenshot!
 
terjemahannya: Departemen HR perlu laporan yang menampilkan nama terakhir dan tanggalmasuk untuk semua karyawan yang dipekerjakan pada tahun 1994. Berikan script &screenshot!
select last_name, hire_date from employeeswhere hire_date like '%94'
 3.
 
Display the last names of all employees who have both an "a" and an "e" in their last name.Give both the script & screenshot!terjemahan: Tampilan nama terakhir dari semua karyawan yang memiliki dua huruf "a" dan"e" dalam nama terakhir mereka. Berikan kedua script & screenshot!
select last_name from employeeswhere last_name like '%a' or last_name like '%e';
 4.
 
Display the last name, job, and salary for all employees whose jobs are either salesrepresentative or stock clerk and whose salaries are not equal to $2,500, $3,500, or $7,000.Give both the script & screenshot!
 
Tampilkan nama belakang, pekerjaan, dan gaji untuk semua karyawan yang pekerjaannyabaik pegawai perwakilan atau penjualan saham dan gaji yang tidak sama dengan $ 2.500, $3.500, atau $ 7.000. Berikan kedua script & screenshot!
select last_name, job_id, salaryfrom employeeswhere job_id in ('ST_CLERK','SA_REP')and salary not in (2500 ,3500, 7000)
 5.
 
Find the difference between the highest and lowest salaries. Label the columnDIFFERENCE. Give both the script & screenshot!Temukan perbedaan antara gaji tertinggi dan terendah. Label kolom DIFFERENCE. Berikankeduanya script & screenshot!
select max (salary), min (salary),max (salary) - min (salary) DIFFERENCESfrom employees;
 
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...