Link to home
Start Free TrialLog in
Avatar of isames
isames

asked on

SQL Query

Say I have a column that has this info:

Column Name
1101 - 512123
1101 - 123456
1101 - 410000
1101 - 415800


How do I write a where clause that give me info for all the rows that have 1101 - 4*****
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Assuming a space on both sides of the dash...
SELECT ColumnName
FROM YourTable
WHERE LEFT(ColumnName, 8) = '1101 - 4'

Open in new window

Avatar of isames
isames

ASKER

I'm sorry.

Np spaces
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of isames

ASKER

Thanks!!!
Thanks for the grade.  Good luck with your project.  -Jim