PSLine2000Documentation/Queries/Processes by material 2d.md

2.0 KiB

Processes by material 2d

Analysis generated on: 4/2/2025 10:06:38 AM

SQL Statement

SELECT [Processes by material 2c].ACTIV, [Processes by material 2c].Prtno AS PN INTO [Process by material 2]
FROM [Processes by material 2c] INNER JOIN [Processes by material] ON [Processes by material 2c].Prtno = [Processes by material].PartNumber
WHERE ((([Processes by material 2c].ACTIV)="1"));

Dependencies

  • None

Parameters

  • [Forms]![Material Upgrade]![txtMaterial] (Empty)

What it does

SQL Query Description

Purpose

This SQL query is designed to extract specific data from two tables, Processes by material 2c and Processes by material, based on certain conditions.

Table Selection

The query selects data from the following tables:

  • [Processes by material 2c]: This table appears to contain information about processes by material 2.
  • [Processes by material]: This table seems to contain general process information.
  • [Process by material 2]: The result of the query will be stored in this new table.

Join Operation

The query performs an inner join operation between the two tables, Processes by material 2c and Processes by material, based on a common column:

  • Prtno: This column is used to match rows between the two tables. In both tables, it appears to be the part number of the process.

Filtering Condition

The query applies a filtering condition to select only those processes with specific characteristics:

  • ACTIV = "1": The query selects only the processes where the value in the ACTIV column is equal to '1'.

Data Extraction

After joining and filtering, the query extracts two columns of interest from the joined data:

  • [Processes by material 2c].ACTIV: This column contains the values to be filtered.
  • [Processes by material].Prtno AS PN: This column extracts the part number (PN) from the Processes by material table and assigns it an alias 'PN'.

Result

The final result of the query is stored in a new table, [Process by material 2].