I am trying to order the results of a sql query of one table using the column of another table. Is it possible to include this column from a different table in my results?
For example, this query uses an inner join to order items in the Children table based on the Parent table's column "dateReceived":
SELECT c.*
FROM children c
INNER JOIN parent p
ON c.parent_id = p.parent_id
ORDER BY dateReceived ASC;
The view would be more helpful if it could somehow include the "dateReceived" column from the Parent table in the results. I am new to SQL, is this possible?
Thank you.