Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get max price between different tables and the name of product

user12105537Jan 31 2021

Hi guys!
This is the first time that a post in this community and I am new working with Oracle SQL. I have a doubt about getting the max price and about the product, follow example:
I have 4 tables: Product, Computer(pc), Laptops and Printers
I doing a query to bring the result for the computers, laptops and printes tables using union function like:
Query.JPGBut I need to include the column "company" for the product table to show together with the columns to the others tables. Which form can I adjust the query to work the information? I need to bring on the result the columns Company, Serial Number and max Price on query.
Thanks in advance for all!

Comments
Post Details
Added on Jan 31 2021
5 comments
1,593 views