I am fairly new to SQL and data engineering. Recently, I happened to come across window functions and realized that the operation window functions perform can also be done with group by. Can someone here please explain the difference between the two and when one would use window functions over group by.
To mods - Please do not close this question. This question has not been posted before and I believe a good answer will bring a lot of value to the stack community. I scoured the internet looking for answers, but no website/article/video had a clear explanation and they only added to my confusion.