PSLine2000Documentation/Queries/KBBLP1A0-8.md

2.1 KiB

KBBLP1A0-8

Analysis generated on: 4/2/2025 10:00:54 AM

SQL Statement

SELECT [RMSFILES#_KBBLP1A0].PRDNO, [RMSFILES#_KBBLP1A0].KBLWH, Left$([prdno],1) AS lpn, [RMSFILES#_KBBLP1A0].SSIZE1, [RMSFILES#_KBBLP1A0].SSIZE2, [RMSFILES#_KBBLP1A0].SSIZE3, [RMSFILES#_KBBLP1A0].SSIZE4, [RMSFILES#_KBBLP1A0].SSIZE5, [RMSFILES#_KBBLP1A0].BSIZE1, [RMSFILES#_KBBLP1A0].BSIZE2, [RMSFILES#_KBBLP1A0].BSIZE3, [RMSFILES#_KBBLP1A0].BSIZE4, [RMSFILES#_KBBLP1A0].BSIZE5, [RMSFILES#_KBBLP1A0].TSIZE1, [RMSFILES#_KBBLP1A0].TSIZE2, [RMSFILES#_KBBLP1A0].TSIZE3, [RMSFILES#_KBBLP1A0].TSIZE4, [RMSFILES#_KBBLP1A0].TSIZE5
FROM [RMSFILES#_KBBLP1A0]
WHERE (((Left$([prdno],1))="8"))
ORDER BY [RMSFILES#_KBBLP1A0].PRDNO;

Dependencies

Parameters

  • None

What it does

SQL Query Description

Purpose

This SQL query retrieves data from the RMSFILES#_KBBLP1A0 table, specifically records where the first digit of the prdno is '8'. The retrieved data includes various column values and calculates derived columns.

Columns Retrieved

The query selects the following columns:

  • PRDNO: The primary key of the record.
  • KBLWH: An unknown column value ( likely an abbreviation or alias for a more meaningful name).
  • lpn (Left$([prdno],1)): The first character of the prdno as a left-padded string.
  • SSIZE1, SSIZE2, SSIZE3, SSIZE4, SSIZE5: Unknown column values with varying names (likely sizes or quantities).
  • BSIZE1, BSIZE2, BSIZE3, BSIZE4, BSIZE5: Unknown column values with varying names (likely volumes or capacities).
  • TSIZE1, TSIZE2, TSIZE3, TSIZE4, TSIZE5: Unknown column values with varying names (likely times or durations).

Filtering Criteria

The query filters records based on the condition:

WHERE (((Left$([prdno],1))="8"))

This ensures that only records where the first character of the prdno is '8' are included in the results.

Sorting

The results are ordered by the PRDNO column:

ORDER BY [RMSFILES#_KBBLP1A0].PRDNO;

This allows for easier sorting and management of the filtered records.