Solved

Display rows in SQL table that contain a string

Posted on 2013-02-02
2
279 Views
Last Modified: 2013-02-02
I need to list rows in the Keywords table where the Keyword column contains the string 'penny'

What is the tsql syntax?

KewWordID    Keyword
528            2011 penny stocks
658            2012 best penny stocks
216            2012 best stocks
905            2012 cheap stocks
767            2012 penny stocks
1185            2012 penny stocks to buy

Thanks
0
Comment
Question by:Dovberman
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 300 total points
ID: 38846660
select * from Keywords where keyword like '%penny%'
0
 

Author Closing Comment

by:Dovberman
ID: 38846697
Perfect.

Thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now