Hello everyone!
I know this is a real beginners question…
But i really cant seem to find a way to get this working.
I have the following querie:
SELECT sum(amount * kcal) FROM journal_data_personaljournal
LEFT JOIN journal_data_foodtype
ON journal_data_personaljournal.food_id = journal_data_foodtype.id
LEFT JOIN journal_data_foodvalues
ON journal_data_foodtype.nutritions_id = journal_data_foodvalues.id
where date=current_date()
Example output (See Image) : 85
When i try to use the “Manager.raw” it outputs this on my page
<RawQuerySet: SELECT sum(amount * kcal) FROM journal_data_personaljournal LEFT JOIN journal_data_foodtype ON journal_data_personaljournal.food_id = journal_data_foodtype.id LEFT JOIN journal_data_foodvalues ON journal_data_foodtype.nutritions_id = journal_data_foodvalues.id where date=current_date()>
Thank you