Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Amended views
  • Loading branch information
C4J committed Apr 8, 2024
1 parent 9a42d26 commit 531f420
Show file tree
Hide file tree
Showing 21 changed files with 850 additions and 6 deletions.
Binary file modified b6/commander4j.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion b6/src/com/commander4j/app/JInternalFrameWTReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ public void actionPerformed(ActionEvent e)
jSpinnerLimit.setEditor(ne);
jSpinnerLimit.setModel(jSpinnerIntModel);
jSpinnerLimit.setBounds(906, 116, 68, 21);
jSpinnerLimit.setValue(1000);
jSpinnerLimit.setValue(2000);
jSpinnerLimit.getEditor().setSize(45, 21);
jDesktopPane1.add(jSpinnerLimit);
}
Expand Down
2 changes: 1 addition & 1 deletion b6/src/com/commander4j/app/JVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static Double getProgramVersionValue() {
}

public static int getSchemaVersion() {
return 189;
return 190;
}

}
8 changes: 4 additions & 4 deletions b6/src/com/commander4j/cfg/JFrameHostAdmin.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,12 @@ public JFrameHostAdmin()
{
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1187, 752);
setBounds(100, 100, 1203, 752);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
desktopPane.setBounds(0, 0, 1190, 762);
desktopPane.setBounds(0, 0, 1206, 762);
desktopPane.setBackground(Color.WHITE);
contentPane.add(desktopPane);

Expand Down Expand Up @@ -1846,14 +1846,14 @@ public void itemStateChanged(ItemEvent e)
});
desktopPane.add(jComboBoxCharSet);

progressBar.setBounds(0, 661, 1185, 28);
progressBar.setBounds(0, 661, 1206, 28);
progressBar.setBackground(Color.WHITE);
progressBar.setForeground(Color.BLUE);
desktopPane.add(progressBar);
labelCommand.setForeground(Color.RED);
labelCommand.setFont(Common.font_std);

labelCommand.setBounds(0, 691, 1183, 23);
labelCommand.setBounds(0, 691, 1206, 23);
labelCommand.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
desktopPane.add(labelCommand);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DDL SYSTEM "schema.dtd">
<DDL>

<statement>
DROP VIEW view_weight_samples3
</statement>

<statement>
CREATE VIEW view_weight_samples3 AS SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
CAST([APP_WEIGHT_SAMPLE_HEADER].[SAMPLE_DATE] AS date) AS SAMPLE_DATE_SHORT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT - APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT AS NET,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT,
APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER,
APP_WEIGHT_SAMPLE_HEADER.MATERIAL,
APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP,
APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
</statement>

<statement>
DROP VIEW view_weight_samples4
</statement>

<statement>
CREATE VIEW view_weight_samples4 AS
SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
MIN( APP_WEIGHT_SAMPLE_HEADER.MATERIAL ) AS MATERIAL,
MIN( APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER ) AS PROCESS_ORDER,
MIN( APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP ) AS PRODUCT_GROUP,
MIN( APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE ) AS CONTAINER_CODE,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT ) AS NOMINAL_WEIGHT,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM ) AS NOMINAL_WEIGHT_UOM,
CAST( AVG( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS MEAN_WEIGHT,
CAST( STDEV( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS STANDARD_DEVIATION,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT ) AS SAMPLE_T1_COUNT,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT ) AS SAMPLE_T2_COUNT,
COUNT( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE ) AS NO_OF_SAMPLES
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
GROUP BY
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT
</statement>

</DDL>
68 changes: 68 additions & 0 deletions b6/xml/schema/com.mysql.cj.jdbc.Driver/000190.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DDL SYSTEM "schema.dtd">
<DDL>

<statement>
CREATE OR REPLACE VIEW `view_weight_samples3` AS SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
CAST( `APP_WEIGHT_SAMPLE_HEADER`.`SAMPLE_DATE` AS DATE ) AS `SAMPLE_DATE_SHORT`,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT - APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT AS NET,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT,
APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER,
APP_WEIGHT_SAMPLE_HEADER.MATERIAL,
APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP,
APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
</statement>

<statement>
CREATE OR REPLACE VIEW view_weight_samples4 as
SELECT
`app_weight_sample_detail`.SAMPLE_DATE,
`app_weight_sample_detail`.SAMPLE_POINT,
MIN( `app_weight_sample_header`.MATERIAL ) AS MATERIAL,
MIN( `app_weight_sample_header`.PROCESS_ORDER ) AS PROCESS_ORDER,
MIN( `app_weight_sample_header`.PRODUCT_GROUP ) AS PRODUCT_GROUP,
MIN( `app_weight_sample_header`.CONTAINER_CODE ) AS CONTAINER_CODE,
MIN( `app_weight_sample_header`.NOMINAL_WEIGHT ) AS NOMINAL_WEIGHT,
MIN( `app_weight_sample_header`.NOMINAL_WEIGHT_UOM ) AS NOMINAL_WEIGHT_UOM,
CAST( AVG( `app_weight_sample_detail`.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS MEAN_WEIGHT,
CAST( STDDEV( `app_weight_sample_detail`.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS STANDARD_DEVIATION,
SUM( `app_weight_sample_detail`.SAMPLE_T1_COUNT ) AS SAMPLE_T1_COUNT,
SUM( `app_weight_sample_detail`.SAMPLE_T2_COUNT ) AS SAMPLE_T2_COUNT,
COUNT( `app_weight_sample_detail`.SAMPLE_SEQUENCE ) AS NO_OF_SAMPLES
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
`app_weight_sample_detail`.SAMPLE_POINT > ''
AND `app_weight_sample_header`.PROCESS_ORDER > ''
AND `app_weight_sample_header`.MATERIAL > ''
AND `app_weight_sample_detail`.SAMPLE_GROSS_WEIGHT > 0
GROUP BY
`app_weight_sample_detail`.SAMPLE_DATE,
`app_weight_sample_detail`.SAMPLE_POINT
</statement>


</DDL>
68 changes: 68 additions & 0 deletions b6/xml/schema/oracle.jdbc.driver.OracleDriver/000190.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DDL SYSTEM "schema.dtd">
<DDL>

<statement>
CREATE OR REPLACE VIEW view_weight_samples3 AS SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
CAST(APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE as date) AS SAMPLE_DATE_SHORT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT - APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT AS NET,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT,
APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER,
APP_WEIGHT_SAMPLE_HEADER.MATERIAL,
APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP,
APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
</statement>

<statement>
CREATE OR REPLACE VIEW view_weight_samples4 AS
SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
MIN( APP_WEIGHT_SAMPLE_HEADER.MATERIAL ) AS MATERIAL,
MIN( APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER ) AS PROCESS_ORDER,
MIN( APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP ) AS PRODUCT_GROUP,
MIN( APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE ) AS CONTAINER_CODE,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT ) AS NOMINAL_WEIGHT,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM ) AS NOMINAL_WEIGHT_UOM,
CAST( AVG( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS MEAN_WEIGHT,
CAST( STDDEV( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS STANDARD_DEVIATION,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT ) AS SAMPLE_T1_COUNT,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT ) AS SAMPLE_T2_COUNT,
COUNT( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE ) AS NO_OF_SAMPLES
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
GROUP BY
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT
</statement>


</DDL>
Binary file modified b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DDL SYSTEM "schema.dtd">
<DDL>

<statement>
DROP VIEW view_weight_samples3
</statement>

<statement>
CREATE VIEW view_weight_samples3 AS SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
CAST([APP_WEIGHT_SAMPLE_HEADER].[SAMPLE_DATE] AS date) AS SAMPLE_DATE_SHORT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT - APP_WEIGHT_SAMPLE_HEADER.TARE_WEIGHT AS NET,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT,
APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT,
APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER,
APP_WEIGHT_SAMPLE_HEADER.MATERIAL,
APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP,
APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
</statement>

<statement>
DROP VIEW view_weight_samples4
</statement>

<statement>
CREATE VIEW view_weight_samples4 AS
SELECT
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT,
MIN( APP_WEIGHT_SAMPLE_HEADER.MATERIAL ) AS MATERIAL,
MIN( APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER ) AS PROCESS_ORDER,
MIN( APP_WEIGHT_SAMPLE_HEADER.PRODUCT_GROUP ) AS PRODUCT_GROUP,
MIN( APP_WEIGHT_SAMPLE_HEADER.CONTAINER_CODE ) AS CONTAINER_CODE,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT ) AS NOMINAL_WEIGHT,
MIN( APP_WEIGHT_SAMPLE_HEADER.NOMINAL_WEIGHT_UOM ) AS NOMINAL_WEIGHT_UOM,
CAST( AVG( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS MEAN_WEIGHT,
CAST( STDEV( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_NET_WEIGHT ) AS DECIMAL ( 10, 4 )) AS STANDARD_DEVIATION,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T1_COUNT ) AS SAMPLE_T1_COUNT,
SUM( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_T2_COUNT ) AS SAMPLE_T2_COUNT,
COUNT( APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_SEQUENCE ) AS NO_OF_SAMPLES
FROM
APP_WEIGHT_SAMPLE_DETAIL
LEFT JOIN APP_WEIGHT_SAMPLE_HEADER
ON (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_POINT = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT)
AND (APP_WEIGHT_SAMPLE_HEADER.SAMPLE_DATE = APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE)
WHERE
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT > ''
AND APP_WEIGHT_SAMPLE_HEADER.PROCESS_ORDER > ''
AND APP_WEIGHT_SAMPLE_HEADER.MATERIAL > ''
AND APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_GROSS_WEIGHT > 0
GROUP BY
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_DATE,
APP_WEIGHT_SAMPLE_DETAIL.SAMPLE_POINT
</statement>

</DDL>
Loading

0 comments on commit 531f420

Please sign in to comment.