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

  • Home
  • SEARCH
  • 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 8717281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:16:05+00:00 2026-06-13T06:16:05+00:00

Currently i have a table like below Table1 hTeam—–aTeam——-date— 3———-5 ——2012/01/01 4 ——– 7

  • 0

Currently i have a table like below

Table1
   hTeam-----aTeam-------date---

    3----------5 ------2012/01/01

    4 -------- 7 ------2012/01/04

    2 -------- 8 ------2012/01/05

i have a use a double inner join to get the values of id1 and id2, the code is below:

    Select hTeam As col1,
    aTeam As col2
    From fixtures as t
    Join team as d1 On ( d1.teamid = t.col1)
    Join team as d2 On ( d2.team = t.col2 )

This creates a table like this

Table2
    hTeam-------------aTeam--

    Teamname1-------TeamName1 

    TeamName2 ----- Teamname2 

    TeamName3 ----- TeamName4 

I don’t want the team name to be matches i.e. I want a exact replicate of table1 although with the team names like below

Table3
    hTeam-------------aTeam--

    Teamname3-------TeamName5 

    TeamName4 ----- Teamname7 

    TeamName2 ----- TeamName8

Hope i explained this well enough.

  • 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-13T06:16:06+00:00Added an answer on June 13, 2026 at 6:16 am

    Not entirely sure what the problem is, as you appear to pretty much have it:

    SELECT h.name AS home, a.name AS away
    FROM   fixtures AS f
      JOIN team AS h ON h.teamid = f.hTeam
      JOIN team AS a ON a.teamid = f.aTeam
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a MySQL table like: id | friend 1 | 2 1
So currently I have a table in Lua that contains another table (much like
I currently have a table structure that looks something like this(some details omitted): ColumnName
I have a table which is currently displayed like this: Question OptionType What is
I currently have a HTML select box like below. <select name=item_1> <option value=0>Choose one...</option>
I have a SP with 20 select queries. Each query is table-name-aliased like below.
I have table definition like below: Place (id, name) Review (id, userid, placeid) Favorite
I currently have a table of concentrations, which are linked to a table of
I currently have a table and in one of the <td> , I have
I currently have a Table [org.eclipse.swt.widgets.Table] with several TableColumns; however, due to UI space

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.