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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:07:55+00:00 2026-06-09T08:07:55+00:00

How can I fetch data from four tables? I have four tables: Article_Table (

  • 0

How can I fetch data from four tables?

I have four tables:

  • Article_Table (ArticleName, ArticleNumber)
  • IndexDetails_Table (IndexSubMasterId, ArticleNumber)
  • IndexSubMaster_Table (IndexSubMasterId, IndexMasterId)
  • IndexMaster_Table (IndexMasterId, Keyword)

I need final output:

ArticleName  from Article table. 

I will provide you a Keyword as an input parameter.

The process which I need would be:

  1. IndexMasterId From IndexMaster_Table where Keyword = 'bl'

  2. IndexSubMasterId From IndexSubMaster_Table
    Where IndexSubMaster_Table.IndexMasterId = IndexMaster_Table.IndexMasterId

  3. ArticleNumber From IndexDetails_Table
    Where IndexDetails_Table.IndexSubMasterId = IndexSubMaster_Table.IndexSubMasterId

  4. ArticleName From Article_Table
    Where Article_Table.ArticleNumber = IndexDetails_Table.ArticleNumber

  • 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-06-09T08:07:56+00:00Added an answer on June 9, 2026 at 8:07 am

    Try this I am sure there are more efficient ways but here is something for you

    Declare @keyword varchar(20)
    Set @keyword = 'bl'
    
    Select article.ArticleName FROM IndexMaster_Table masterTable
    JOIN IndexSubMaster_Table subMaster
    on masterTable.IndexMasterId = subMaster.IndexMasterId
    JOIN IndexDetails_Table details
    on details.IndexSubMasterId = subMaster.IndexSubMasterId
    JOIN Article_Table article
    on article.ArticleNumber = details.ArticleNumber
    Where masterTable.keyword = @keyword
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables that I want to fetch data from. Lets call them
I need to fetch data from two tables For example: I have tables test1,
Supposing I have 3 tables: Users, Roles and UserRoles. I can fetch the user_roles
How can i fetch all data from any table of a test DB and
how we can fetch the data from the database through Silver light? I want
I am using PHP CURL to fetch data from a server. The response can
I have developed a small application using Perl/Tk. The application will fetch data from
I wonder if we can implement and fetch data from different datasources into a
Hi I have been using this code to fetch data from mysql database and
I currently have the below code to fetch data from my Entity framework model.

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.