SQL基础整理——例题
生活随笔
收集整理的這篇文章主要介紹了
SQL基础整理——例题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
用一條SQL語句查詢出T_score表中每門課都大于80分的學生姓名
| name | course | score |
| 張三 | 語文 | 81 |
| 張三 | 數(shù)學 | 80 |
| 李四 | 語文 | 76 |
| 李四 | 數(shù)學 | 90 |
| 李四 | 英語 | 75 |
或者:
select?distinct?name from?T_score where?name?not?in?(select?distinct?name?from?T_score?where?score?<=?80);轉(zhuǎn)載于:https://blog.51cto.com/iwildhorse/1895020
總結(jié)
以上是生活随笔為你收集整理的SQL基础整理——例题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql order by 中文 排序
- 下一篇: hdu1006 Tick and TIc