Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
40 views

Consider a string like Ana (16) and Brian (14) are my children. How to get the value of the first parenthesis? ('16' in this case.) I tried with substring('Ana (16) and Brian (14) are my children.' ...
Iniyavan's user avatar
  • 113
-1 votes
1 answer
315 views

AttributeError: 'str' object has no attribute 'slice' I'm trying to print the last word if every line in a file but while slicing the last word of each line (each line in file is a string) I'm getting ...
Tanaya's user avatar
  • 3
1 vote
4 answers
93 views

Suppose I have these variables in R: vals <- c("b", "c") foo <- data.frame(x=c("a|b", "b|c", "c|d", "e|f|g")) I'd like another column ...
dfrankow's user avatar
  • 21.7k
-1 votes
1 answer
39 views

I have a list of people's names and ages. Through function array_filter(), I can filter people who are over 40 years old, which returns the correct answer But if I want to put a filter for the names ...
arseni44's user avatar
0 votes
1 answer
196 views

I need to find the records that matches a string. I am using 'contains' function but it's not fetching me any results. Any idea on how can I get the records matching a string. If contains([Description]...
Nyk18's user avatar
  • 3
-3 votes
1 answer
158 views

I want to read data from a TXT/FLAT file and arrange the data using the first column contents as column names and the data after the semi colon as records . SAMPLE DATA {1:F01SBZAZAJJXXXX9999999999}{2:...
Jimrosy P Madzokere's user avatar
0 votes
1 answer
98 views

I am trying 2 different codes on how to print the first 13 cards but i can't seem to know how. 1. I need to print only the first 13 cards here but idk how to. 2. This another code, I am confused on ...
mama b's user avatar
  • 21
-1 votes
1 answer
119 views

I have address data. The address data is separated by commas and I need to display the city corresponding to this address in the next column on the sheet. The city itself is indicated in the address. ...
skrtsway's user avatar
-2 votes
1 answer
100 views

If input is: Jane Silly Doe Output is: Doe, J.S. If input is: Julia Clark Output is: Clark, J. Issue: I can make it run for either or but not both This only works for input Jane Silly Doe but not for ...
Dlal529's user avatar
  • 13
0 votes
0 answers
62 views

I copied and pasted the content into my text area and stored it in the database then I found Unicode characters as shown in the attached image in my database. How can I detect or replace them while ...
Ruchita Sheth's user avatar
1 vote
1 answer
477 views

fun main() { val delDetails = "2-hello,3-world,4-why,5-is,6-it,7-like,8-this" val delDetailEmpty = "" val delPositions = delDetailEmpty.split("-",",")....
Swaminath Bera's user avatar
1 vote
2 answers
48 views

I want to take a word from a user and convert it into the separate characters' ASCII values, putting them in a list and seperating them by a hyphen. It then adds the user input for 'number' to each ...
Blaze Perron's user avatar
0 votes
1 answer
2k views

I've inherited a MS Access database which I should batch-update some data on. Thus, I've created a new query and as a first test tried to get some filtered record list - without success. Access ...
Thorsten Dittmar's user avatar
2 votes
1 answer
976 views

I have the following queries - SELECT "Abc" AS result; +--------+ | result | +--------+ | Abc | +--------+ SELECT TO_BASE64("Abc") AS result; +--------+ | result | +--------+ | ...
Payel Senapati's user avatar
1 vote
2 answers
264 views

This is weird. As per MySQL developer website - MySQL CHAR_LENGTH(str) Returns the length of the string str, measured in characters. A multibyte character counts as a single character. This means ...
Payel Senapati's user avatar
0 votes
1 answer
170 views

Using Postgres 11, how can I execute a series of string functions in the same query, where subsequent string function calls execute against the results of previously executed string functions? My ...
refriedjello's user avatar
2 votes
0 answers
279 views

I'm trying to implement question 8.13 from C How to program, which is simply shifting left from the second char of the string and concat the first char of the string with "ay". For example: ...
akoluacik's user avatar
-3 votes
1 answer
3k views

I need to delete the last 3 characters from a variable in Windows batch set string=abcdefghij I need the following output: abcdefg I can delete the first 3 characters from the variable using this: ...
Joe Jobs's user avatar
  • 251
-1 votes
1 answer
129 views

I want to make a if where it checks if a Substring is a ". Like here: char comma = '"' if(String.Substring(6, 1) == comma) But this doesnt doesn't work and it gives me this error Error ...
Tobias Schober's user avatar
0 votes
1 answer
317 views

I got an idea that i wanted to make today but ran into the problem that i have a string variable with paragraph, but i need an Array of single lines. So I tried to do this with the String.Substring ...
Tobias Schober's user avatar
0 votes
0 answers
155 views

I need to run bunch of scripts saved in text. I need to convert them to JavaScript during runtime and it may have some calls to some functions within that class to get some data, like shown below. ...
Rahul Joshi's user avatar
-1 votes
3 answers
132 views

I have been trying to solve a particular question in my own amateur way from the Python 3 Bootcamp on Udemy. So far, there is an error, I guess, in the append() line of my python code. Here I have ...
Yashiikkaa's user avatar
-2 votes
3 answers
678 views

String s = "1234"; for(int i=0;i<s.length();i++) { System.out.println(s.charAt(i)); System.out.println(s.charAt(i)-1); } In the above line of code , for the ...
Ashish Srivastav's user avatar
0 votes
3 answers
100 views

In my code, I am trying to prompt the user to input their name, social security number, userID, and password, while outputting the social security number in "xxx-xx-xxx" format, essentially ...
sticks_'s user avatar
  • 13
2 votes
2 answers
28k views

I have a table with ORC Serde in Athena. The table contains a string column named greeting_message. It can contain null values as well. I want to find how many rows in the table have a particular text ...
Ajay Kr Choudhary's user avatar
2 votes
5 answers
1k views

I want to eliminate some text pattern from a string, my string has a pipe delimiter, and the parameters do not always follow each other. This is my string TType=SEND|Status=OK|URL=min://j?_a=3&ver=...
Omari Victor Omosa's user avatar
-1 votes
2 answers
500 views

I want to know if you can find a letter by entering the position of it so it gives you the letter back. In other words, I want a function that is the opposite of the find function? P.S. if myString is ...
Dave Brown's user avatar
0 votes
0 answers
56 views

String text = "time : 11/22/2019 10:22:22 AM Message: db connection failed. Catergory: debug Priority: 2 EventId: 5 process Id: 12 process name: exe.win32" How can I do the pattern matching ...
Passionate1's user avatar
0 votes
5 answers
1k views

For example the name Donald trump (12 character) brings up the error string index out of range 7 (where the space is found) even though the name Donald trump is longer. package test; import javax....
user avatar
2 votes
1 answer
2k views

How can I make my string.charAt() look for multiple characters at once? I'm looking to reduce the lines of code I have in my program, just wondering how I can fit multiple characters into one line. ...
Riley mangoes's user avatar
1 vote
2 answers
989 views

I have a table with a specific set of characters containing the value, it's decimal and hexadecimal equivalents. /-------------------------\ |value|decimal|hexadecimal| |-------------------------| | ...
SamuelFernandes's user avatar
0 votes
2 answers
2k views

Say there is a varchar column account_id all of them are 10 integer like 1234567890. How can I format a value like 1234567890 to 123-456-7890 in mysql? 1234567890 => 123-456-7890
jia Jimmy's user avatar
  • 1,846
2 votes
1 answer
3k views

I am trying to implement this exact solution linked below, but it seems GROUP_CONCAT_UNQUOTED is no longer a valid BQ function. Is there a solution to this that works in 2020? p.s. I would have just ...
johnnymux's user avatar
0 votes
3 answers
140 views

I'm trying to build SQL function that I can use as a default value for a column. The function is about selecting an avatar image path randomly if the user didn't assign an image. I have tried to but ...
user avatar
-2 votes
2 answers
7k views

I am writing a program in C++. When I use the strlen function, it is underlined by a red line. Although the project is built without errors. This is how I use this function. (By the way, strcpy is ...
e7min's user avatar
  • 41
1 vote
0 answers
2k views

Since I already know how to get the CPU speed of the current server in SQL Server and I can find out the last time SQL Server service started and the total RAM memory on the current server Now I ...
Marcello Miorelli's user avatar
0 votes
1 answer
227 views

I am using java to process Xpath for my project. I have and XMl similar to this ''' <Tag1> <Tag2> <Name>ABC\Test</Name> <value>10</value> </...
Anuj Priyadarshi's user avatar
0 votes
3 answers
64 views

i have a table with 4 columns ID,ROL_NUM,NAME,DEPT and having records as below : ID ROL_NUM NAME DEPT 1 1 Rajasekar CSE 1 1 Bala ...
Raja sekar's user avatar
0 votes
2 answers
969 views

I can’t use strset function in C. I'm using Linux, and I already imported string.h but it still does not work. I think Windows and Linux have different keywords, but I can’t find a fix online; they’...
TheNewBeeeee's user avatar
-1 votes
2 answers
33 views

I have string from which I need to get sub-string between a start and end phrases. Below is my string and start and end phrase. MY STRING Consolation Prize- Rs. 8,000/- NN 189822 NO 189822 NP ...
Arun's user avatar
  • 3
3 votes
1 answer
10k views

I want to delete entries from an internal table, which has not a "+" in one column. Now, if I want to delete it like this: DELETE internal_table where field1 <> '+'. it doesn't work. This ...
Sasku's user avatar
  • 516
0 votes
0 answers
52 views

I´m dealing with Sabre/vobject. To read property values it is necessary to do a casting: echo (string)$vcard->FN; I forgot that a few times and observed that for example: $number = str_replace("\...
Black Senator's user avatar
0 votes
2 answers
192 views

I am trying to get three columns as a string but for some reason I only get NULL. this is the code: SELECT CONCAT(name, ' ', city, ' ', country) FROM places the table places contains the three ...
Abdel Hidalgo's user avatar
0 votes
2 answers
2k views

I have the following SQL expressions, which do exactly what I need them to: DECLARE @ServerName NVARCHAR(20) SET @ServerName = RIGHT(@@SERVERNAME, LEN( @@SERVERNAME) - CHARINDEX('-', @@SERVERNAME)) ...
Jeremiah Williams's user avatar
2 votes
1 answer
168 views

I'm thinking about using https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_field, but it doesn't say anything about any limits in terms of how many values it can support. Does ...
Bob Risky's user avatar
  • 945
-2 votes
2 answers
268 views

I am retriving data from table and display it in textview , i have break the string using breakString() method but in last two data that are starcast and director , its showing ...
Yash Dadhaniya's user avatar
0 votes
0 answers
50 views

I have a string of numbers separated by spaces. I want to add each number to an array. The string of numbers is in a textbox text property. The syntax for the old field function is: FIELD (string, ...
George Jorgensen's user avatar
0 votes
1 answer
849 views

Please Excuse me if this is Simple... I am new to SQL..I am need to Run this Custom SQL Query to get data from Microsoft SQL Server. Here is this field TitleName abc_34235 abcd_2_56543 xyz_4532 I ...
drrai66's user avatar
1 vote
1 answer
940 views

What is a cross platform syntax to compare two version numbers? A version has two parts: major version and minor version, both are integer. To compare two versions, first compare their major versions....
eastwater's user avatar
  • 5,808
1 vote
1 answer
1k views

I'm reviewing the Postgres RIGHT() function documentation, right.. For the documentation example: SELECT RIGHT('XYZ', 2); I was expecting the right response as per the documentation viz; right ----...
Nimbocrux's user avatar
  • 519