select
f exists
select vAdmissNo,vRegNo FROM tblAdmission where vAdmissNo = '"+11+"' AND vLateral='"+Yes+"'
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shankar MPosted Dec 4, 2012, 6:31 AM
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