Formatting results [message #371428] |
Tue, 17 October 2000 13:06 |
Hocine
Messages: 1 Registered: October 2000
|
Junior Member |
|
|
I have two tables:
table1(id, first_name, last_name) with id:PK
table2(id, discipline, note1, note2) with id FK to table1
I would like to format the results from :
select first_name, last_name, discipline,note1, note2
from table1 a, table2 b
where a.id=b.id
What I want to get is something like :
first_name last_name discipline note1 note2 discipline note1 note2
student1 ln_st1 maths 12 10 physics 13 11
student2 ln_st2 geophy 10 9 maths 11 9
...
I mean as long as id is the same the columns selected from table2 still on the same line.
|
|
|
|