Solved

In SQL Server, SELECTION based on the first letter of the entries in a given column

Posted on 2009-05-06
3
148 Views
Last Modified: 2012-05-06
I need a query that selects every record for which the last name ("LastName") begins with "S"

Thanks!
John

0
Comment
Question by:gabrielPennyback
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 24321644
Hello gabrielPennyback,

select *
from urTable
where LastName like 'S%'


Regards,

Aneesh
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24321649
select * from tablename where lastname like 's%'
0
 
LVL 1

Author Closing Comment

by:gabrielPennyback
ID: 31578831
Thanks, aneesh.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

13 Experts available now in Live!

Get 1:1 Help Now