Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge many TEXT results into one TEXT field?

Status
Not open for further replies.

MikeBronner

Programmer
May 9, 2001
756
US
Hey All!

I've been reading up on the UPDATETEXT functionality, and it seems like a step in the right direction, however: I am unable to find any examples that update text fields based on query results.

I'm looking for something like this:
Code:
UPDATE target_table SET target_field = source_table.source_field FROM source_table

I know that the syntax is probably more akin to the UPDATETEXT functionality, however, I don't yet know how to incorporate a multi-result select statement into it.

Any ideas?

Take Care,
Mike
 
You can update a table based on join condition of another table and isssue select queries also.
Update A
Set A.Field1 = B.Field1
From A
Join B on A.Field2= B.Field2
Where
....

Thanks and Regards
Siva
 
Yes, but how to I append the multiple TEXT field resulting from the join condition (one-to-many) in the single TEXT field?

Take Care,
Mike
 
Yes, thanks sweth. I have that part figured out.

How do I the one pointer with results from multiple records, though?

Take Care,
Mike
 
The above should read: How do I update ...

Take Care,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top