SQL Language (MOSC)

MOSC Banner

calculate average cost

edited Apr 4, 2019 10:09AM in SQL Language (MOSC) 9 commentsAnswered

i want to calculate average cost

if i have data like

<span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">order_id </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">|</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> volume </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">|</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> price </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">|</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> type<br/>   </span><span class="lit" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #7d2727;">1</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; color: #303336;">|</span><span class="pln"

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