Thanks alot. It worked excellently.
THANKS THANKS THANKS
Damelinks
On 10/16/13, Robert Gonzalez <
robert.anth...@gmail.com> wrote:
> This will get the title from courses whose code matches the code in
> results:
>
> SELECT
>
r.id, r.session, r.unit, r.grade, c.title
> FROM
> result_table r JOIN courses_table c ON
> c.code = r.code
>
> That is not entirely what you are asking for, but I suspect you will be
> able to write your own join for that stuff.
>
>
> On Wed, Oct 16, 2013 at 2:33 AM, Da-Omiete Iboroma
> <
dame...@gmail.com>wrote:
>
>> Thanks.
>>
>> The whole idea is to produce exams slip for individual student
>> depending on the session and semester.
>>
>> The result_table contains all students results for all semesters and
>> session, while the course_table contains all the course codes and
>> their titles.
>>
>> Working with just the result_table, I am able to retrive all the
>> results for individual semester and session that I desire. I am even
>> able to calculate the GPA and list all the failed courses for that
>> semester and session
>>
>> If you notice closely, the result_table does not contain the titles of
>> the courses. It contains the codes.
>>
>> So my question is how can I retrive the titles of the course codes
>> from the courses_table that matches the conditon.
>>
>> Thanks
>>
>> On 10/15/13, Robert Gonzalez <
robert.anth...@gmail.com> wrote:
>> > How are you joining your students table to your courses table? Given
>> > how
>> > the situation looks now, I would not suggest getting all course records
>> for
>> > all students, considering how your tables are architected. But for one
>> > student it might not be too bad.
>> >
>> >
>> > On Tue, Oct 15, 2013 at 4:05 AM, Da-Omiete Iboroma