The relational tables PARTSUPP, LINEITEM, ORDERS implement a simple two- dimensional data cube. The relational tables PA

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

The relational tables PARTSUPP, LINEITEM, ORDERS implement a simple two- dimensional data cube. The relational tables PA

Post by answerhappygod »

The relational tables PARTSUPP, LINEITEM, ORDERS implement a
simple two- dimensional data cube. The relational tables PARTSUPP
and ORDERS implement the dimensions of parts supplied by suppliers
and orders. A relational table LINEITEM implements a fact entity of
a data cube.
Write HQL query for these 2
questions:
For each part list its key (PS_PARTKEY), all its available
quantities (PS_AVAILQTY), and summarized all available quantities.
List the results in the order of increasing results of
summarization. Consider only the parts with the keys 5, 10, 15, and
25.
For each part list its key (PS_PARTKEY), all its available
quantities (PS_AVAILQTY), and summarized all available quantities.
List the results in the order of increasing results of
summarization and supply costs (PS_SUPPLYCOST). Consider only the
parts with the keys 5, 10, 15, and 25.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply