sql command error [modified]
-
Dear Get the list of Customers where Company Name's 2nd letter is Consonant. (Table: Customers) i am using northwind database.plz tell me how to solve that problem. any comments are highly appreciated. Shafik
modified on Thursday, August 4, 2011 3:45 AM
What have you tried? Are you using SQL? ADO.NET? LinQ?
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
-
Dear Get the list of Customers where Company Name's 2nd letter is Consonant. (Table: Customers) i am using northwind database.plz tell me how to solve that problem. any comments are highly appreciated. Shafik
modified on Thursday, August 4, 2011 3:45 AM
-
You haven't mentioned what database you are using. For MS SQL Server, it would be:
SELECT * FROM Customers WHERE SUBSTRING(CompanyName,2,1) NOT IN ('a', 'e', 'i', 'o', 'u')
What is the second character in the computer name is not a letter, like O'Darby?
-
What is the second character in the computer name is not a letter, like O'Darby?
Oh, well then... You'll need two more tables:
CharacterClass
ID CharacterClass
1 Vowel
2 Consonant
3 Digit
4 Symbol
5 WhitespaceCharacter
Character CharacterClass
A 1
B 2
...Then simply JOIN. :jig:
-
Oh, well then... You'll need two more tables:
CharacterClass
ID CharacterClass
1 Vowel
2 Consonant
3 Digit
4 Symbol
5 WhitespaceCharacter
Character CharacterClass
A 1
B 2
...Then simply JOIN. :jig:
PIEBALDconsult wrote:
Oh, well then...
You'll need two more tables:I know that.. I wanted others to think the answer through...
-
PIEBALDconsult wrote:
Oh, well then...
You'll need two more tables:I know that.. I wanted others to think the answer through...
Chances are the O' folks never made it into the database because parameters were not used for the input, and no one did a .Replace("'","''") on the SQL string, so it's not an issue.
It always itches for the first week or so. My Mu[sic] My Films My Windows Programs, etc.
-
What is the second character in the computer name is not a letter, like O'Darby?
-
Chances are the O' folks never made it into the database because parameters were not used for the input, and no one did a .Replace("'","''") on the SQL string, so it's not an issue.
It always itches for the first week or so. My Mu[sic] My Films My Windows Programs, etc.
-
Chances are the O' folks never made it into the database because parameters were not used for the input, and no one did a .Replace("'","''") on the SQL string, so it's not an issue.
It always itches for the first week or so. My Mu[sic] My Films My Windows Programs, etc.
Isn't that just the luck of the Irish. :~
-
PIEBALDconsult wrote:
Oh, well then...
You'll need two more tables:I know that.. I wanted others to think the answer through...
I thought I was being facetious in my over-engineering way. :-D