i pass parameter as productid, i check in productrelated table whether this product related product are there or not if it is not there i want to check sample productid in departmentreplated table if it is not there i find the department of the productid and find the that productid related department product..
Plz help me how to write the store procedure.... which logic i want to use....
help me writing procedure.... reply as soon as ... thanks...