Overview
As mentioned in Advanced Query Builder guide, a customer's demand for custom reporting can be fulfilled using Advanced Query Builder with SQL statements. The steps below represent a use case you will find useful while working on a custom report with an SQL statement.
Requirements
An inventory report based on the part number value. The client is mainly using the vendor part number in their daily processes. Include the following fields: item code, part number, item description, bin location, bin description, bin stock, total available stock.
Step-By-Step Guide
- Login to the Everest platform.
-
Open Utility menu.
-
Click Advanced Query Builder to open Builder application.
-
Open SQL Statement tab.
-
Paste your SQL query into the text field. In our example, it will be the following query:
SELECT
i.itemno AS Item_Code,
irv.VENDOR_PART_NO AS Part_Number,
i.descript AS Description,
x.area_code AS Bin,
s.descript AS Bin_descript,
x.q_stk AS Bin_stock,
i.qty_stk - i.q_on_reser AS Available_stock
FROM
items i
INNER JOIN x_stk_area x WITH (NOLOCK) ON (i.ITEMNO = x.ITEM_NO)
INNER JOIN ITEM_REPLENISH_VENDOR irv WITH (NOLOCK) ON (i.ITEMNO = irv.ITEM_CODE)
INNER JOIN stk_area s WITH (NOLOCK) ON (x.area_code = s.area_code)
WHERE
x.area_code = :areacode
GROUP BY
i.itemno,
x.AREA_CODE,
s.descript,
irv.VENDOR_PART_NO,
i.descript,
i.qty_stk,
i.q_on_reser,
x.q_stk,
x.Q_ON_RESERVE_COMM
In order to accept inputs from the users, we use ':', followed by the field name e.g. ":areacode".
-
Press Update SQL button to verify the query (Note that it will further apply all modifications).
- Open Browser Settings tab.
- Select available primary key from the Primary Key drop-down menu. It which will be used to sort out the filter results.
- Input report name into the Filter Name field.
- Press Save button.
Confirmation
-
Press Find button to run the report you have created. It will should prompt to enter input values.
- Input value.
- Press OK. The report should be generated.
Comments
0 comments
Article is closed for comments.