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 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			537 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			537 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Test case migrated from regression test suite:
 | 
						|
# ./mysql/queries/working_ssb_compareLogOnly/ssb/q1.3.mod.sql
 | 
						|
#
 | 
						|
# Author: Susil, susil.behera@mariadb.com
 | 
						|
#
 | 
						|
 | 
						|
-- source ../include/have_columnstore.inc
 | 
						|
 | 
						|
USE ssb1;
 | 
						|
# Q1.3
 | 
						|
select sum(lo_extendedprice*lo_discount) as revenue
 | 
						|
from dateinfo, lineorder				   # changed order
 | 
						|
where lo_orderdate = d_datekey
 | 
						|
and d_weeknuminyear = 6
 | 
						|
and d_year = 1994
 | 
						|
and lo_orderdate between 19940101 and 19941231		   # added matching predicate
 | 
						|
and lo_discount between 5 and 7
 | 
						|
and lo_quantity between 26 and 35;
 |