We help IT Professionals succeed at work.
Get Started

Update field, concatenate

phileoca
phileoca asked
on
414 Views
Last Modified: 2013-12-24
I have 3 tables, but we just need 2 of them ATM
I'd like to concatenate the Group name and the item Name together in the new field in the Items table
I know i can do this in access, so doing it in cold fusion should be very possible, i just dont know the procedure yet.

table 1: Groups
GroupID (autonumber)
GroupDescription (text)

e.g.
1     GroupA
2     GroupB
3     GroupC

Table 2: Items
ItemID (autonumber)
GroupID (Number) ' used for matching
ItemDetails (Text)
GroupItemDetails (text)

e.g. (current)
1    1   ItemA        
2    1   ItemB
3    2   ItemC
4    2   ItemD
5    3   ItemD

I'd like it to be like this: (concatenating the GroupDescription and the item details.)
e.g. (current)
1    1   ItemA        GroupA-ItemA
2    1   ItemB        GroupA-ItemB
3    2   ItemC        GroupB-ItemC
4    2   ItemD        GroupB-ItemD
5    3   ItemE        GroupC-ItemE


In the items table i put the group ID there, to match on.
After i'm able to do this dynamically.  I'll then figure out how to do this when I edit the groupdescription, or edit/add an item.  this can wait.
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE