-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amended views
- Loading branch information
Showing
21 changed files
with
850 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000190.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
BIN
+0 Bytes
(100%)
b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar
Binary file not shown.
75 changes: 75 additions & 0 deletions
75
...android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000190.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.