GoodAfternoon Sir,
I have a query regarding a online exam project. could you please suggest me
if i have a 50 question and 4 option for each of the questions. then how will i show only 5 question and
there respective option on one panel. after that when i click on next button I'll go on for further 5 question
so please suggest me a right way
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 17, 2015, 2:43 AM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 17, 2015, 2:46 AM EDT
SET @PageNumber = 2
SET @RowspPage = 5
SELECT * FROM (
Call this function in Next button click.SELECT ROW_NUMBER() OVER(ORDER BY ID_EXAMPLE) AS NUMBER,
ID_EXAMPLE, NM_EXAMPLE, DT_CREATE FROM TB_EXAMPLE
) AS TBL
WHERE NUMBER BETWEEN ((@PageNumber - 1) * @RowspPage + 1) AND (@PageNumber * @RowspPage)
ORDER BY ID_EXAMPLE
ajaz ansari8 reputationPosted Jun 17, 2015, 3:03 AM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 17, 2015, 3:08 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 17, 2015, 3:14 AM EDT
ajaz ansari8 reputationPosted Jun 17, 2015, 3:14 AM EDT
ajaz ansari8 reputationPosted Jun 17, 2015, 3:19 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts