SELECT e.employee_id employee_id
FROM Employees e
LEFTJOIN Salaries s
ON e.employee_id=s.employee_id
WHERE s.employee_id isnullUNIONSELECT s.employee_id employee_id
FROM Salaries s
LEFTJOIN Employees e
ON e.employee_id=s.employee_id
WHERE e.employee_id isnullORDERBY employee_id
1.3 运行截图
2 每个产品在不同商品的价格
2.1 题目内容
2.1.1 基本题目信息
2.1.2 示例输入输出
2.2 示例sql语句
# 使用union all连接,包含重复行,常量就是在SELECT子句中写双引号SELECT product_id,"store1" store,store1 price
FROM Products
WHERE store1 isnotnullUNIONALLSELECT product_id,"store2" store,store2 price
FROM Products
WHERE store2 isnotnullUNIONALLSELECT product_id,"store3" store,store3 price
FROM Products
WHERE store3 isnotnull
2.3 运行截图
3 树节点
3.1 题目内容
3.1.1 基本题目信息
3.1.2 示例输入输出
3.2 示例sql语句
# not in匹配上了返回的值是1,casw when里面也是可以使用not in和子查询的SELECT id,casewhen p_id isnullthen"Root"when(id notin(selectdistinct p_id FROM tree WHERE p_id isnotnull))=1then"Leaf"else"Inner"endTypeFROM tree
ORDERBY id asc;
文章目录一、概念介绍1.接近实时(NRT Near Real Time )2.索引(index)3.类型(type)4.映射(mapping)5.文档(document)6.概念关系图二、Kibana的基本操作1.创建dangdang索引并创建product类型2.删除dangdang索引3.创建id为1的文档记录4.查询id为1的文档记录5.删除id为1的文档记录6…
es在linux环境安装遇到问题
1、启动失败日志
ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be con…