Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
BigQuery Discuss
Conversations
About
Does not contain
4625 views
Skip to first unread message
JKWA
unread,
Apr 5, 2012, 7:13:57 PM
4/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
Report message as abuse
Sign in to report message as abuse
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 bigquery...@googlegroups.com
I need to perform a query similar to below
SELECT GROUP_CONCAT(foo), bar
FROM table
GROUP BY bar
HAVING GROUP_CONCAT(foo) DOES NOT CONTAIN "string";
I've looked at using a regular expression but have so far come up empty.
Any suggestions?
Joe
Siddartha Naidu
unread,
Apr 5, 2012, 7:37:37 PM
4/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
Report message as abuse
Sign in to report message as abuse
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 bigquery...@googlegroups.com
Is this what you are looking for:
SELECT bar, GROUP_CONCAT(foo) list FROM table
GROUP BY bar HAVING NOT(list CONTAINS "string");
JKWA
unread,
Apr 5, 2012, 8:10:49 PM
4/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
Report message as abuse
Sign in to report message as abuse
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 bigquery...@googlegroups.com
Ahh, I see now.
I had this:
HAVING COUNT(foo) > 2 NOT list CONTAINS "string"
But needed to write this:
HAVING COUNT(foo) > 2 AND NOT list CONTAINS "string"
Thanks for the help Siddarth.
Reply all
Reply to author
Forward
0 new messages