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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:01:27+00:00 2026-05-29T07:01:27+00:00

I have the following data structure: TABLE requirements ID 1, AGE 1, GENDER 1,

  • 0

I have the following data structure:

TABLE requirements
ID 1, AGE 1, GENDER 1, USERID 1
ID 2, AGE 1, GENDER 2, USERID 2
ID 3, AGE 1, GENDER 2, USERID 3


TABLE offers
IDoffers 1, AGE 1, GENDER 2, USERID 1
IDoffers 2, AGE 1, GENDER 1, USERID 2
IDoffers 3, AGE 1, GENDER 1, USERID 3

I need to select the row of the table requirements – The parameters of this line used to select data from a table offers. In the cycle.

SELECT * FROM offers WHERE (ID1 … IDX from requirements)

I need this result:

FOR ID 1 FROM TABLE requirements - RESULT FROM offers:
IDoffers 2, AGE 1, GENDER 1, USERID 2
IDoffers 3, AGE 1, GENDER 1, USERID 3

FOR ID 2 FROM TABLE requirements - RESULT FROM offers:
IDoffers 1, AGE 1, GENDER 2, USERID 1

FOR ID 3 FROM TABLE requirements - RESULT FROM offers:
IDoffers 1, AGE 1, GENDER 2, USERID 1
  • 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-29T07:01:31+00:00Added an answer on May 29, 2026 at 7:01 am
    SELECT
      rquirements.ID,
      offers.*
    FROM
      requirements
      INNER JOIN offers ON requirements.AGE=offers.AGE
         AND requirements.GENDER=offers.GENDER
    

    Cycles through all requirements. If you want hust a special requirement, add

    WHERE rquirements.ID=<whatever>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table emp with following structure and data: name dept salary -----
I have the following data structure (it's an append only table for mapping content
I have the following table structure. I want to select distinct CustomerId and CustomerName
I have table the following data structure in SQL Server: ID Date Allocation 1,
I have a table in database which has following structure(data) : +--------------------------+ Organization +--------------------------+
I have the following table structure with data as ReadingDate Unit 01-05-2011 10 01-06-2011
Let's say I have the following hypothetical data structure: create table country ( country_id
the file.xml contains the following data structure: <table> <row> <x>10</x> <t>10:00</t> </row> <row> <x>20</x>
I have the following table structure with live data in it: CREATE TABLE IF
I have the following table structure: Inventory: userid - a - b - c

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.