第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

一表統(tǒng)計(jì)然后其中字段作條件查詢(xún)另個(gè)表統(tǒng)計(jì)

一表統(tǒng)計(jì)然后其中字段作條件查詢(xún)另個(gè)表統(tǒng)計(jì)

阿晨1998 2018-08-23 19:54:12
SELECT c.xitongshijian,sum(c.zongyeji) FROM count_report c group by c.xitongshijian;根據(jù)count_report的時(shí)間分組統(tǒng)計(jì)總業(yè)績(jī),然后根據(jù)count_report的時(shí)間再查詢(xún)統(tǒng)計(jì)另一張表的總業(yè)績(jī)。寫(xiě)完了select t1.xitongshijian,t1.zyj,t2.xf from (SELECT xitongshijian,sum(zongyeji) as zyj FROM count_report group by xitongshijian )t1 left join (select xitongshijian,sum(xiaofei) as xf from shangwutong group by xitongshijian) t2 on t1.xitongshijian=t2.xitongshijian
查看完整描述

1 回答

?
蠱毒傳說(shuō)

TA貢獻(xiàn)1895條經(jīng)驗(yàn) 獲得超3個(gè)贊

不是很明白,不過(guò)大致猜想你是想要 select field from tableName where field in (select field from tableName group by field )

查看完整回答
反對(duì) 回復(fù) 2018-08-26
  • 1 回答
  • 0 關(guān)注
  • 614 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)