当前位置:网站首页>'using an alias column in the where clause in PostgreSQL' - using an alias column in the where clause in PostgreSQL
'using an alias column in the where clause in PostgreSQL' - using an alias column in the where clause in PostgreSQL
2022-07-04 11:40:00 【javail】
problem :
"I have a query like this:<\/i> I have a query like this :<\/b><\/p>
SELECT jobs.*, ( CASE WHEN lead_informations.state IS NOT NULL THEN lead_informations.state ELSE 'NEW' END ) AS lead_stateFROM jobs LEFT JOIN lead_informations ON lead_informations.job_id = jobs.id AND lead_informations.mechanic_id = 3WHERE lead_state = 'NEW'
Solution :
Reference resources : https://stackoom.com/en/question/DbDs边栏推荐
- Exceptions and exception handling
- 试题库管理系统–数据库设计[通俗易懂]
- LxC shared directory addition and deletion
- 3W word will help you master the C language as soon as you get started - the latest update is up to 5.22
- Introduction to canoe automatic test system
- Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
- Detailed explanation of classic process synchronization problems
- Cacti主机模板之定制版
- Some tips on learning database
- 2021-10-20
猜你喜欢
netstat
Climb Phoenix Mountain on December 19, 2021
DVC use case (VI): Data Registry
Notes on writing test points in mind mapping
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
Realize cross tenant Vnet connection through azure virtual Wan
CSDN documentation specification
QQ group collection
随机推荐
Detailed explanation of classic process synchronization problems
Common built-in modules
SSH principle and public key authentication
Reptile learning 4 winter vacation series (3)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
array_ The contains() function uses
Login operation (for user name and password)
Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
World document to picture
Digital simulation beauty match preparation -matlab basic operation No. 6
Automatic translation between Chinese and English
Entitas learning [3] multi context system
CSDN documentation specification
Daemon xinted and logging syslogd
Introduction to Lichuang EDA
试题库管理系统–数据库设计[通俗易懂]
Summary of collection: (to be updated)
Definition and method of string
Climb Phoenix Mountain on December 19, 2021
LxC shared directory permission configuration