Forum Replies Created

Viewing 4 posts - 1 through 5 (of 5 total)

  • RE: Display the third attempt

    Hi,

    Can you check this is working or not? This is Oracle Syntax and should fulfill the second column requirement

    select * from

    (select a.*, count(*) over (partition by examid) attempt

    ,row_number( )...

  • RE: Display the third attempt

    Hi,

    Can you check this is working or not? This is Oracle Syntax

    select * from

    (select a.*, count(*) over (partition by examid) attempt

    ,row_number( ) over (partition by examid order by studentid,examid,attemptfk)...

  • RE: Display the third attempt

    This should work for the first column requirement:

    SELECT *

    FROM student_mark1 STU_MAIN

    WHERE attemptfk = ( select case when ((select count(1) from student_mark1 where studentid = STU_MAIN.studentid and examid =...

  • RE: Display the third attempt

    Hi,

    To get the max score if the attempts or 3 or more, can you run the following query and check it:

    select *

    from student_mark1 STU_MAIN

    where

    attemptfk =...

Viewing 4 posts - 1 through 5 (of 5 total)