F
Francisco
Good day to all,
I've a table with some records of events for subjects and on certain dates,
now I need to get a query that returns me the Subject, Subject creation date,
3 months after creation date, Value at 3 months, 6 months after creation
date, Value at 6 months:
This is for example:
Table subject:
ID Name Born
1 Jon 6/6/95
2 Betty 8/12/95
3 Rudolf 15/01/96
Table wheight
Date subjectID Wheight
6/7/95 1 10
7/8/95 1 18
5/9/95 1 25
................... (continue)
6/10/95 1 22
................... (continue)
10/12/95 1 45
10/12/95 2 11
8/1/96 1 51
8/1/96 2 18
7/2/96 1 58
7/2/96 2 25
7/2/96 3 9
.......... (continue)
Now I want to get a query that has this format:
ID Born Value aprox Value aprox Value
aprox
3 Months 6 Months
9 Months
1 6/6/95 22 51
.....
2 8/12/95 ..... ....
.....
3 15/01/96 .... ....
.....
The dates where I recorded the events aren't exactly 3,6 and 9 months after
the initial date, so it has to be aprox.
I know that I'll have to:
Select [tblsubject].IDsubject, [tblSubject].Dateborn, a.Value as 3Months,
b.Value as 6Months, c.Value as 9Months
....... and now I'm completely blank!!!
I hope someone can be of my assistance.
Sorry for the confusing question
Francisco T. B.
Universidade de Évora
P.S. - I hope this is not a duplicate question, I haven't found anything
related.
I've a table with some records of events for subjects and on certain dates,
now I need to get a query that returns me the Subject, Subject creation date,
3 months after creation date, Value at 3 months, 6 months after creation
date, Value at 6 months:
This is for example:
Table subject:
ID Name Born
1 Jon 6/6/95
2 Betty 8/12/95
3 Rudolf 15/01/96
Table wheight
Date subjectID Wheight
6/7/95 1 10
7/8/95 1 18
5/9/95 1 25
................... (continue)
6/10/95 1 22
................... (continue)
10/12/95 1 45
10/12/95 2 11
8/1/96 1 51
8/1/96 2 18
7/2/96 1 58
7/2/96 2 25
7/2/96 3 9
.......... (continue)
Now I want to get a query that has this format:
ID Born Value aprox Value aprox Value
aprox
3 Months 6 Months
9 Months
1 6/6/95 22 51
.....
2 8/12/95 ..... ....
.....
3 15/01/96 .... ....
.....
The dates where I recorded the events aren't exactly 3,6 and 9 months after
the initial date, so it has to be aprox.
I know that I'll have to:
Select [tblsubject].IDsubject, [tblSubject].Dateborn, a.Value as 3Months,
b.Value as 6Months, c.Value as 9Months
....... and now I'm completely blank!!!
I hope someone can be of my assistance.
Sorry for the confusing question
Francisco T. B.
Universidade de Évora
P.S. - I hope this is not a duplicate question, I haven't found anything
related.