Minulé, aktuální a budoucí tarify (sestava): Porovnání verzí
Z Prirucky
| Řádek 4: | Řádek 4: | ||
== Definice == | == Definice == | ||
* Úprava - výraz ''TM.id = 3'' je potřeba upravit - změnit číslo dle konkrétní databáze (<small>select id from timer_sez where tabulka = 'prac_pom' and polozka = 'tarif';</small>) | |||
<small> | <small> | ||
SELECT A.os_cislo, A.prijmeni, A.jmeno, B.cislo_pom, B.pov_funkce, PM.naz_pracmist, B.datum_nastupu, B.datum_ukonc, B.tarif as tarif_akt, B.min_zakl as tarif_minul, | SELECT A.os_cislo, A.prijmeni, A.jmeno, B.cislo_pom, B.pov_funkce, PM.naz_pracmist, B.datum_nastupu, B.datum_ukonc, B.tarif as tarif_akt, B.min_zakl as tarif_minul, | ||
(select max(hodnota) from timer_data TM where TM.os_cislo = B.os_cislo and TM.cislo_pom = B.cislo_pom and TM.id = 3 and TM.plati_od >= %DATUMOD%) as tarif_bud_max, B.trida as trida_akt | (select max(hodnota) from timer_data TM where TM.os_cislo = B.os_cislo and TM.cislo_pom = B.cislo_pom and TM.id = 3 and TM.plati_od >= %DATUMOD%) as tarif_bud_max, | ||
B.trida as trida_akt | |||
from pracovnici A, prac_pom B left outer join prac_mist PM on B.id_pracmist = PM.id_pracmist where A.os_cislo = B.os_cislo; | from pracovnici A, prac_pom B left outer join prac_mist PM on B.id_pracmist = PM.id_pracmist where A.os_cislo = B.os_cislo; | ||
</small> | </small> | ||
| Řádek 12: | Řádek 14: | ||
== Odkazy == | == Odkazy == | ||
* [[Generátor sestav II (příklady sestav)]] | * [[Generátor sestav II (příklady sestav)]] | ||
* <small>(hd 79 225)</small> | |||
__NOTOC__ | __NOTOC__ | ||
Aktuální verze z 8. 9. 2025, 14:50
Minulé, aktuální a budoucí tarify (sestava) je sestava pro Generátor sestav II. Období zadává uživatel v poli Od.
Definice
- Úprava - výraz TM.id = 3 je potřeba upravit - změnit číslo dle konkrétní databáze (select id from timer_sez where tabulka = 'prac_pom' and polozka = 'tarif';)
SELECT A.os_cislo, A.prijmeni, A.jmeno, B.cislo_pom, B.pov_funkce, PM.naz_pracmist, B.datum_nastupu, B.datum_ukonc, B.tarif as tarif_akt, B.min_zakl as tarif_minul, (select max(hodnota) from timer_data TM where TM.os_cislo = B.os_cislo and TM.cislo_pom = B.cislo_pom and TM.id = 3 and TM.plati_od >= %DATUMOD%) as tarif_bud_max, B.trida as trida_akt from pracovnici A, prac_pom B left outer join prac_mist PM on B.id_pracmist = PM.id_pracmist where A.os_cislo = B.os_cislo;
Odkazy
- Generátor sestav II (příklady sestav)
- (hd 79 225)
