Untitled

From Abrupt Lechwe, 2 Months ago, written in Plain Text, viewed 45 times.
URL http://codebin.org/view/7032eea6 Embed
Download Paste or View Raw
  1. SELECT CAST(DATE_TRUNC('month', event_time) as date) as month,
  2.        COUNT(event_id) as event_month
  3. FROM tools_shop.events
  4. WHERE event_name LIKE '%view_item%'
  5. GROUP BY month
  6.  
  7.  
  8. syntax error at or near "SELECT"
  9.  
  10. SELECT CAST(DATE_TRUNC('month', event_time) as date) as month,
  11.        COUNT(event_id) as event_month
  12. FROM tools_shop.events
  13. WHERE event_name LIKE '%view_item%'
  14. GROUP BY month
  15.  

Reply to "Untitled"

Here you can reply to the paste above