I have a table (bd mysql) where I store several IDs (foreign keys) and now I need to show the data linked to those IDs according to a specific value, which is an identifier.
For example, I should get something like this:
001|identificada|soporte terreno|juanito perez|registrada|2018-04-20|detalle de incidencia
and in my table of inidence, the structure is more or less like this:
id_incidencia, id_tipo,_id_soporte,id_funcionario....
I must use inner join, that I have clear, the issue is that I do not know how to do the query, I have so far this:
SELECT
id_incidencia.tbl_incidencias,
fecha_registro.tbl_incidencias,
detalle_incidencia.tbl_incidencias,
identificacion_categoria.tbl_categoria_incidencia,
FROM
tbl_incidencias
INNER JOIN tbl_categoria_incidencia.id_categoria ON = tbl_incidencias.id_categoria
WHERE
tbl_incidencias.id_registro=1
My request is if you can help me a bit in that I'm wrong, or how I could handle the consultation ...