当前位置:网站首页>'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边栏推荐
- Realize cross tenant Vnet connection through azure virtual Wan
- Snowflake won the 2021 annual database
- 试题库管理系统–数据库设计[通俗易懂]
- Sys module
- os. Path built-in module
- LxC shared directory permission configuration
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21
- Understanding of object
- Enter the smart Park, and change begins here
- Login operation (for user name and password)
猜你喜欢
Detailed array expansion analysis --- take you step by step analysis
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
Automatic translation between Chinese and English
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 17
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
Btrace tells you how to debug online without restarting the JVM
Application of slice
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
Realize cross tenant Vnet connection through azure virtual Wan
DVC use case (VI): Data Registry
随机推荐
C language memory layout
Iptables cause heartbeat brain fissure
2021-10-20
CAPL: on sysVar_ Update difference on sysvar
Understanding of object
Canoe test: two ways to create CAPL test module
QQ one click cookie acquisition
Sys module
Shift EC20 mode and switch
Enter the smart Park, and change begins here
本地Mysql忘记密码的修改方法(windows)
Btrace tells you how to debug online without restarting the JVM
Ternsort model integration summary
Getting started with window functions
Four sorts: bubble, select, insert, count
Elevator dispatching (pairing project) ③
Customized version of cacti host template
Swagger and OpenAPI
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10
Common tips