i have a column called Email in my sql database so i need to left my column to get whats before the @ symbol
Advertisement
Answer
You can use split_part()
:
select split_part(email, '@', 1)
i have a column called Email in my sql database so i need to left my column to get whats before the @ symbol
You can use split_part()
:
select split_part(email, '@', 1)