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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Words in 1 record splitted 1

Status
Not open for further replies.

michaela18

Technical User
Sep 9, 2009
37
US
I have a field called Phonecodes and it would show what phones people brought, but it will show all the phones. So the field look something like this:

Phonecodes
Samsung Motorola Apple

It's sepparated by spaces.

I have a query that pulls up the date, phonecode, keyID, and Pricecode


Is there a way to duplicate a row so say if a row has

Phonecodes
Samsung Motorola Apple

then it will be 3 rows instead, each with the same date, keyID, and Pricecode but with the phonecodes split out?
 
Any reason why the data is unnormalized in the first place?

The proper way to do it is to store those 3 values in separate records of a related table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top