范文无忧网面试笔试面试回答

数据库面试题有四个表Student表 Course表 Score表 Teacher表

02月22日 编辑 fanwen51.com

[student 面试自我介绍英文范文]good morning, my name is jack, it is really a great honor to he this opportunity for an interview, I would like to answer whatever you may raise, and I hope I c...+阅读

1.select 英语.学号from Score 英语left join ( select 学号,课程代码,成绩 from Score where 课程代码='数学课程代码') as 数学on 英语.学号=数学.学号where 英语.课程代码='英语课程代码' and 英语.成绩>数学.成绩2select Student.学号,Student.姓名,AVG(成绩) as 平均成绩from Score left join Student on Student.学号 =Score.学号group by Student.学号,Student.姓名having AVG(Score.成绩)>303select Student.学号,Student.姓名, ISNULL(选课_成绩.选课数,0) as 选课数,ISNULL(选课_成绩.总成绩,0) as 总成绩 from Student left join ( select 学号, COUNT(Score.课程代码) as 选课数,SUM(Score.成绩) as 总成绩 from Score group by 学号 ) as 选课_成绩on Student.学号= 选课_成绩.学号4select a.学号,a.姓名 from Student as awhere a.学号 not in( select distinct(Student.学号) as 学号 from Student left join Score on Score.课程代码 = ( select Course.课程代码 from Course where Course.教师编号 = ( select Teacher.教师编号 from Teacher where Teacher.教师姓名='王军' ) ))仅供学习参考...

延伸阅读:

数据库面试1. create database aaa; 2. create table users(id int NOT NULL AUTO_INCREMENT, user_name char(10),money char(10),add_time datetime PRIMARY KEY (`id`))ENGINE=Inno...

Mysql数据库面试问题select t1.non_seller, t3.coupon, ifnull(sum(t2.bal),0) from (select seller,coupon from (select distinct seller from t2) c, (select distinct coupon from t2) d )...

数据库面试题:1. create database aaa; 2. create table users(id int NOT NULL AUTO_INCREMENT, user_name char(10),money char(10),add_time datetime PRIMARY KEY (`id`))ENGINE=Inno...

英语面试常题有哪些1、自我介绍。这个几乎是必备。可以自己先写一篇,让朋友帮改一下,然后背好记熟,做到即使面试时紧张也能脱口而出的程度(我以前参加比赛,初赛的演讲稿全部都要求自己达到这个水平,...

数据库多表查询这4个题都怎么做呀1 select a.s# from (select s#,score from sc where c#='001') a inner join (select s#,score from sc where c#='002') b on a.s#=b.s# and a.score>b.score 2 select st...

数据库面试题1select a.产品名, isnull(b1.产品数量,0) as 仓库id_1, isnull(b2.产品数量,0) as 仓库id_2, isnull(b3.产品数量,0) as 仓库id_3, isnull(b4.产品数量,0) as 仓库id_4 from (sel...

数据库多表查询问题select t1.name,t1.time,t2.score as englishscore,t3.score as chinesescore,t4.score as mathscorefrom(select a.studentid,a.name,b.timefromstudent a,(select time fr...

ORACLE数据库面试1. update t set logdate=to_date('2003-01-01','yyyy-mm-dd') where logdate=to_date('2001-02-11','yyyy-mm-dd'); 2. select * from t where name in (select name from...

数据库面试题有四个表Student表 Course表 Score表 Teacher表1.select 英语.学号from Score 英语left join ( select 学号,课程代码,成绩 from Score where 课程代码='数学课程代码') as 数学on 英语.学号=数学.学号where 英语.课程代码=...

推荐阅读
图文推荐
栏目列表