当前位置:网站首页>SQL query, subquery as result field
SQL query, subquery as result field
2022-06-11 00:12:00 【Mr. No】
SQL Inquire about , Subquery as result field ,
SELECT DISTINCT
sp.comcode,
sp.projectname,
sp.projecttime,
sp.busnature,
sp.bustype,
sl.concode,
sl.conname,
sl.contype,
sl.conpartya,
sl.contotal,
sl.conrisedate,
sl.constopdate,
sl.contotalperiod,
(
SELECT
SUM(chargemoney)
FROM
sab_b_conpay sc
WHERE
sc.concode = sl.concode
GROUP BY
sc.concode
) AS chargemoney000,
(
SELECT
SUM(confirmamount)
FROM
sab_b_conpay sc
WHERE
sc.concode = sl.concode
GROUP BY
sc.concode
) AS confirmamount000,
(
SELECT
SUM(noconfirmamount)
FROM
sab_b_conpay sc
WHERE
sc.concode = sl.concode
GROUP BY
sc.concode
) AS noconfirmamount000
FROM
sab_b_ledger sl
LEFT JOIN sab_b_project sp ON sl.projectcode = sp.projectcode
边栏推荐
- Bluetooth development (6) -- literacy of Bluetooth protocol architecture
- [pyGame games] I'm not afraid you can't walk the maze series: the ultimate AI walks the maze. After learning, it will take you to open the door to a new world ~ (with game source code)
- [pyGame games] interesting puzzle game: how many hamsters can you play? (source code attached)
- Lambda 学习记录
- How to measure the refresh rate of oscilloscope
- 【JVM】内存模型
- [pyGame] can the little dinosaur on chrome be played with code? It looks like fun~
- Njupt South Post collection_ Experiment 2
- 【Pygame小游戏】趣味益智游戏 :打地鼠,看一下能打多少只呢?(附源码)
- Leetcode-15 sum of three numbers
猜你喜欢
![[pyGame games] in the first month, it broke 100 million to download a masterpiece that is highly integrated with](/img/f5/d947f5e5c2abf79c0fac2f45103ec0.png)
[pyGame games] in the first month, it broke 100 million to download a masterpiece that is highly integrated with "super casual game features"~

【Pygame小游戏】激荡大脑思维,一起来玩转奇思妙想“24点”叭~(超赞滴)
![[pyGame] can the little dinosaur on chrome be played with code? It looks like fun~](/img/b4/a4140eb10658af40a8a2fc0f428b0f.jpg)
[pyGame] can the little dinosaur on chrome be played with code? It looks like fun~

A simple understanding of B tree
![[mathematics] [continuum mechanics] symmetry tensor, strain tensor and stress tensor in fluid mechanics](/img/13/210ed249dfa3010bf69fead8e06f1b.png)
[mathematics] [continuum mechanics] symmetry tensor, strain tensor and stress tensor in fluid mechanics

yum源更新

Error report of curl import postman

Website online customer service system Gofly source code development log - 5 Gin framework integration daemon

Basic introduction and core components of kubernetes

CSDN daily practice -- half search of ordered table
随机推荐
2022年高考量化卷|请各位量化考生答题
Shell Sort
csdn每日一练——找出最接近元素并输出下标
[pyGame] when the "coolest snake in history" arrives, fun will play it (no money for fun)
[pyGame] this classic bomber super game is online. Do you love it? (source code attached)
sql 语句--输入 月份 查日期(年月日),输出 月份
CSDN daily practice - find the closest element and output the subscript
Njupt Nanyou Discrete Mathematics_ Experiment 2
From the perspective of Confucius Temple IP crossover, we can see how the six walnuts become "butterflies" for the second time
[fireworks in the sky] it's beautiful to light up the night sky with gorgeous fireworks. A programmer brought a fireworks show to pay New Year's greetings to everyone~
[pyGame collection] please check the game guide through childhood: are there any games you have played? (attach five source codes for self access)
启牛学堂理财可靠吗,安全吗
Bluetooth development (7) -- L2CAP layer connection process
Website online customer service system Gofly source code development log - 5 Gin framework integration daemon
[auto reply or remind assistant] Mom doesn't have to worry about me missing messages any more (10 Line Code Series)
[auto reply Script] happy new year. I typed every word myself, not forwarded it~
Leetcode-560 and subarray with K
Basic operation of OpenCV actual combat image: this effect amazed everyone (with code analysis)
示波器刷新率怎么测量
vtk. VTP download in JS