当前位置:网站首页>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
边栏推荐
猜你喜欢
How to create bep-20 pass on BNB chain
MySQL syntax collation
Reflection on the performance of some OpenGL operations in the past
[报告] Microsoft :Application of deep learning methods in speech enhancement
精简CUDA教程——CUDA Driver API
MySQL syntax collation (2)
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
PHP reference manual string (7.2000 words)
Build intelligent garbage classification applet based on Zero
Intuitive understanding of the essence of two-dimensional rotation
随机推荐
指针数组与数组指针的区分
TI DSP的 FFT与IFFT库函数的使用测试
Thoughts on the optimization of examination papers in the examination system
Electron入门教程4 —— 切换应用的主题
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
Hot reload debugging
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
MFC obtains local IP (used more in network communication)
Shanda Wangan shooting range experimental platform project - personal record (IV)
Command - sudo
SRS 的部署
How to create bep-20 pass on BNB chain
Translation of audio signal processing and coding: Preface
Video understanding
Use test of FFT and IFFT library functions of TI DSP
NiO related Basics
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
如何在BNB链上创建BEP-20通证
kibana 报错 server is not ready yet 可能的原因
Pdf reference learning notes