r/SQL • • Aug 25 '26

SQL Server SQL String Functions Are Confusing šŸ˜µā€šŸ’« Any YouTube Recommendations?

Post image

I’m currently learning SQL and I’m really struggling to understand string functions like CONCAT(), SUBSTRING(), LEFT(), RIGHT(), TRIM(), REPLACE(), UPPER() and LOWER().

The syntax is not the only problem — I’m finding it difficult to understand when and why to use each function.

Can anyone suggest a good YouTube channel or video that explains SQL string functions in a simple, beginner-friendly way with practical examples?

Would really appreciate your recommendations

0 Upvotes

12 comments sorted by

View all comments

Show parent comment

0

u/TemporaryDisastrous Aug 25 '26

Now write me a charindex mess to try and simulate regex and pull out some values because the database you're using doesn't support it and the data you need to process is stored at random spots with shitty formatting in a string field and tell me it's still simple :p

5

u/mrpostitman Aug 25 '26

The functions are simple; the tangles we're sometimes forced to weave are anything but.

1

u/TemporaryDisastrous Aug 25 '26

Indeed, that is what I was saying. The same is true of basically any code.

1

u/Imaginary__Bar Aug 25 '26

OP's post said;

I'm really struggling to understand string functions like CONCAT(), SUBSTRING(), LEFT(), RIGHT(), TRIM(), REPLACE(), UPPER() and LOWER()

Slightly more simple than your example.