Statusas port script
This commit is contained in:
13
uv_app/contracts/bukle_by_sutarties_kodas.sql
Normal file
13
uv_app/contracts/bukle_by_sutarties_kodas.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
SELECT
|
||||
b.bukleid,
|
||||
b.sutartisid,
|
||||
s.sutartiesid AS sutarties_kodas,
|
||||
b.bukle,
|
||||
b.data,
|
||||
b.tscreated,
|
||||
b.ucreated,
|
||||
b.comments
|
||||
FROM public.bukle b
|
||||
JOIN public.sutartis s ON s.sutartisid = b.sutartisid
|
||||
WHERE s.sutartiesid = %s
|
||||
ORDER BY b.data, b.bukleid;
|
||||
Reference in New Issue
Block a user