I have a question, I have two tables one is called Factura
containing
ID_FACTURA,
ID_CLIENTE,
TOTAL,
I have another table called Detalle
contains the columns
ID_FACTURA,
ID_CLIENTE,
FECHA.
What I need is to make a query in which you get from the table Factura
the ID_FACTURA
the TOTAL
and you get the FECHA
of the table Detalle
I have this code but I get an error
SELECT FACTURA.ID_FACTURA,FACTURA.TOTAL
FROM FACTURA
INNER JOIN DETALLE
ON FACTURA.ID_CLIENTE = DETALLE.ID_CLIENTE
WHERE ID_CLIENTE = 1