myQuery2asdf

0

Please login or register to vote for this query.

(click on this box to dismiss)

Looking for numbers and letters

Italian Language Meta

Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language

-- myQuery2asdf
-- Looking for numbers and letters

/*
  The results should only be values that have at least one number
  and one letter in them.
*/

declare @T table([myField] varchar(10))

insert into @T values ('aaa')
insert into @T values ('111')
insert into @T values ('$$$')
insert into @T values ('$1')
insert into @T values ('$a')
insert into @T values ('a1')
insert into @T values ('a$1')

select myField
from @T
where [myField] LIKE '%[0-9]%'
AnD [myField] LIKE '%[a-zA-Z]%'

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results