热门

最新

红包

立Flag

投票

同城

我的

发布
m0_55990500
互联网底层人员
3 年前
truem0_55990500

3月2日
三道SQL 一道算法 和归并模板
181. 超过经理收入的员工
SELECT
a.Name AS 'Employee'
FROM
Employee AS a,
Employee AS b
WHERE
a.ManagerId = b.Id
AND a.Salary > b.Salary
;

82. 查找重复的电子邮箱
select Email from
(
select Email, count(Email) as num
from Person
group by Email
) as statistic
where num > 1
;

183. 从不订购的客户
select Customers.name as 'Customers'
from Customers
where Customers.id not in
(
select Customerid from orders
);

剑指 Offer II 005. 单词长度的最大乘积
暴力没做出来 直接看题解
将所有的字母等价替换为二进制编码 分别在0-25的位置 判断是否有重复字母只需要判断相与是否为0
思路有点牛

最近看面经看别人考了 归并算法 默写一下模板

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
Mysqlmysql -uroot -pshow databases; use 名字show tables; select * from student;create database 名字;use 名字;(create database 名字2 default character set gb2312;)(drop database 名字;)create table 名字(xh char(4),xm char(3),csrq date,nl int); desc 名字; select * from 名字;insert into 名字 values('0115','明','2003-3-3',20); select * from 名字;
立即登录