Link to home
Create AccountLog in
Avatar of John500
John500Flag for United States of America

asked on

Query syntax for inserting a tab between results/columns

Greetings,

My query:

SELECT (Entity + '   ' + Name) FROM Entity Order By Entity

Is there anyway to insert a tab instead of a space.  I'm using the results in a C# combo box.  I want the two columns placed in one row of the dropdown box.  A space really isn't enough for ease on the eyes.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of dsacker
dsacker
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
My bad. Meant CHAR(9).
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of John500

ASKER

Thanks to all !

When I tried:

SELECT (Entity + CHAR(9) + Name) test FROM Entity Order By Entity


The result comes out correct in the C# combo box but only for any item selected or indexed.  Otherwise, when the dropdown arrow is clicked all the other results show side-by-side with no space whatsoever.  You would think once the box got filled it would fill correctly, no?

As I say, any item selected will display correctly.  I need to look closer at ged3 suggestion...
Avatar of John500

ASKER

Still couldn't get the end result to appear correctly in the drop-down...