Re: Two columns have data mixed up need to fix
From: Anith Sen (anith_at_bizdatasolutions.com)
Date: 02/16/05
- Next message: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Previous message: james: "Re: Question about handling Nulls"
- In reply to: gv: "Two columns have data mixed up need to fix"
- Next in thread: gv: "Re: Two columns have data mixed up need to fix"
- Reply: gv: "Re: Two columns have data mixed up need to fix"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 14:27:47 -0600
How do you distingush whether a string value is a "Part Number" or a "name"?
Once you determine this, you can come up with an SQL predicate & use it in
an UPDATE statement like:
UPDATE tbl
SET col1 = col2, col2 = col1
WHERE < sql predicate > ;
Also just noticed that you have multiple values delimited by commas in each
column. Do a good analysis on the data involved with respect to your
business model to see if this is a flawed design approach or not.
-- Anith
- Next message: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Previous message: james: "Re: Question about handling Nulls"
- In reply to: gv: "Two columns have data mixed up need to fix"
- Next in thread: gv: "Re: Two columns have data mixed up need to fix"
- Reply: gv: "Re: Two columns have data mixed up need to fix"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|