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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:49:49+00:00 2026-06-18T10:49:49+00:00

I ran into a problem and was trying to find a general solution to

  • 0

I ran into a problem and was trying to find a general solution to it as a join.

I have 2 tables :

http://pastebin.com/q5yws5Ym (not sure how to enforce the styling)

And i want to generate something like
http://pastebin.com/GscBUrYS

(while there are more parameters i’m interested in how i would do it for something like this)

While i was able to reach a similar effect with self-joins and equi-joins it would generate a lot of unneeded rows, which i’m not sure how to delete automatically.

  • 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-18T10:49:50+00:00Added an answer on June 18, 2026 at 10:49 am

    Try something along the lines of:

    SELECT user.user_id, j1.user_param, j1.user_value, j2.user_param, j2.user_value
    FROM user
    JOIN Users_info j1 ON user.user_id = j1.user_id
    JOIN users_info j2 on user.user_id = j2.user_id
    where j1.user_param != j2.user_param
    GROUP BY user.user_id
    

    It may be possible that you will need some more “exclusion” clauses for the where to make sure that every row is only selected once but the general idea should work (for a given and limited number of different user_param`s).

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

Sidebar

Related Questions

im currently learning jQuery and have ran into a problem. I am trying to
I ran into a problem today trying to override an implementation of an interface
I'm messing around with template specialization and I ran into a problem with trying
I just ran into a problem.. I'm trying to build a website at the
I was practising statements and ran into a problem. I'm trying to make it
I'm trying to extend JButton with Clojure, but I ran into a problem when
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
A problem I recently ran into was that when trying to update a field
I'm trying to create a proper regex for my problem and apparently ran into
I ran into a problem when trying to parse XML from a URL in

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.