queries <- list(
status.changes = '
SELECT date(datetime) "date",
user_id "user.id",
count(*) "status.changes"
FROM ft_facebookchatstatuschange
GROUP BY date, "user.id"',
online.duration = 'SELECT date, user_id "user.id", duration FROM ft_facebookduration')
q <- function(sql) sqldf(sql, drv = 'PostgreSQL', user = 'tlevine', dbname = 'tlevine')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.