logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1557147 total)

Яку функцію виконує інструмент зображений на рисунку?

0%
0%
0%
0%
0%
Переглянути це питання
Catatonia refers to disturbances in
0%
0%
100%
0%
Переглянути це питання

Яку функцію виконує «активний» інструмент зображений на рисунку?

0%
100%
0%
0%
0%
Переглянути це питання

Which of the following statements best differentiates

factitious disorder from malingering?

0%
0%
100%
0%
Переглянути це питання
Avoidant Personality Disorder (PD) is different from Schizoid Personality Disorder in that:
100%
0%
0%
0%
Переглянути це питання
Alvin is schizophrenic. He has hallucinations, delusions, disturbed thinking, and bizarre behaviours. Alvin's symptoms would be described as
0%
0%
0%
0%
Переглянути це питання

Яку функцію виконує інструмент зображений на рисунку?

0%
0%
0%
0%
0%
Переглянути це питання
All of the following would be considered examples of positive symptoms of schizophrenia except:
100%
0%
0%
0%
Переглянути це питання

Digitaro adalah perusahaan fintech yang menerapkan sistem insentif otomatis berbasis jam kerja dan performa. Sistem mereka sangat tergantung pada trigger dan stored procedure yang kompleks, dengan skenario sebagai berikut:

  • Tabel employee memiliki kolom: ssn, name, salary, bonus, total_hours_project, dan performance_grade.
  • Tabel works_on memiliki kolom: essn, project_id, hours.
  • Setiap kali jam kerja dimasukkan, total_hours_project diperbarui otomatis.
  • Jika total_hours_project > 200, maka bonus otomatis diberikan sebesar 20% dari gaji pokok.
  • Jika performance_grade diubah menjadi "A", maka stored procedure akan memanggil prosedur pemberian bonus tambahan.
  • Terdapat trigger untuk menolak semua insert/update yang menyebabkan salary + bonus > 1.5 * (salary supervisor).

Jika terdapat trigger:

CREATE TRIGGER check_performance BEFORE UPDATE ON employee

FOR EACH ROW

WHEN (NEW.performance_grade = 'A')

EXECUTE FUNCTION bonus_check();

Dan terdapat function dengan nama bonus_check(), di mana dalamnya seperti ini:

IF NEW.bonus > 0 AND OLD.bonus = 0 THEN

RAISE EXCEPTION 'Bonus manipulation detected!';

END IF;

Apa potensi masalah yang terjadi dari kode diatas?

100%
0%
0%
0%
Переглянути це питання

Digitaro adalah perusahaan fintech yang menerapkan sistem insentif otomatis berbasis jam kerja dan performa. Sistem mereka sangat tergantung pada trigger dan stored procedure yang kompleks, dengan skenario sebagai berikut:

  • Tabel employee memiliki kolom: ssn, name, salary, bonus, total_hours_project, dan performance_grade.
  • Tabel works_on memiliki kolom: essn, project_id, hours.
  • Setiap kali jam kerja dimasukkan, total_hours_project diperbarui otomatis.
  • Jika total_hours_project > 200, maka bonus otomatis diberikan sebesar 20% dari gaji pokok.
  • Jika performance_grade diubah menjadi "A", maka stored procedure akan memanggil prosedur pemberian bonus tambahan.
  • Terdapat trigger untuk menolak semua insert/update yang menyebabkan salary + bonus > 1.5 * (salary supervisor).

Jika terdapat tiga trigger:

  • Trigger X: AFTER INSERT ON works_on ➝ Update total_hours_project
  • Trigger Y: AFTER UPDATE ON employee.total_hours_project ➝ Jalankan give_bonus() jika jam > 200
  • Trigger Z: BEFORE INSERT ON works_on ➝ Cek apakah jam yang ditambahkan valid (jam ≤ 12), kalau tidak raise exception

Apa yang mungkin terjadi jika ada query:

INSERT INTO works_on VALUES ('123', 'P5', 15);
0%
0%
0%
0%
Переглянути це питання