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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:06:27+00:00 2026-06-08T03:06:27+00:00

table offer id_offer offer state 600 A 0 629 B 0 tags id_tags tags

  • 0

table offer

id_offer  offer   state    

600         A       0
629         B       0

tags

id_tags     tags        

561         PHP
562         JAVA
589         MySQL
917         python

offer_has_tags

offer_id_offer      tags_id_tags 
 600                    561     
 600                    562
 600                    917
 629                    562
 629                    589
 629                    917

The output that i need:

600     PHP
600     JAVA
600     python
629     JAVA
629     MySQL
629     python

What i am trying (without success):

    SELECT A.id_offer, A.tags
    FROM 
      ( SELECT *
        FROM offer
        WHERE id_offer IN (600, 629)
        AND state = 0  
        ORDER BY date_post DESC
        LIMIT ?, ?
      ) A, tags A
    INNER JOIN offer_has_tags B
        ON A.id_tags = B.tags_id_tags
    INNER JOIN offer C
        ON C.id_offer = B.offer_id_offer
    GROUP BY id_tags

Any idea? thanks

  • 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-08T03:06:29+00:00Added an answer on June 8, 2026 at 3:06 am

    try this

    SELECT A.id_offer, t.tags
    from 
      (Select * from offer o
        Where o.id_offer IN (600, 629)
        AND o.State=0
        ORDER BY ? DESC
        Limit ?,?) A
    INNER JOIN offer_has_tags B
        ON A.id_offer = B.offer_id_offer
    INNER JOIN tags t
        ON b.tags_id_tags = t.id_tags
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone offer an alternative to removing duplicates from an numeric indexed table that
table : id (integer primary key) data (blob) I use mysql and sqlalchemy. To
I have a table(offer) with three columns, id, product_id and price. offer ----- id
so there is a table of parameters which is associated with the "offer". The
I am getting strange error while inserting data into mysql table column. Details: Create
I'm trying to modify a table from OpenCart, a PHP-based e-cart solution. I currently
here's my php MySQL syntax $query_cruises = SELECT * FROM cruises, fares WHERE cruises.id
I'm trying to offer artist suggestions based on our user's favorites. Our table looks
I am trying to write java code to access a table 'customer' with columns
I am very new to php and mysql. I am trying to learn as

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.