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 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			585 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			585 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #
 | |
| # Test case migrated from regression test suite:
 | |
| # ./mysql/queries/working_ssb_compareLogOnly/ssb/q3.1.mod.sql
 | |
| #
 | |
| # Author: Susil, susil.behera@mariadb.com
 | |
| #
 | |
| 
 | |
| -- source ../include/have_columnstore.inc
 | |
| 
 | |
| USE ssb1;
 | |
| # Q3.1
 | |
| select c_nation, s_nation, d_year,
 | |
| sum(lo_revenue) as revenue
 | |
| from customer, supplier, dateinfo, lineorder		   # changed order
 | |
| where lo_custkey = c_custkey
 | |
| and lo_suppkey = s_suppkey
 | |
| and lo_orderdate = d_datekey
 | |
| and c_region = 'ASIA'
 | |
| and s_region = 'ASIA'
 | |
| and d_year >= 1992 and d_year <= 1997
 | |
| group by c_nation, s_nation, d_year
 | |
| order by d_year asc, revenue desc;
 |