Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
CREATE PROCEDURE [dbo].[CertifyMax_ExamSetup_GenerateExamQuestions] ( @SUBJECT_ID int, @TOPIC_ID int, @ROW_TO_RETURN int, @EXAM_REFERENCE_CODE nvarchar(50) ) AS SET NOCOUNT ON; INSERT INTO CERTIFYMAX_EXAMINATION_QUESTIONS ( QUESTION_ID, CORRECT_ANSWER_ID, MARK_ALLOCATED, EXAM_REFERENCE_CODE, COUNT_NO ) SELECT QUESTION_ID, CORRECT_ANSWER_ID, MARK_ALLOCATED, @EXAM_REFERENCE_CODE, ROW_NUMBER() OVER(ORDER BY ID) FROM ( SELECT TOP 50 QUESTION_ID, CORRECT_ANSWER_ID, MARK_ALLOCATED, NEWID()ID FROM CERTIFYMAX_QUESTIONBANK_VIEW WHERE SUBJECT_ID=@SUBJECT_ID AND (TOPIC_ID=@TOPIC_ID or @TOPIC_ID = -2) ORDER BY NEWID() ) tmp
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.