SQL Language (MOSC)

MOSC Banner

How to calculate the number of parts lists and the total quantity of certain parts in these lists

edited Feb 22, 2023 11:02AM in SQL Language (MOSC) 9 comments


Hello,

is it possible to calculate in sql, in how many BOMs (parts lists) in total is a component (part) present and how many pieces of this part are present in all these BOMs (parts lists) ?

The output should, if possible, look something like this:

select component_no(article_no), 

  total quantity of parts lists where the article occurs as component, 

   total quantity of this component in all these parts lists

from parts_table

where some_condition


There is a BOM_table (part, component, quantity of component) also.

Maybe to get the two quantities one needs 2 database functions that receive the component_no as parameter?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center