How can I get data from two tables?
Example.
thefields
'assunto,nomeremetente,cpfremetente,observacao'databela**protocolos**
anddatacriacao
ofthedocument_documenttable
isofdocument_documentisdataformat(datacriacao,'%d/%m/%Y')asdatacriacao
thusgettingtheinitialquery.
$Query="SELECT
dataformat(datacriacao,'%d/%m/%Y') as datacriacao,
assunto,nomeremetente,cpfremetente,observacao
FROM protocolos
ORDER BY formatted_date DESC";