Skip to content

Commit

Permalink
adjust select queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Dec 16, 2024
1 parent 404c8b9 commit b7f741b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
14 changes: 13 additions & 1 deletion static/sql/select_environment.sql
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
SELECT * FROM environments E;
SELECT
D.did,
PR.processing,
E.name AS environment_name,
E.version AS environment_version,
E.details AS environment_details,
E.create_by,
E.create_at,
E.modify_by,
E.modify_at
FROM environments E
LEFT JOIN processing PR on PR.environment_id=E.environment_id
LEFT JOIN datasets D on D.processing_id=PR.processing_id
14 changes: 13 additions & 1 deletion static/sql/select_osinfo.sql
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
SELECT * FROM osinfo O;
SELECT
D.did,
PR.processing,
O.name AS osinfo_name,
O.version AS osinfo_version,
O.kernel AS osinfo_kernel,
O.create_by,
O.create_at,
O.modify_by,
O.modify_at
FROM osinfo O
LEFT JOIN processing PR on PR.os_id=O.os_id
LEFT JOIN datasets D on D.processing_id=PR.processing_id
13 changes: 12 additions & 1 deletion static/sql/select_script.sql
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
SELECT * FROM scripts S;
SELECT
D.did,
PR.processing,
S.name AS script_name,
S.options AS script_options,
S.create_by,
S.create_at,
S.modify_by,
S.modify_at
FROM scripts S
LEFT JOIN processing PR on PR.script_id=S.script_id
LEFT JOIN datasets D on D.processing_id=PR.processing_id

0 comments on commit b7f741b

Please sign in to comment.