Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL cvičení: rozklíčování VZ #235

Open
kokes opened this issue Oct 31, 2022 · 0 comments
Open

SQL cvičení: rozklíčování VZ #235

kokes opened this issue Oct 31, 2022 · 0 comments

Comments

@kokes
Copy link
Owner

kokes commented Oct 31, 2022

Jednoduchý výstup jen s přehledem zakázek, kde se teď budou otvírat obálky (chce to joiny na dodavatele atd.)

SELECT
	(odhadovana_hodnota_vz_bez_dph / 1e9)::numeric(10,
		2),
		otevirani_nabidek_datum_cas,
	datum_uverejneni,
	zadavatel_uredni_nazev,
	nazev_vz,
	druh_vz,
	strucny_popis_vz,
	id_zakazky,
	*
FROM
	zakazky.zzvz_vz
WHERE
	datum_uverejneni > now() - interval '6 months'
	and otevirani_nabidek_datum_cas between now() - interval '4 weeks' and now() + interval '4 weeks'
	and odhadovana_hodnota_vz_bez_dph > 1e9
ORDER BY
otevirani_nabidek_datum_cas desc nulls last
LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant