• + 0 comments

    you can't use cte because hackerrank is using mysql < 8.0. if you wanna use cte, you can change mysql to ms sql server.

    check the link below https://stackoverflow.com/questions/72134462/tried-using-cte-on-hackerrank-its-not-working-what-could-be-the-alternate-sol