Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple SQL QUestion

Status
Not open for further replies.

united07

Programmer
Jun 1, 2004
2
AU
I work with a database on Intenet sites

I am trying to work out people who visit Home Pages only and no other part of a domain.

Is there a way in SQL I can search for ' exclusively and nothing which comes after eg /homeloans?
 
Use the LIKE functionality:

SELECT * FROM tablename
WHERE columnname LIKE '
The % above is a wildcard. You may be used to *, which is used as wildcard character in many other places. But in SQL you use %.

If needed, you can even put another % in the beginning of the string, to make it insensitive for '
SELECT * FROM tablename
WHERE columnname LIKE '%

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top