You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
This is i tried the query join with sub-query..i think it have some syntax error...?
select count(*)
from (
SELECT transactions.loyalty_id FROM transactions JOIN loyalties ON (transactions.loyalty_id = loyalties.id) GROUP BY transactions.loyalty_id HAVING COUNT(*)>1 where loyalties.created_at > '2011-11-02'
) as t
Thank you
vishnu
amvis
unread,
Dec 14, 2011, 3:50:08 AM12/14/11
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
yes i got it. That was the problem with where clause position
select count(*)
from (
SELECT transactions.loyalty_id FROM transactions JOIN loyalties ON (transactions.loyalty_id = loyalties.id) where loyalties.created_at > '2011-11-02' GROUP BY transactions.loyalty_id HAVING COUNT(*)>1
) as t
"Álvaro G. Vicario"
unread,
Dec 14, 2011, 4:24:04 AM12/14/11
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
When a query has a syntax error, MySQL will tell you so. Run the query
and read the error message if any.