I am a little confused in which way to handle this, I have a table called tbl_inv. It has 3 columns in it.
inv_skew
inv_skids
inv_date
I want to run a query and find out what percent of that skew is of the total value.
Example:
Lets just say there are 20 skews and that there are a total of 100 skids[sum(inv_skids)]. I want to find out what percent of the 100 skids are skew number: ZZZWER.
Skew:ZZZWER
Skid: 45
Percent: 45%
I'm not sure if I need to use the case command or a sub query, or what. Thank you in advance.
inv_skew
inv_skids
inv_date
I want to run a query and find out what percent of that skew is of the total value.
Example:
Lets just say there are 20 skews and that there are a total of 100 skids[sum(inv_skids)]. I want to find out what percent of the 100 skids are skew number: ZZZWER.
Skew:ZZZWER
Skid: 45
Percent: 45%
I'm not sure if I need to use the case command or a sub query, or what. Thank you in advance.