About 50 results
Open links in new tab
  1. sql - query for substring formation - Stack Overflow

    Jul 10, 2010 · RIGHT is only supported by SQL Server and MySQL. See my answer - there's no silver bullet for consistent substring function name & syntax across databases.

  2. No built-in function in SQL Server for "substring to the end"?

    Sep 7, 2023 · Most implementations of substring support omitting the length argument, returning the substring from the nth position to the end of the string, but not SQL Server's, last time I checked. In …

  3. Get everything before a certain character in SQL

    Feb 19, 2016 · I got the following entries in my database: E01234-1-1 E01234444-1-800000000 I want to trim the entry so I get: E01234-1 E01234444-1 So basically, I want everything before the second '-' …

  4. SELECT Statement with substr in WHERE Clause - Stack Overflow

    Mar 9, 2012 · To get the fields (FieldB, FieldC), I need the correct values of paramA = '123' and paramB = '456' so it will return XYZ and John. If I want to return James then i have to give paramA = '456' …

  5. How to substring string value in SQL Server 2008 - Stack Overflow

    Nov 21, 2012 · Select Substring('KLPI_2012_CBBE2_E_12704_2012-09-21_13_59_52',6,18) If you want to find it within the string, then CharIndex would be useful. Are you sure you want to do this in …

  6. Get everything after and before certain character in SQL Server

    Jun 13, 2012 · I got the following entry in my database: images/test.jpg I want to trim the entry so I get: test So basically, I want everything after / and before . How can I solve it?

  7. Extracting a substring in SQL without knowing the position

    Oct 8, 2024 · Extracting a substring in SQL without knowing the position Asked 1 year, 4 months ago Modified 1 year, 4 months ago Viewed 130 times

  8. Select substring from a column in SQL - Stack Overflow

    Feb 5, 2015 · select count (value) as count from table 1 join table 2 on substring (value,20,10)=substring (code,0,10) where reference='1'. this will work for 2nd query, but it is not way to do it. You are …

  9. sql - select where substring - Stack Overflow

    Sep 10, 2015 · SQL newbie here, but I can't find the solution to something that looks easy: The following query does not seem to have a valid syntax (ORA-00904: invalid identifier), but its logic should be …

  10. Fastest way to find string by substring in SQL? - Stack Overflow

    15 if you dont care about storage, then you can create another table with partial Title entries, beginning with each substring (up to 255 entries per normal title ). in this way, you can index these substrings, …