Can you post the table schema, please?
Dear Michael, i do not know how to put schema or tablhe. But my problem is simple. i once again explain it here. If u kindly have a look, i will be grateful 2 u.
i have a table school with two fields
course_id (int4).....
student_id (int4)
1) now many students share same course. i want to write a query that gives me course_id which has more than 5 students in a course.
my result should be like this....
course_id + student_id
4500 + 1501
4500 + 1508
4500 + 1541
4500 + 1551
4500 + 1532
4500 + 1510
4700 + 1589
4700 + 1518
4700 + 1546
4700 + 1538
4700 + 1522
4700 + 1533
4700 + 1564
.
.
.
2) i have an other table which has two field
course_id (int4)
student_id (int4[])..... this field is one dimensional array
and now i want to insert student_id column into this column(array) against course_id. My expected results should be like this
course_id + student_id
4500 + {1501, 1508, 1541, 1551, 1532, 1510}
4700 + {1589, 1518, 1546, 1538, 1522, 1533, 1564}
.
.
.
this problem is urgent... if someone gives me hint plz....
thnx n regards
@rtist