Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Microsoft Query SQL Concatenate

Os: MS XP Excel: MS 2000

Im using Microsoft Query. I would like to concatenate within the query.
How is this done with the SQL in the query?

Thanks in advance.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default Microsoft Query SQL Concatenate

Hi Richard

I think it depends on the driver you are using, but assuming you are
querying an SQL Server db then the following works for me:

SELECT Field1 + '_' + Field 2
FROM Table

so + is the concatenation operator here (the value between the single
quotes is a string literal being concatenated).

Hope this helps!

Richard



Richard wrote:

Os: MS XP Excel: MS 2000

I'm using Microsoft Query. I would like to concatenate within the query.
How is this done with the SQL in the query?

Thanks in advance.

--
Richard


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Query Kay Excel Discussion (Misc queries) 0 October 18th 06 07:11 PM
changing query source [email protected] Excel Worksheet Functions 2 March 21st 06 08:55 PM
Get External Data - not editable using Query Wizard MargaretBeckbury Excel Discussion (Misc queries) 7 January 17th 06 09:13 AM
Creating Date Range in Pivot Microsoft Query Ian Excel Discussion (Misc queries) 0 November 20th 05 10:10 PM
Any alternative to Microsoft Query? madeqx Excel Discussion (Misc queries) 2 June 15th 05 08:57 AM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"