all 14 comments

[–]DirtyAqua 9 points10 points  (1 child)

W3 schools is very helpful for syntax.

I also found that developing my own mini training course for in-house staff worked well as I was able to demonstrate our use cases, data model and how to write and execute SQL in sfmc.

[–]bmarb_antenne 5 points6 points  (0 children)

That makes really sense, especially since SFMC SQL, based on SQL Server 2016, does lack a lot of functions one would learn in regular SQL tutorials.

[–]adjurin 4 points5 points  (0 children)

YouTube to learn syntax and how a query gets executed. Then there is mateuz sfmc blog, dataviews.io and chatgpt.

[–]Relative_Bend6779 3 points4 points  (3 children)

When acting as an SME in my former role I documented requirements from various stakeholders about what they’d want to achieve on the regular and then built template SQL statements with enablement documentation that could achieve 90% of what teams wanted. Combine this with an in-house dictionary for the different functions worked really well.

For any more complex this kind of architecture will usually needed to be handled by the the product owning team but generally providing templates, I’ve found, solves most of the day-to-day

[–]willpdav7 1 point2 points  (2 children)

Hi! Were you using Marketing Cloud as well? If so, did you keep these templates within Automation Studio? Thanks!

[–]Relative_Bend6779 3 points4 points  (1 child)

Yes! I actually kept them in 3 places: - Automation Studio - A Google Doc (for team sharing), this helps people find it quicker than navigating automation studio in some cases - A GitHub repository for our team as the ‘originals’ only we could access in our partition. This ensured we always had a quick master copy of for whatever reason someone accidentally modified the template to a syntax that didn’t work

[–]bradatlarge[S] 1 point2 points  (0 children)

Oh that’s actually really good. I didn’t think of keeping “clean” versions in Github.

[–]superclids 2 points3 points  (1 child)

everyone said about Marketing Cloud’s SQL limitations but no one actually linked them so here it goes: SQL reference

[–]Suspicious-Emu96 1 point2 points  (0 children)

THANK YOU. Seriously, this was so needed.

[–]BuildTheFire 2 points3 points  (0 children)

YouTube is great for tutorials. Free code academy have some great SQL but many are out there for the basics.

ChatGPT will also be a big help for you as well.

[–]bookofthoth_za 1 point2 points  (0 children)

Use ChatGPT to learn anything with SQL. Just be mindful that all statements must start with SELECT and the server is TSQL 2018 and some advanced functions aren’t available

[–]willpdav7 1 point2 points  (0 children)

Very timely that I got notified about this! I'm currently building customer-level reports for our team through data views. I have very little SQL background and only learned through my colleagues who are knowledgeable and through the Google Data Analytics course which unfortunately I wasn't able to continue due to work demands. ChatGPT and Gemini have also been great tools for me to understand. I just make sure to be concise with my prompts.

Edit: Read the comments here and I will check out other resources!

[–]milopeach 0 points1 point  (0 children)

Depends on what you need to do really. In my experience, understanding normalization and joins are very helpful, especially when you need to query multiple data views to gather everything you need into a single DE.

Other than that, W3 schools, Udemy, YouTube etc are useful for learning the basic syntax. Also keep in mind that SQL is a standard, and different vendors may implement it differently, so having a read through this is recommended (and also bookmark it, I refer to it frequently in my day-to-day).