Comments (1)
query14.sql 中包含了两个查询,前一个查询是正常的,后一个查询的语句有问题,删除后一个查询即可;
query14.sql的第二个查询及query58.sql中,的失败均因date_dim表的子查询返回了多条记录,加上limit 1即可;
mysql> select d_week_seq
-> from date_dim
-> where d_year = 1999 + 1
-> and d_moy = 12
-> and d_dom = 3;
+------------+
| d_week_seq |
+------------+
| 5266 |
| 5266 |
+------------+
2 rows in set (0.02 sec)
mysql>
(select 'store' channel, i_brand_id,i_class_id,i_category_id,
sum(ss_quantityss_list_price) sales, count() number_sales
from store_sales
,item
,date_dim
where ss_item_sk in (select ss_item_sk from cross_items)
and ss_item_sk = i_item_sk
and ss_sold_date_sk = d_date_sk
and d_week_seq = (select d_week_seq
from date_dim
where d_year = 1999 + 1
and d_moy = 12
and d_dom = 3 limit 1)
group by i_brand_id,i_class_id,i_category_id
having sum(ss_quantity*ss_list_price) > (select average_sales from avg_sales)) this_year
from doris.
Related Issues (20)
- [Bug] 通过mysql JDBC 删除记录,删除成功了,但是返回影响记录数为0
- [Feature] 期望支持webui,用来分析日志
- [Feature](test)Using Awaitility for Asynchronous Testing HOT 2
- [Bug] 根据官网教程run-docker-cluster,构建2.1.4的fe镜像,启动报错standard_init_linux.go:211: exec user process caused "no such file or directory" HOT 1
- [Bug] doris query hudi hudi_table_name_rt .NoSuchMethodError HOT 1
- [Bug] doris正常移除节点后,在添加回去,在show backends中无法发现节点
- [Bug] HOT 1
- [Enhancement] LakeSoul Catalog support Filter Pushdown & Cdc data handling & S3 data access
- [Feature] ranger audit support
- [Bug] query result's column name becomes value HOT 7
- [Bug] MySQL protocol cannot obtain decimal precision when SSL is enabled HOT 1
- [Bug] Doris create catalog fail with error setting certificate verify locations HOT 2
- [Bug] rename column with inverted index throw error
- 2.1.5 Release Notes
- [Bug] max_connection_scheduler_threads_num param .I can't find any description of this parameter in the 2.0 documentation
- [Bug] [streamLoader] There are null values in the imported data HOT 2
- [Bug] The value of timestamp type data obtained through arrow is incorrect. HOT 2
- [Bug] Doris on AWS CloudFormation template not working
- [Bug] How to efficiently query which data model does the following table belong to?
- [Feature] 期望Map 数据结构,也可以支持索引
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doris.