Mysql to mongo DB conversion for Codeigniter

43 views
Skip to first unread message

cosmos...@exateam.com

unread,
Feb 25, 2015, 10:45:17 AM2/25/15
to mongod...@googlegroups.com
Can any one provide me with the required conversion ???


SELECT SUBSTRING(time,1,16) as time,count(DISTINCT(id)) as hits
FROM `' . TBL_EP_STATS . '`
WHERE time > ' . $this->db->escape($data['current_date'] . ' 00:00:00') . '
GROUP BY SUBSTRING(time,1,16)

Will Berkeley

unread,
Feb 27, 2015, 10:50:20 AM2/27/15
to mongod...@googlegroups.com
Can you supply us with a sample document? What have you tried? What is the goal of the above SQL statement - what is the useful data will it produce for you?

-Will
Reply all
Reply to author
Forward
0 new messages