About 23,400,000 results
Open links in new tab
  1. SQL: how to get the left 3 numbers from an int - Stack Overflow

    Apr 14, 2010 · For SQL Server, the easiest way would definitely be: SELECT CAST(LEFT(CAST(YourInt AS VARCHAR(100)), 3) AS INT) Convert to string, take the left …

  2. SQL Server LEFT() Function - W3Schools

    The LEFT() function extracts a number of characters from a string (starting from left). Syntax

  3. SQL LEFT function in queries - SQL Shack

    Oct 22, 2021 · The LEFT function is one of the built-in string functions and returns the left part of the input character string according to the specified number of characters. Now we will make a …

  4. SQL LEFT Function Use and Examples - SQL Server Tips

    Apr 27, 2025 · The LEFT function is used to provide the left part of a string according to a specified number of characters. Syntax LEFT(expression, NumberCharactersReturned) …

  5. LEFT Function in SQL Server

    Nov 13, 2023 · In this SQL Server tutorial, you covered how to extract the characters from the left side of the given expression or value using the LEFT() function in SQL Server. Then how to …

  6. Return data to the left of a dash - Microsoft SQL Server ... - Tek-Tips

    Apr 4, 2016 · The INSTRING, INDEX, or in T-SQL CHARINDEX expression will help you find the location of the dash. Then you can use SUBSTRING to get the string from position 1 to the …

  7. SQL Server LEFT() Function - SQL Server Tutorial

    You will learn how to use the SQL Server LEFT() function to extract a specified number of characters from the left side of a string.

  8. sql - finding the leftside of the number from my query - Stack Overflow

    Sep 7, 2022 · CAST the number as string and the you can chekc the string for the positions of the one. You can nest the CASE WHEN to the depth that you need. value, CASE …

  9. How LEFT works in SQL? Best LEFT examples - KajoData

    One such function is LEFT(), which allows you to extract a specified number of characters from the beginning (or left side) of a string. In this article, I’m going to break down how the LEFT() …

  10. LEFT () in SQL: Examples, Use Cases & Error Handling

    The LEFT() function in SQL extracts a specified number of characters from the beginning (left side) of a string. It is commonly used for parsing text data, extracting fixed-length identifiers, …

  11. Some results have been removed
Refresh