Skip to content
Advertisement

Tag: database

MySQL. Retrieve data from many tables with column in common

I have the following tables in my database. TABLE_AVATAR TABLE_DOCUMENTS My goal is to retrieve all data from all the tables for each employee. TABLE_EMPLOYEES will contain 1 row per record (I need all data), TABLE_AVATAR can hold many rows per record (I only need the newest one (id desc)), and TABLE_DOCUMENTS can hold many rows per record as well

Advertisement