Skip to content

TPC-H Data Vault Query Templates

TPC-H Data Vault overview

Representative SQL and DataFrame renderings for each of the 22 TPC-H Data Vault queries. Every page also shows how to extract the exact query for a given platform and scale.

TPC Benchmark, TPC-H, TPC-DS, and TPC-DI are trademarks of the Transaction Processing Performance Council. Query text shown here is derived from TPC materials.

QueryName
Q1Pricing Summary Report
Q2Minimum Cost Supplier
Q3Shipping Priority
Q4Order Priority Checking
Q5Local Supplier Volume
Q6Forecasting Revenue Change
Q7Volume Shipping
Q8National Market Share
Q9Product Type Profit Measure
Q10Returned Item Reporting
Q11Important Stock Identification
Q12Shipping Modes and Order Priority
Q13Customer Distribution
Q14Promotion Effect
Q15Top Supplier
Q16Parts/Supplier Relationship
Q17Small-Quantity-Order Revenue
Q18Large Volume Customer
Q19Discounted Revenue
Q20Potential Part Promotion
Q21Suppliers Who Kept Orders Waiting
Q22Global Sales Opportunity