开发者学堂课程【阿里云分析型数据库使用教程:本地客户端访问】学习笔记,与课程紧密联系,让用户快速学习知识。
课程地址:https://developer.aliyun.com/learning/course/87/detail/1343
本地客户端访问
内容介绍:
一、 应用系统连接阿里云分析型数据库
二、 执行
一、应用系统连接阿里云分析型数据库
可以使用的 BI 工具/客户端/连接库:
JDBC Mysql: 推荐使用 5.1.31 或 5.1.34
MySQL Connector/ODBC 3.51
Tableau 9.0+
Qlikview 10+
QlikSense
R(RMySQL)
Excel(PowerQuery via ODBC)
php-mysq| 5.1.x
.Net mysq| connector 6.9.6
SQL Workbench/J (推荐的客户端工具)
Kettle (表 输出- >MySQL,略微有不兼容但是不影响使用)
二、执行
select
n_ name,
sum(l_ extendedprice * (1 - l_ discount)) as revenuef rom
cus' tomer,l
orders,
lineitem,
supplier ,
nation,
region
where
c_ custkey = 0_ custkey
and l orderkey = 0_ orderkey
andl_ suppkey = s_ suppkey
and c_ nationkey = s_ nationkey
and s_ nationkey = n_ nat ionkey
and n_ regionkey = r_ regionkey
and r. name = " EUROPE
and 0_ orderdate >= date '1993-01-01 '
and 0_ orderdate < date '1993-01-01' + interval '1' yeargroup by
n_ name
order by
revenue desc
limit 1;