当前位置:网站首页>Database interim (I)
Database interim (I)
2022-07-27 01:18:00 【lzl_ 0408】
Student ( Student number , full name , major ); Course ( Course no. , Course name , credits ); Course selection ( Student number , Course no. , achievement ); |
Create table Course ( Course no. char(6), Course name varchar(30), credits decimal(2,1), Primary key ( Course no. ) ); |

| Π Student number (σ achievement <60( Course selection )) |
b) The result is less than 60 The student number of the student 、 full name ;
| Π Course selection . Student number , Student . full name (σ Course selection . Student number = Student . Student number ˄ Course selection . achievement <60( Course selection х Student )) |
| Π Student number ( Student ) - Π Student number ( Course selection ) |
Π Student number ( Course selection ) - Π Course selection . Student number (σ Course selection . achievement >s1. achievement (( Course selection ) х ρS1( Course selection ))) ——> When a table needs to be used twice , We must rename it to make a new table |
| Π Course selection . Course no. (σ Course selection . Course no. =s1. Course no. ˄ Course selection . Student number <>=s1. Student number (( Course selection ) хρS1( Course selection ))) |
Π Student number ( Course selection ) - Π Student number ( (Π Student number ( Student ) хΠ Course no. ( Course ) - Π Student number , Course no. ( Course selection ))) ——>Π Student number ( Student ) хΠ Course no. ( Course ) - Π Student number , Course no. ( Course selection ): Pair each student with all course numbers ( The practical significance of the generated new relationship is that each student has taken all courses ), Then subtract the actual course selection of each student recorded in the course selection table , The result is that there are only students who have not completed all courses . |
边栏推荐
- VSCode2015下编译darknet生成darknet.ext时error MSB3721:XXX已退出,返回代码为 1。
- 腾讯升级视频号小程序直播功能,腾讯持续推广直播的底气是这项叫视立方(MLVB)的技术
- 快来帮您一分钟了解移动互联网
- 李宏毅机器学习(2017版)_P6-8:梯度下降
- 数据库期中(二)
- Warning: IPv4 forwarding is disabled Networking will not work.
- In depth learning report (3)
- 快来帮你三分钟了解物联网
- In 2022, will there be opportunities for mobile Internet apps and short video live tracks?
- PlantCV中文文档
猜你喜欢

快来帮您一分钟了解移动互联网
![[CTF attack and defense world] questions about backup in the web area](/img/af/b78eb3522160896d77d9e82f7e7810.png)
[CTF attack and defense world] questions about backup in the web area

MySQL uses and implements ranking functions rank and deny_ Rank and row_ NUMBER

Spark ---- shuffle and partition of RDD

短视频App开发有哪些必备的功能?

MLVB 云直播新体验:毫秒级低延迟直播解决方案(附直播性能对比)

Li Hongyi machine learning (2017 Edition)_ P3-4: Regression

智密-腾讯云直播 MLVB 插件优化教程:六步提升拉流速度+降低直播延迟

Compile Darknet under vscode2015 to generate darknet Ext error msb3721: XXX has exited with a return code of 1.

李宏毅机器学习(2017版)_P5:误差
随机推荐
浅析ContentValues
李宏毅机器学习(2017版)_P6-8:梯度下降
DataNode Decommision
基于485总线的评分系统
力扣刷题量300记录帖
物联网将彻底改变制造业,你准备好了吗?
How can Tencent cloud live plug-in mlvb make use of these advantages to become the divine assistant of anchor Live Streaming?
Li Hongyi machine learning (2017 Edition)_ P13: deep learning
The dependency of POM file is invalid when idea imports external projects. Solution
10 - deploy MySQL on CentOS 7
Li Hongyi machine learning (2017 Edition)_ P14: back propagation
腾讯云直播插件MLVB如何借助这些优势成为主播直播推拉流的神助攻?
More than live streaming: what other eye-catching functions does Tencent cloud live mlvb plug-in have besides streaming / streaming
The setup of KEIL development environment is delivered to the installation package
Flinksql multi table (three table) join/interval join
How to open ads for profit after uni app develops apps and plug-ins: uni ad
并发编程之生产者消费者模式
Uni-app开发App和插件以后如何开通广告盈利:uni-AD
报错信息 WARNING: IPv4 forwarding is disabled. Networking will not work.
ADB shell screen capture command