文章詳情頁
mysql 如何統(tǒng)計(jì)注冊(cè)后第一次發(fā)帖的用戶
瀏覽:76日期:2022-06-18 09:51:23
問題描述
問題解答
回答1:select count(author_id) as num from (select author_id,created from posts GROUP BY author_id HAVING count(id)=1) as t where t.created BETWEEN ’2016-09-020 00:00:00’ and ’2016-09-20 23:59:59’;
回答2:嗯,這個(gè)問題....
難道不是按照時(shí)間排序就可以了嗎?
回答3:select min(issue_date) md ,user_id from table group by user_id where md = ’9.20’
相關(guān)文章:
1. python - pandas按照列A和列B分組,將列C求平均數(shù),怎樣才能生成一個(gè)列A,B,C的dataframe2. javascript - 請(qǐng)問 chrome 為什么會(huì)重復(fù)加載圖片資源?3. mysql - 字符串根據(jù)字典替換4. 正則表達(dá)式 - python pandas的sep參數(shù)問題5. mysql - sql 優(yōu)化問題,between比in好?6. 個(gè)人主頁博客統(tǒng)計(jì)中的“進(jìn)入博客”不能點(diǎn)擊7. java - spring 4.+ 利用reponse 下載文件看不到文件到底有多大,但是能下載成功 ?8. javascript - weex和node,js到底是怎樣一個(gè)關(guān)系呢?9. 就一臺(tái)服務(wù)器,mysql數(shù)據(jù)庫想實(shí)現(xiàn)自動(dòng)備份,如何設(shè)計(jì)?10. mysql 5個(gè)left關(guān)鍵 然后再用搜索條件 幾千條數(shù)據(jù)就會(huì)卡,如何解決呢
排行榜

熱門標(biāo)簽