Ignorance...

A

an

Hello!

I have a query with next result:

Param Value Date
A V1 01JAN04
A V2 02JAN04
B V3 01JAN04
B V4 02JAN04
B V5 03JAN04
B V6 04JAN04
....

I'm with difficulty to make a query to obtain next:

ParamA ParamB
01JAN04 V1 V3
02JAN04 V2 V4
03JAN04 V5
04JAN04 V6
....
31JAN04

I would like help for this.
Tahnks in advance.
an
 
J

JohnFol

TRANSFORM First(MyTable.Value) AS FirstOfValue
SELECT MyTable.Date
FROM MyTable
GROUP BY MyTable.Date
PIVOT MyTable.Param;
 
A

an

Oops...

Only display one value for each Param when there are more
that one (?)
How is possible to display all records, please?
Thanks.
an
 
A

an

(cont)
Ex:

01JAN04 and 02JAN04 both have values.

01JAN04:
ParamA = V1
ParamB = V3

02JAN04:
ParamA = V2
ParamB = v4
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top