1.用一条SQL语句 查询出每门课都大于80分的学生姓名name kecheng fenshu张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90 CREATE TABLE [dbo].[chengji]( ) NULL, ) NULL, [fenshu] [int] NULL ) ON [PRIMARY] GO ) ) ) ) ) ) ) 检索语句: mysql); +------+ | name | +------+ | 王五 |…
给出数据库(sco)如下图: 查出每门课程成绩最高的学生 select b.id,b.kemu,b.name,b.chengji from (select kemu,max(chengji) maxc from sco group by kemu) a,sco b where a.kemu=b.kemu and a.maxc = b.chengji; 其中 select kemu,max(chengji) maxc from sco group by kemu 表示查出每科最高成绩和对应科目 查…
1.表结构: /*学生*/ create table student( sno int not null primary key, sname ) ); /*课程*/ create table center( cno int not null primary key, cname ) ); /*分数*/ create table sgrade( sno int , cno int , sgrade int ); 2.插入数据: ,'a'); ,'b'); ,'c') ,'aa'); ,'bb')…
最近发现一个网站 力扣 查看 上面有很多算法和数据库的题目,做了一下,发现自己平时都疏忽了,因此边做边记录下来 1.上升的温度 给定一个 Weather 表,编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 Id. +---------+------------------+------------------+ | Id(INT) | RecordDate(DATE) | Temperature(INT) | +---------+------------------…
erlang程序设计第八章练习题第二题: code:all_loaded()命令会返回一个由{Mod,File}对构成的列表,内含所有Erlang系统 载入的模块.使用内置函数Mod:module_info()了解这些模块.编写一些函数来找出哪个模块导出的函数最多,以及哪个函数名最常见.编写一个函数来找出所有不带歧义的函数名,也就是那些只在一个模块里出现过的函数名. 这里主要有三个问题: 1.哪个模块导出的函数最多 2.哪个函数名最常见 3.哪些函数只在一个模块出现 module_fun:fin…
SQL架构 Create table If Not Exists courses (student varchar(), )) Truncate table courses insert into courses (student, class) values ('A', 'Math') insert into courses (student, class) values ('B', 'English') insert into courses (student, class) values…
题:请列出所有超过或等于5名学生的课. 有一个courses 表 ,有: student (学生) 和 class (课程). 例如,表: +---------+------------+ | student | class | +---------+------------+ | A | Math | | B | English | | C | Math | | D | Biology | | E | Math | | F | Computer | | G | Math | | H | Mat…
题目链接:https://leetcode-cn.com/problems/classes-more-than-5-students/ 题目 有一个 courses 表 ,有: student (学生) 和 class (课程). 请列出所有超过或等于5名学生的课. 例如,表: +---------+------------+ | student | class | +---------+------------+ | A | Math | | B | English | | C | Math…
tensorflow学习笔记: 3.2 Tensorflow中定义数据流图 张量知识矩阵的一个超集. 超集:如果一个集合S2中的每一个元素都在集合S1中,且集合S1中可能包含S2中没有的元素,则集合S1就是S2的一个超集,反过来,S2是S1的子集. 张量形状: 固定长度: [],() 0阶次:[3],(2,3) 1/2阶次 不定长度:[None] 表示任意长度的向量,(None,3) 表示行数任意,3列的矩阵 获取Op:tf.shape(tensor, name="tensor_shape&qu…
2023 01 19 HW Okay, then let's start.  Okay. Maybe Karina, we start with the C2 design freeze. Yeah, of course we can start with that. Yeah, so about the workshop, I think Zorin, you already talked about it with Hans-Michel yesterday. So we booked ou…