You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			512 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			512 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Test case migrated from regression test suite:
 | 
						|
# ./mysql/queries/working_ssb_compareLogOnly/ssb/q2.1.mod.sql
 | 
						|
#
 | 
						|
# Author: Susil, susil.behera@mariadb.com
 | 
						|
#
 | 
						|
 | 
						|
-- source ../include/have_columnstore.inc
 | 
						|
 | 
						|
USE ssb1;
 | 
						|
# Q2.1
 | 
						|
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_category = 'MFGR#12'
 | 
						|
and s_region = 'AMERICA'
 | 
						|
group by d_year, p_brand1
 | 
						|
order by d_year, p_brand1;
 |