sql >> Database >  >> RDS >> Mysql

MySQL GROUP Op aantal

SELECT FROM, TO, COUNT(*) AS howmany,
       SUM(Type = 'Call_In') AS Call_In, SUM(Type = 'Call_Out') AS Call_Out
FROM table
GROUP BY FROM, TO


  1. MySQL DECIMAL gegevenstype

  2. CASESTUDY:ARKWARE MS ACCESS CRM

  3. Verbinding maken met Lotus Notes vanuit Java

  4. Applicatiegebruikers versus beveiliging op rijniveau