Thank y'all On Sun, 10 Oct 2021 at 11:49, Sebastian Jung <[email protected]> wrote:
> Hello Eugene, > > You can also take a raw query... > > https://docs.djangoproject.com/en/3.2/topics/db/sql/ > > Regards > > Eugene TUYIZERE <[email protected]> schrieb am Sa., 9. Okt. 2021, > 10:52: > >> Dear all, >> >> I have a table let call it *YY*. Some fields in this table are status, >> time_frame, etc. >> time frame is in terms of years and status are Not started, In progress >> and Completed. I want to display all services Not started, in progress and >> completed in each year. >> And at the end to display this on bar chart. but What I most want is the >> query. >> >> I want to transform this SQL query in Django: >> >> SELECT status from YY group by time_frame; >> >> please assist >> >> -- >> *TUYIZERE Eugene* >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CABxpZHsysRxgE9bn9c9naLY%2BtWmKRfwpr%2BUsMYiAV_ZcPC_3Hw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CABxpZHsysRxgE9bn9c9naLY%2BtWmKRfwpr%2BUsMYiAV_ZcPC_3Hw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAKGT9mzGkqVRSUjNWuU%2B1kyYB4vRCBh3ZjBTP-Ha0g71VaHyiA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAKGT9mzGkqVRSUjNWuU%2B1kyYB4vRCBh3ZjBTP-Ha0g71VaHyiA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- *TUYIZERE Eugene* *Msc Degree in Mathematical Science* *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal Garden-Lime, Cameroon* Bsc in Computer Science *UR-Nyagatare Campus* Email: [email protected] [email protected] Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABxpZHtF7wQnqjb3Ypf1VXDeQUW6_XEpHFVRHjYm6Oh3w5BRXg%40mail.gmail.com.

