Select
f exists
select vAdmissNo,vRegNo FROM tblAdmission where vAdmissNo = '"+11+"' AND vLateral='"+Yes+"'
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shankar MRank #874 · 2.5K reputationPosted Dec 4, 2012, 1:31 AM EST
To check for the existance of records, the condition should be checked something like this,
IF EXISTS(SELECT TOP 1 * FROM EMP WHERE EMPNO='8765')
BEGIN
//Statements for Processing
END