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 6111517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:38:23+00:00 2026-05-23T14:38:23+00:00

I have 2 views with data and they are related via an ID column.

  • 0

I have 2 views with data and they are related via an ID column.

I need to select from view A some ID’s based on another ID. This will often result in a set of ID’s.

Then I need to use this set of ID’s to select rows from another view.

I could do this with 2 queries, but I’d like to do it in a single query.

How should I do this?

  • 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-23T14:38:23+00:00Added an answer on May 23, 2026 at 2:38 pm
    SELECT b.*
        FROM ViewA a
            INNER JOIN ViewB b
                ON a.CommonID = b.CommonID
        WHERE a.OtherID = xxx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 5 views in my ASP.NET MVC application. Some data were captured from
I have a couple of views which present data from a CoreData entity in
We have a set of tables and views that merely store some config data
I have a view that takes data from my site and then makes it
What is a good pattern for sharing data between related views?. I have an
tl;dr: I need to show data from two different tables in the list view
i have a UITableView with 3 UITableViewCells and 3 Picker Views with other data.
I have two tabbar items(views) that use the same data, whats the best solution
Hi i have a collection and two views. On my view1 i'm adding data
I have a an object view with data and a button on that view.

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.