当前位置:网站首页>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
边栏推荐
- Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
- 山大网安靶场实验平台项目-个人记录(五)
- MySQL数据库 - 连接查询
- Golang timer
- Esp8266 - beginner level Chapter 1
- Audio signal processing and coding - 2.5.3 the discrete cosine transform
- Zero base to build profit taking away CPS platform official account
- 高效的串口循环Buffer接收处理思路及代码2
- MySQL数据库 - 数据库和表的基本操作(二)
- [transfer] summary of new features of js-es6 (one picture)
猜你喜欢
Esp8266 - beginner level Chapter 1
Scrum Patterns之理解各种团队模式
MySQL syntax collation
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Grafana 分享带可变参数的链接
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
【webrtc】Add x264 encoder for CEF/Chromium
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
随机推荐
HTTP cache - HTTP authoritative guide Chapter VII
MySQL数据库 - 单表查询(二)
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
[报告] Microsoft :Application of deep learning methods in speech enhancement
TI DSP的 FFT与IFFT库函数的使用测试
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Steps to build a deep learning environment GPU
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
Intuitive understanding of the essence of two-dimensional rotation
Strange problems in FrameLayout view hierarchy
NiO related Basics
Devops integration - environment variables and building tools of Jenkins service
Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
IIS data conversion problem: 16bit to 24bit
An idea of rendering pipeline based on FBO
php参考手册String(7.2千字)
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项