I have two tables, customer table and a company table

The customer table has an ID field that is 8 characters long.  The first
4 characters are the company code.

We just added a company table that has an id field that contains that
companies id code.  We also added a field to the customer table that
will hold the company ID that the customer belongs to.  So.....

Customer table

ID              name            company
12347771        joe             null
12347772        mary            null
43210001        bob             null

Company Table

ID              name
1234            Acme
4321            Acme_Europe

What I now need to do is create an update statement that will match the
customer to the company by substring(Customer.ID,1,4) to Company.ID

I tried:


Jeff McKeon
IT Manager
Telaurus Communications LLC
[EMAIL PROTECTED]
(973) 889-8990 ex 209 

***The information contained in this communication is confidential. It
is intended only for the sole use of the recipient named above and may
be legally privileged. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication, or any of its contents or attachments,
is expressly prohibited. If you have received this communication in
error, please re-send it to the sender and delete the original message,
and any copy of it, from your computer system. Thank You.***


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to