Query statement for Table validation

Hi all,

i have one table calles table1. which contain one field called Id…The field ID contains value 1 and 2…what is my scenario is… the ID value should contain same for all the company …eg.if ceu company consist only value 1 means it should through error company had value 1 alone not 2 like that

What’s your question?

Mr. Billgates … Your question is not clear at all… … “Bhai kehna Kya chahtey ho ?”