Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why my Query is not fetching the right results #75

Open
MishiR opened this issue Oct 4, 2016 · 0 comments
Open

Why my Query is not fetching the right results #75

MishiR opened this issue Oct 4, 2016 · 0 comments

Comments

@MishiR
Copy link

MishiR commented Oct 4, 2016

Hi, am trying to retrieve un-responded messages from the extracted data from Apache project. I thought the following query will work but somehow I still end up with replied messages in the result. For example, am using the following archive: http://mail-archives.apache.org/mod_mbox/httpd-dev/199503.mbox/browser
and am running the following query:
select m.*
from messages m
where m.is_response_of is Null -- original message
and m.message_id not in (select mi.is_response_of from messages mi where mi.is_response_of is not Null) -- not replied
and m.subject not like 'Re: %'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant