Where to put single quatation marks in a query?

SQL 2014
I want to retrieve all the records that the value in Column A is the following phrase.
(SHIPPER'S LOAD AND COUNT.)
Note: The phrase includes parenthesis, apostrophe and period.)

Select * from Table A where Column A = '(SHIPPER'S LOAD AND COUNT.)'
This gave me an error.

Would you tell me how and where I need to put quotations? Thank you very much in advance.
kg6lfzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeOwner, Developing Solutions LLCCommented:
Try:

SELECT * FROM [Table A] WHERE [Column A] = '(SHIPPER''S LOAD AND COUNT.)'

notice that i've replace the embedded single quote with two single quotes, side-by-side.  Access and SQL will both interpret this as a single embedded quote.

Are you doing this in Access, SQL Server, other?
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dean ChafeeIT/InfoSec ManagerCommented:
If your table and column name include space then you need to enclose in brackets, and I think also replace the single quote with [  ]
(not tested)


Select * from [Table A] where [Column A] = [(SHIPPER'S LOAD AND COUNT.)]
0
kg6lfzAuthor Commented:
SQL. Thank you for your help, Dale.
0
Dean ChafeeIT/InfoSec ManagerCommented:
Yup, what Dale said... double quote

SHIPPER''S

i missed that,   DOH
0
Dale FyeOwner, Developing Solutions LLCCommented:
glad to help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.