diff --git a/static/sql/select_environment.sql b/static/sql/select_environment.sql index eb82ae2..df37af9 100644 --- a/static/sql/select_environment.sql +++ b/static/sql/select_environment.sql @@ -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 diff --git a/static/sql/select_osinfo.sql b/static/sql/select_osinfo.sql index d46a770..c291e8a 100644 --- a/static/sql/select_osinfo.sql +++ b/static/sql/select_osinfo.sql @@ -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 diff --git a/static/sql/select_script.sql b/static/sql/select_script.sql index 6b37106..ecbde20 100644 --- a/static/sql/select_script.sql +++ b/static/sql/select_script.sql @@ -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