Skip to content
Advertisement

How can I use a Join from another table when im doing a Max to a column in ORACLE?

Getting This issue in which I’m using a Max to a Column, it returns me the number. (My tables have already the Constraints).

Actual Return

CVEANO CVENUMERO CVEACCION
2021 7 4
2021 1 3

What I Want to Return from TblACCION

CVEANO CVENUMERO CVEACCION CVEACCION NAME Brought from tblACCION
2021 7 4 NAME FOR NUMBER 4
2021 1 3 NAME FOR NUMBER 3

My actual Query is

I’ve tried doing

INNER JOIN tblACCION ta USING (CVEACCION)

and in SELECT

ta.descripcion AS accion

but I guess there’s something wrong, because it always asks me for

  1. 00000 – “missing right parenthesis”

and I did check for parenthesis, but there’s no lack of parenthesis.

UPDATE

I’ve tried this 2.0 , nothing

Advertisement

Answer

As I understood, you are looking for something like this.

Also you can try this.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement