2
How can I get data from two tables?
Example.
the fields
`assunto,nomeremetente,cpfremetente,observacao` da tabela **protocolos**
and the datacriacao
table protocolo_documents
is of the protocolo_documents is dataformat(datacriacao,'%d/%m/%Y') as datacriacao
thus the initial query .
$Query ="SELECT
dataformat(datacriacao,'%d/%m/%Y') as datacriacao,
assunto,nomeremetente,cpfremetente,observacao
FROM protocolos
ORDER BY formatted_date DESC";
What is the difference between INNER JOIN and OUTER JOIN?
– rray
@rray You are very fast today :p
– Jéf Bueno
@rray wants to get only the protocolo_documents table creation and the rest of the protocols table.
– allan araujo
@allanaraujo, what relation between the tables?
– Marco Souza
I want to take all the data subject, forwarder, forwarder, observation and bring up the dating of protocolo_documents
– allan araujo