0
I have two tables a TEAM another MATCH_DETAILS. The table TEAM has the spine id and is a primary key. I made two table reports TEAM for MATCH_DETAILS. In the MATCH_DETAILS assumed as foreign key team_id and team_id1.
With the following query:
SELECT
team_name, team_id1, Umpire_name,
playermatch_name, score_id
FROM
Match_details m, Team t,
Umpire u, player_match p, Score s
WHERE m.TEAM_TEAM_ID = t.TEAM_ID
and m.TEAM_TEAM_ID1 = m.TEAM_TEAM_ID1
and m.UMPIRE_UMPIRE_ID = u.UMPIRE_ID
and p.Match_details_MATCH_ID = m.match_id
and s.Match_details_MATCH_ID = m.match_id;
Returns the following:
I think Chelsea has a way id number 1 the id number 2 in column team_id1 corresponds to me liverpool. What I intend to do is show up Liverpool and not the id which corresponds.

I tried your suggestion and it didn’t work presents the following error:ORA-00933: SQL command was not finished correctly 00933. 00000 - "SQL command not properly ended"
– Diana Madeira
@Dianamadeira, I edited the answer. Missing include "JOIN" in two of the junctions
– bruno