Advertisement

05.30.2008 at 10:06PM PDT, ID: 23446476
[x]
Attachment Details

How to consolidate information from one table into a different view

Asked by kenuk110 in MySQL

Tags: Sun, MySQL, 5.1

I have an issue in that I have the following information in a table:

Store    UPC        Block       iNumber
002       12345      0124       01
002       23456      0124       02
002       12345      0227       03

As you can see, the product '12345' appears in the same store twice. What I need to do is have this information in a view by UPC location, so the result would be like this:

UPC         Block1    INumber1    Block2    iNumber2
12345       0124       01                0227       03

I need all the information about locations (Block/iNumber) in the same record.

Is this possible??

Thanks in advance.

Ken


Start Free Trial
[+][-]05.30.2008 at 11:53PM PDT, ID: 21682926

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL
Tags: Sun, MySQL, 5.1
Sign Up Now!
Solution Provided By: dqmq
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.31.2008 at 01:27AM PDT, ID: 21683121

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.01.2008 at 09:36AM PDT, ID: 21687585

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628