how to make condition likeif record_count(records) = 0 then insertelse insertsample:if recordcount = 0BEGIN INSERT INTO CustomerDetails (Customer_ID, Customer_First_Name, Customer_Last_Name, Address, Telephone_Number) VALUES ('CD001', dbo.initcap('Fazna'), dbo.initcap('Hudah'), dbo.initcap('100, Shrubbery Gardens, Colombo - 04.'), '011 2625691') ENDELSEBEGIN INSERT INTO CustomerDetails (Customer_ID, Customer_First_Name, Customer_Last_Name, Address, Telephone_Number) --VALUES SELECT MAX(dbo.AutoIDWithString(Customer_ID)), dbo.initcap('Fazna'), dbo.initcap('Hudah'), dbo.initcap('100, Shrubbery Gardens, Colombo - 04.'), '011 2625691' FROM customerdetailsEND