i have table with name sample in my database it has threecolumns namely words,D1,D2 and it has some data like below
Words D1 D2 D3 pleasure 1 0 1 question 0 0 0 answer 0 1 1 request 1 0 0 scount 1 0 0
so now i want to calculate parameter N00 which means scount=0 and also it should check where 0 exists in D1 and D2 so here for "question" D1=0 D2=0 and scount=0 so the result should be 2 because scount=0 and D1=0 , scount=0 and D2=0 this both satisfy so result is 2 i need sql query fro this please help advance thanks.