943,727 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 3526
  • MS SQL RSS
Aug 25th, 2008
0

select from part of column query

Expand Post »
how do i select data from a table by sorting the first word from a column?

for example:

"user1 hello"
"user2 one two three"
"user3 where are you"
"user1 im fine"

how can i select all the data starting with "user1"?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
peanutong is offline Offline
2 posts
since Aug 2008
Aug 25th, 2008
0

Re: select from part of column query

MS SQL Syntax (Toggle Plain Text)
  1. SELECT * FROM tb_TableName WHERE AColumn LIKE 'user1%'
Last edited by huangzhi; Aug 25th, 2008 at 5:12 am.
Reputation Points: 10
Solved Threads: 13
Light Poster
huangzhi is offline Offline
48 posts
since Feb 2008
Aug 30th, 2008
0

Re: select from part of column query

sql Syntax (Toggle Plain Text)
  1. SELECT*FROM (Tablename) WHERE (Colom) ," "
Last edited by peter_budo; Aug 30th, 2008 at 5:43 am. Reason: Keep It Organized - please use [code] tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prasannapower is offline Offline
20 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: MS Access to MS SQL Server
Next Thread in MS SQL Forum Timeline: SQL help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC