Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Querying Multiple fields

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-17 : 08:05:00
Jim writes "I am trying to query several fields at one time in MS SQL. In access a created a a field in a query called keywords. That field consist of multiple fields. How do I do that in SQL. I can get it to display two (2) fields in one (1), but I need four (4) fields. Or is there an easier way?

Thanks in advance."

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-06-17 : 08:08:04
Is this?
Select col1+' '+col2+' '+col3+' '+col4 from yourTable
If datatypes are different, you need to convert them to varchar

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -