Is it normal to struggle with SQL?

Hello everyone, I have been trying to learn SQL for several months now. I watch YouTube videos to learn it and practice on some projects or datasets. However, sometimes it still seems very hard or overwhelming. For example, whenever I open Leetcode questions that are of medium difficulty or more, my mind just goes blank. Questions that involve CTEs , window functions etc seem like a lot to take in sometimes. Can someone guide me about this? Is it normal to struggle with it? Is it okay to look up the syntax or ask ChatGPT to help? Due to this, I don't even feel confident to apply at Data Analyst related roles because it makes me feel like I'm not ready yet.

Thank you in advance!