LintCode MySQL 1921. 从不充值的玩家(where not in)
生活随笔
收集整理的這篇文章主要介紹了
LintCode MySQL 1921. 从不充值的玩家(where not in)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 1. 題目
- 2. 解題
1. 題目
描述
A game database contains two tables, player table and recharge table.
Write a SQL query to find all players who never recharge.
樣例
https://www.lintcode.com/problem/players-who-never-recharge/description
2. 解題
-- Write your SQL Query here -- -- example: SELECT * FROM XX_TABLE WHERE XXX -- select name player from user where user.id not in (select distinct(user_id) user_idfrom recharge )總結
以上是生活随笔為你收集整理的LintCode MySQL 1921. 从不充值的玩家(where not in)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: LeetCode MySQL 1264.
- 下一篇: LeetCode 1235. 规划兼职工