Skip to content

Instantly share code, notes, and snippets.

View eezhal92's full-sized avatar

Muhammad Rizki Rijal eezhal92

View GitHub Profile
<?php
class Calculator
{
/**
* Add multiple argument
*
* @return int
*/
@eezhal92
eezhal92 / query.sql
Created February 13, 2016 02:58
sql sleekr
select c.name, count(u.name) as co from company c
join users u on c.id = u.company
where datediff(now(), u.join_date) >= 365
and u.gender = 'male' group by c.name;