Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:03:16+00:00 2026-05-28T17:03:16+00:00

I need to build a Twitter module entirely on the client side. I intended

  • 0

I need to build a Twitter module entirely on the client side.

I intended to use the Twitter API for the data and YQL to get across Same Origin Policy, and also for its higher rate limiting. I have used this combination before with success.

One thing I need to do is to get a list of tweets with a hashtag and from a finite set of users.

This gets tweets with the #stackoverflow hash tag by users alexdickson and lizardbill.

I also need to get a different set of tweets.

This gets all tweets with the #stackoverflow hash tag.

Now, I need to display the second collection but excluding the results from the first set. This would be a diff of the results, like PHP’s array_diff().

For completeness, I may also need to achieve something by getting an intersection of two results, that is, a list of tweets which appear in both result sets. This is similar to PHP’s array_intersect().

It has been a while since I’ve used SQL and can’t think of how to achieve this in YQL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:03:18+00:00Added an answer on May 28, 2026 at 5:03 pm

    YQL supports sub-selects (subqueries). See Joining Tables with Sub-selects. Sub-selects are used with the IN operator, to filter the results of the outer select.

    For your particular query, there is also a twitter.search Community Open Data Table available to save you from building the Twitter URLs and using the json table.

    select *
    from twitter.search
    where q="#stackoverflow" 
    and id not in (
        select id 
        from twitter.search 
        where q="#stackoverflow from:alexdickson, OR from:lizardbill"
    )
    

    (Try this query in the YQL console.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should I be using a wrapper library for Twitter's API, or just build a
How can you tweet from a website to twitter. I need to build a
Hey, im looking to build a product that 'listens' to twitter streaming api and
We're setting out to build an online platform (API, Servers, Data, Wahoo!). For context,
I'm starting to build an iOS app which will use Twitter as the means
Need to build a Top 10 query that works with SQLite and Postgres. Client
I want to build a service which needs to get this data from some
I need to build a primary key consisting of 3 sections. The first section
I need to build a dynamic linq query with or operators. I have seen
I need to build a PDF based on FDF. I saw that Adobe has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.