PSLine2000Documentation/Queries/Shear Trim Cut.md

54 lines
1.5 KiB
Markdown

# Shear Trim Cut
Analysis generated on: 4/2/2025 10:11:32 AM
---
## SQL Statement
```sql
SELECT Process.BotTrimCut, Process.PartNumber
FROM Process
WHERE (((Process.BotTrimCut)=2))
ORDER BY Process.PartNumber;
```
## Dependencies
- [[Tables/Process]]
## Parameters
- *None*
## What it does
**SQL Query Description**
==========================
### Purpose
This SQL query retrieves specific information from the `Process` table based on certain conditions.
### Conditions
The query filters records where the value of `BotTrimCut` is equal to 2.
### Retrieved Columns
The query selects two columns:
* `BotTrimCut`: The trimmed cut associated with each process.
* `PartNumber`: The part number associated with each process.
### Filtering and Sorting
The query applies a filter on the `Process` table based on the condition specified. The filtered results are then sorted in ascending order by the `PartNumber`.
### Query Output
The output of this query will be a list of rows, each containing the corresponding values for `BotTrimCut` and `PartNumber`, where `BotTrimCut` is equal to 2.
**Example Output**
-----------------
| BotTrimCut | PartNumber |
|-------------|------------|
| 2 | [part number] |
### Notes
* The exact data type of the columns (`BotTrimCut` and `PartNumber`) is not specified, but based on common practices, it's assumed that they are numeric or string types.
* This query does not include any aggregation functions (e.g., GROUP BY, SUM, AVG) and only returns individual rows.