reutrn string after character sql

select right(col, charindex('-', reverse(col)) - 1)

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
sql get string after character substring after a character sql sql server string after character t sql get part of string after character get string after a character in sql server sql server get string after character TAKE STRING after COMMA IN SQL sql cut string after character substring after sql extract value after character t sql sql remove characters from string whit regex in query select after - character in sql select after - in sql selecting data from database letter before string sql match character after a character sql get all characters before comma how to take till particular char in sql sql substring before character after delimiter sql sql everything after @ sql everything after sql everything after a character sql get everything till number charindex until not number sql select right until character sql query select character after specific character sql pick all characters till first comma select part of string sql until comma sql substring after character from righ ssms find character before specific character sql substring after character how to get text after certain character in sql sql select all characters after / sql server extract everything on rigth after character SQL get value after a character in sql sql get characters before character select substring after character sql extract string after a character in sql get value after last _ sql sql select string after character get substring after character sql sql subsstring until char select all characters after a string sql server substring get right after character extract text after a word in sql sql select part of string after character sql extract text after character and before character sql extract text after character sql Keep Char return eveyrthing after last found character sql sql server substring get everything after character sql server get everything after character
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source