Avatar of Julie Kurpa
Julie KurpaFlag for United States of America

asked on 

SQL Query resultset contains "&"

I have a SQL Server database table that contains "&" in the data strings.  When I query the data, it comes out as "&" instead of "&".  

Here's what the data looks like in table PEOPLE (when I have SSMS show me the the first 1,000 rows):

ID,Name
1,Fred & Wilma
2,Barney & Betty

I built some views of the table and instead of seeing the "&", I see "&" in the result set.

select name from PEOPLE;

Fred & Wilma
Barney & Betty

How do I get it to just show the "&" instead of "&"?   I'm exporting the resultset to Excel.

Thank you. 


SQL

Avatar of undefined
Last Comment
Julie Kurpa
ASKER CERTIFIED SOLUTION
Avatar of Julie Kurpa
Julie Kurpa
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SQL
SQL

SQL (Structured Query Language) is designed to be used in conjunction with relational database products as of a means of working with sets of data. SQL consists of data definition, data manipulation, and procedural elements. Its scope includes data insert, query, update and delete, schema creation and modification, and data access control.

61K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo