I have a table with strings (ItemCode) like: 99XXX123456-789 12ABC221122-987BA1 They are always of a length of 11 characters (upto the - of which the ...
I have a table with strings (ItemCode) like: 99XXX123456-789 12ABC221122-987BA1 They are always of a length of 11 characters (upto the - of which the ...
I have a Psotgresql query and I need it for MySQL, is it possible to refactor this code to work on MySQL? ...
could you help me with such question: I have such request I need to find first position column b in column b_ost If i use PATINDEX('%48 %', b_ost) ...
I have a string like below: 194736 BBLS FLUID 3800880 LBS 40/70 361060 LBS I have used the following to fish out the '3800880' where I used a functi ...
I am trying to extract the date from a string. I am using the below mentioned query using both SUBSTRING and PATINDEX: I am confused by the results ...
Using SQL Server, I have a column with numeric and Roman numerals at the end. How do I remove the numeric alone without specifying the position? ...
I'm writing different queries in SQL Server. I have 2 tables, Employees and Departments. Table Employees consists of EMPLOYEE_ID, ENAME, ID_DEP - dep ...
Please consider the below table. I am trying to retrieve only the EUR amount within the Tax strings. Some records vary more than the other in size, bu ...
Does anyone have script that can pull out data held in the columns to split out the servernames in to their own columns? So ID 1 & 2 would beco ...
I am trying to check if a given parameter in a SP is eligible to be used and I have the following REGEX: It supposed to find a match for entries li ...
I've been looking for a way to simplify the patindex code below, but haven't succeeded yet. Is there anyone who can tell me if this is possible witin ...
I need an advice with gettin substring from a long string like: "/Q2-2020/ CompanyName, Some more additional details (12:20 - 15:37), Krakow" What i ...
I have a string with this format and I would like to put the numbers in different columns, giving to each column the name you can find in the strin ...
I am trying to extract 5 or more consecutive numbers from from Table A Column x and match the extracted numbers to Table B column z. If the value exis ...
SQL Server 2017. Given the following 3 records with field of type nvarchar(250) called fileString: I would want to return: Attempted thus far w ...
With this query I get the postal code from an address and it works, but there are some cases where the address number's length is 5 and so I get this ...
I need to select column from a table removing " ' and space and that is to be exported in a csv file. for example if the column contain "155/229-230 M ...
I believed trailing spaces are ignored in SQL everywhere until I encountered a scenario with PATINDEX where they aren’t ignored. Case 1: SELECT PATIN ...
I'm using SQL Server 2014. I understand how to extract numbers from a string using PATINDEX (Query to get only numbers from a string), however, how w ...
I have this function to clear off the unwanted characters: I use that function in the following script that I working on to get the last time the m ...