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 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			510 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			510 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #
 | |
| # Test case migrated from regression test suite:
 | |
| # ./mysql/queries/working_ssb_compareLogOnly/ssb/q2.3.mod.sql
 | |
| #
 | |
| # Author: Susil, susil.behera@mariadb.com
 | |
| #
 | |
| 
 | |
| -- source ../include/have_columnstore.inc
 | |
| 
 | |
| USE ssb1;
 | |
| # Q2.3
 | |
| select sum(lo_revenue), d_year, p_brand1
 | |
| from part, supplier, dateinfo, lineorder		   # changed order
 | |
| where lo_orderdate = d_datekey
 | |
| and lo_partkey = p_partkey
 | |
| and lo_suppkey = s_suppkey
 | |
| and p_brand1= 'MFGR#2239'
 | |
| and s_region = 'EUROPE'
 | |
| group by d_year, p_brand1
 | |
| order by d_year, p_brand1;
 |