当前位置:网站首页>Mysql database - connection query
Mysql database - connection query
2022-04-23 19:42:00 【X heart】
The first 1 Turn off : Internal connection query
USE School;
########## Query the students' names and corresponding classes in the data table ##########
# Please add the implementation code here
########## Begin ##########
select tb_student.name as studentName,tb_class.name as className from tb_student inner join tb_class on tb_student.class_id = tb_class.id;
########## End ##########
The first 2 Turn off : External connection query
USE School;
########## Use the left outer connection to query the names of all students and the corresponding classes ##########
# Please add the implementation code here
########## Begin ##########
select tb_student.name as studentName,tb_class.name as className from tb_student left join tb_class on tb_student.class_id = tb_class.id;
select tb_student.name as studentName,tb_class.name as className from tb_student right join tb_class on tb_student.class_id = tb_class.id;
########## End ##########
########## Use the right external connection to query all student names and corresponding classes ##########
# Please add the implementation code here
########## Begin ##########
########## End ##########
The first 3 Turn off : Composite conditional join query
USE School;
########## Check the scores of all classes in 90 The name of the student with a score of above, the student's grade and the class in which the student belongs ##########
# Please add the implementation code here
########## Begin ##########
select tb_student.name as studentName,tb_student.score, tb_class.name as className from tb_student join tb_class on tb_student.class_id =tb_class.id where score > 90 ;
########## End ##########
版权声明
本文为[X heart]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231927030753.html
边栏推荐
- Efficient serial port cyclic buffer receiving processing idea and code 2
- 深度学习环境搭建步骤—gpu
- 如何在BNB链上创建BEP-20通证
- MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
- Main differences between go and PHP
- 指针数组与数组指针的区分
- Class loading process of JVM
- 命令-sudo
- MySQL syntax collation (5) -- functions, stored procedures and triggers
- Reflection on the performance of some OpenGL operations in the past
猜你喜欢
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
Application of DCT transform
Audio signal processing and coding - 2.5.3 the discrete cosine transform
First experience of using fluent canvas
PHP reference manual string (7.2000 words)
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
@Mapperscan and @ mapper
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
山大网安靶场实验平台项目-个人记录(五)
随机推荐
基于pytorch搭建GoogleNet神经网络用于花类识别
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
Grafana 分享带可变参数的链接
5 minutes to achieve wechat cloud applet payment function (including source code)
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
ESP8266-入门第一篇
Intuitive understanding of the essence of two-dimensional rotation
一个简单的(基于redisson的)分布式同步工具类封装
Virtual machine performance monitoring and fault handling tools
Garbage collector and memory allocation strategy
如何在BNB鏈上創建BEP-20通證
Go modules daily use
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
Kubernetes getting started to proficient - install openelb on kubernetes
Building googlenet neural network based on pytorch for flower recognition
Class loading mechanism
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Inject Autowired fields into ordinary beans
A simple (redisson based) distributed synchronization tool class encapsulation