You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			470 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			470 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- $Id: q16-tpch15.sql 2657 2007-06-12 16:08:15Z rdempsey $
 | |
| -- 16th query in 100 GB stream0 (tpch15).
 | |
| 
 | |
| SELECT
 | |
|         S_SUPPKEY,
 | |
|         S_NAME,
 | |
|         S_ADDRESS,
 | |
|         S_PHONE,
 | |
|         TOTAL_REVENUE
 | |
| FROM
 | |
|         SUPPLIER,
 | |
|         REVENUE0
 | |
| WHERE
 | |
|         S_SUPPKEY = SUPPLIER_NO
 | |
|         AND TOTAL_REVENUE = (
 | |
|                 SELECT
 | |
|                         MAX(TOTAL_REVENUE)
 | |
|                 FROM
 | |
|                         REVENUE0
 | |
|         )
 | |
| ORDER BY
 | |
|         S_SUPPKEY;
 | |
| 
 |