mysterious Posted February 4, 2017 Report Posted February 4, 2017 select name, count(distinct site) from k2s group by name loser 1 spartan 2 samaja 1 scrooge 2 Quote
kiladi bullodu Posted February 4, 2017 Report Posted February 4, 2017 7 hours ago, k2s said: Calling @loveindia, @jbourne, @Spartan, @kiladi bullodu no sql bro poor people Quote
mettastar Posted February 4, 2017 Report Posted February 4, 2017 6 hours ago, k2s said: i want for all users man.. like this name , site scrooge, 2 spartan, 2 samaja, 1 loser, 1 Chinnu cheppindhi correct vuncle.. group by cheyi.. Select name, count(distinct channel) from table group by name Quote
k2s Posted February 4, 2017 Author Report Posted February 4, 2017 3 minutes ago, mettastar said: Chinnu cheppindhi correct vuncle.. group by cheyi.. Select name, count(distinct channel) from table group by name Yeah adey sesa baa.. got it Quote
k2s Posted February 4, 2017 Author Report Posted February 4, 2017 14 minutes ago, kiladi bullodu said: no sql bro poor people Quote
chicchara Posted February 4, 2017 Report Posted February 4, 2017 select count(posts), name, channel, site group by name, channel, site output will be posts name channel site 15000 scrooge discussion afdb 5000 scrooge visa afdb Quote
former Posted February 4, 2017 Report Posted February 4, 2017 8 hours ago, k2s said: select distinct name, count(distinct site) name kuda distinct kavali uncle.. Group by return DISTINCT values of group by fields. So no need of DISTINCT after SELECT keyword Quote
dasara_bullodu Posted February 4, 2017 Report Posted February 4, 2017 ses 'Select name, count(distinct site) group by name' cheste raada ? Quote
k2s Posted February 4, 2017 Author Report Posted February 4, 2017 4 hours ago, former said: Group by return DISTINCT values of group by fields. So no need of DISTINCT after SELECT keyword 3 hours ago, dasara_bullodu said: ses 'Select name, count(distinct site) group by name' cheste raada ? Emo man nenu try cheyaledu Quote
Bhai Posted February 4, 2017 Report Posted February 4, 2017 13 hours ago, k2s said: lolbob ki ardam ayindi.. answer seppadu. madyalo nuvvu thappulu vethaku..... naaku query execute ayindi with result 20 mins back ee 11 hours ago, ARYA said: landasura thread Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.