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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:26:01+00:00 2026-06-09T19:26:01+00:00

I am getting multiple values from my query. select l_t_id from MLTalukDetails join MLDistrictDetails

  • 0

I am getting multiple values from my query.

select l_t_id from MLTalukDetails join MLDistrictDetails on MLTalukDetails.L_D_Id=4

It returns 13,14,15,16. Now I want to take each of these values at a time and get the details from those values i.e.

select Sc_Id from MSchoolDetails 
where 
MSchoolDetails.L_T_Id=@talukid and 
MSchoolDetails.Y_Id=@yearid

What can i do this scenario. How can I use the for loop syntax here?

  • 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-09T19:26:02+00:00Added an answer on June 9, 2026 at 7:26 pm

    I’m inferring from your question that this is the complete solution you’re actually looking for:

        SELECT MSchoolDetails.* 
          FROM MLTalukDetails
    INNER JOIN MSchoolDetails ON MTalukDetails.l_t_id = MSchoolDetails.L_T_Id
         WHERE MLTalukDetails.L_D_ID = 4 AND MSchoolDetails.Y_Id=@yearid
    

    Normally one has a join condition which involves both tables.

    I’d suggest reading up on the various joins.

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

Sidebar

Related Questions

I want to get all the values(multiple) of a particular key.But i m getting
I am using the following query to get the count from multiple tables:- SELECT
Needing a bit help getting multiple values from a string using Regex. I am
I am issuing a query to elasticsearch and I am getting multiple record types.
I previous recieved help with a problem, getting a multiple option select form to
In the same context i have another query <select multiple=multiple name=prodSKUs> <c:forEach items=${productSubCategoryList} var=productSubCategoryList>
In my project I have to select multiple values and pass it to a
I am wanting to return multiple values from the apply() function and place them
Hi guys I am trying to post values which is getting number from another
I am having difficulty getting multiple jPicker instances of the same type to display

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.