I'll preface this by saying I'm pretty new in regards to SQL. I've looked for info on doing this, but haven't had much luck because I'm not exactly sure what I'm looking for or if it's even possible.
I'm trying to run a query against an order database. Within each record, I have a unit price and a qty. I was trying to run a query that would spit out a line item extended value by order. Such as....
select order_number Order, (unit_price * qty) Value
from order_line;
Outputting...
Order Value
===============
JRD76 $24.40
STY32 $78.27
etc
etc
I know the above syntax isn't "real", but I figured I should be able to do something along these lines, and just can't find the right way. Is it possible?
Thanks,
jdk