当前位置:网站首页>Expression #1 of ORDER BY clause is not in SELECT list, references column ‘d.dept_ no‘ which is not i
Expression #1 of ORDER BY clause is not in SELECT list, references column ‘d.dept_ no‘ which is not i
2022-07-04 16:11:00 【Liluoxiao】
problem :"Expression #1 of ORDER BY clause is not in SELECT list, references column 'd.dept_no' which is not in SELECT list; this is incompatible with DISTINCT"
Add distinct Report a mistake later
reason : When using grouping function or window function ,order by The following field name should be the same as select The field names after are consistent
solve : In this case select The last field is named de.dept, and order by The latter is d.dept, Need to put d.dept Change to de.dept
边栏推荐
- js平铺数据查找叶子节点
- 科研漫画 | 联系到被试后还需要做什么?
- Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
- Intranet penetrating FRP: hidden communication tunnel technology
- What is the catalog of SAP commerce cloud
- LeetCode 1184. 公交站间的距离 ---vector顺逆时针
- Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
- 中国主要城市人均存款出炉,你达标了吗?
- What should ABAP do when it calls a third-party API and encounters garbled code?
- . Net delay queue
猜你喜欢
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
MySQL learning notes - data type (numeric type)
Big God explains open source buff gain strategy live broadcast
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
A trap used by combinelatest and a debouncetime based solution
案例分享|金融业数据运营运维一体化建设
2022年九大CIO趨勢和優先事項
Interface test - knowledge points and common interview questions
What is the catalog of SAP commerce cloud
.Net 应用考虑x64生成
随机推荐
Rearrange array
JS to realize the countdown function
MySQL index optimization
Unity script lifecycle day02
What is the future of the booming intelligent Internet of things (aiot) in recent years?
Unity prefab day04
[book club issue 13] ffmpeg common methods for viewing media information and processing audio and video files
Redis sentinel mode realizes one master, two slave and three Sentinels
Overview of convolutional neural network structure optimization
Unity动画Animation Day05
Actual combat | use composite material 3 in application
AI做题水平已超过CS博士?
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
Unity脚本介绍 Day01
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
Unity脚本常用API Day03
An article learns variables in go language
Unity script API - GameObject game object, object object
How was MP3 born?
. Net applications consider x64 generation