79 lines
2.8 KiB
Markdown
79 lines
2.8 KiB
Markdown
# KBBLP1A0-9
|
|
Analysis generated on: 4/2/2025 10:01:00 AM
|
|
---
|
|
## SQL Statement
|
|
```sql
|
|
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))="9"))
|
|
ORDER BY [RMSFILES#_KBBLP1A0].PRDNO;
|
|
|
|
```
|
|
## Dependencies
|
|
- [[Tables/[RMSFILES__KBBLP1A0]]]
|
|
## Parameters
|
|
- *None*
|
|
## What it does
|
|
**SQL Query Description**
|
|
==========================
|
|
|
|
### Overview
|
|
|
|
This SQL query retrieves specific data from a table named `RMSFILES#_KBBLP1A0`. The query filters the results based on certain conditions and orders them by a specific column.
|
|
|
|
### Selected Columns
|
|
|
|
The query selects the following columns:
|
|
|
|
* `[RMSFILES#_KBBLP1A0].PRDNO`
|
|
* `[RMSFILES#_KBBLP1A0].KBLWH` (not used in this query)
|
|
* `Left$([prdno],1)` as `lpn` (first character of `prdno`)
|
|
* Size-related columns:
|
|
+ `[RMSFILES#_KBBLP1A0].SSIZE1` to `[RMSFILES#_KBBLP1A0].SSIZE5`
|
|
+ `[RMSFILES#_KBBLP1A0].BSIZE1` to `[RMSFILES#_KBBLP1A0].BSIZE5`
|
|
+ `[RMSFILES#_KBBLP1A0].TSIZE1` to `[RMSFILES#_KBBLP1A0].TSIZE5`
|
|
|
|
### Filtering Conditions
|
|
|
|
The query filters the results based on the following conditions:
|
|
|
|
* The first character of `prdno` (`Left$([prdno],1)`) must be equal to `'9'`.
|
|
|
|
### Ordering Results
|
|
|
|
The query orders the filtered results by `[RMSFILES#_KBBLP1A0].PRDNO` in ascending order.
|
|
|
|
### Table Name and Alias
|
|
|
|
The query references a table named `RMSFILES#_KBBLP1A0`, with an alias `RMSFILES#_KBBLP1A0`.
|
|
|
|
**SQL Query Code**
|
|
```markdown
|
|
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))="9"))
|
|
ORDER BY
|
|
[RMSFILES#_KBBLP1A0].PRDNO;
|
|
```
|
|
Note: The `Left$` function is likely a custom function that returns the first character of a string. If this is not the case, please provide more information about the database and its functions.
|