当前位置:网站首页>sql刷题584. 寻找用户推荐人
sql刷题584. 寻找用户推荐人
2022-07-01 16:19:00 【grt要一直一直努力呀】


直观想到下面的sql语句
# Write your MySQL query statement below
select name from customer where referee_id != 2
但查询结果出错,
MySQL 使用三值逻辑 —— TRUE, FALSE 和 UNKNOWN。任何与 NULL 值进行的比较都会与第三种值 UNKNOWN 做比较。
# Write your MySQL query statement below
select name from customer where referee_id != 2 or referee_id is null
边栏推荐
- 数据库系统原理与应用教程(005)—— yum 离线安装 MySQL5.7(Linux 环境)
- Red team Chapter 10: ColdFusion the difficult process of deserializing WAF to exp to get the target
- P2893 [USACO08FEB] Making the Grade G(dp&优先队列)
- IM即时通讯开发万人群聊消息投递方案
- Défaillance lors du démarrage de la machine virtuelle VMware: le poste de travail VMware n'est pas compatible avec hyper - V...
- Germany if was crowned with many awards. How strong is this pair of headphones? In depth evaluation of yinpo GTW 270 hybrid
- Tutorial on the principle and application of database system (002) -- MySQL installation and configuration: MySQL software uninstallation (Windows Environment)
- Motion capture system for apple picking robot
- IM即时通讯开发实现心跳保活遇到的问题
- 部门来了个拿25k出来的00后测试卷王,老油条表示真干不过,已被...
猜你喜欢

What is the digital transformation of manufacturing industry

OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)
![[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境](/img/0e/52e37527bc717c7a55741725087bad.png)
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境

Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!

How to use MySQL language for row and column devices?
![[SQL statement] Why do you select two Shanghai and query different counts here? I want it to become a Shanghai, and count only displays a sum](/img/a4/58b942d1389834069e9a6ec9f8ee0a.png)
[SQL statement] Why do you select two Shanghai and query different counts here? I want it to become a Shanghai, and count only displays a sum

How to use F1 to F12 correctly on laptop keyboard

How to maintain the laptop battery

制造业数字化转型究竟是什么

独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
随机推荐
Building blocks for domestic databases, stonedb integrated real-time HTAP database is officially open source!
[observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
How to solve the problem that the battery icon of notebook computer does not display
【观察】数字化时代的咨询往何处走?软通咨询的思与行
【Hot100】20. Valid parentheses
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
PostgreSQL 存储结构浅析
Research on multi model architecture of ads computing power chip
软件工程导论——第六章——详细设计
Guide for high-end programmers to fish at work
数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
Principes et applications du système de base de données (006) - - compilation et installation de MySQL 5.7 (environnement Linux)
动作捕捉系统用于苹果采摘机器人
SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
How to maintain the laptop battery
数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
复杂度相关OJ题(LeetCode、C语言、复杂度、消失的数字、旋转数组)