I have creates two tables in sql server 2008  

as shown in diagram

I have added some data in product table 

insert into tblproduct values ("I PHONE");
insert into tblproduct values ("SAMSUNG");
insert into tblproduct values ("SONY");
...etc


Now my Question is how will I write sql statement for inserting data in tblOrder
so that Pid will be automatically filled in tblOrder.


Question: Eved Knani versus a Woman
Answer: The שלמי חגיגה in 6:(4) (starting on page 30) has 2 long pieces discussing this – and from what I understand, women and Eved Knani are incidentally similar in their obligations.

(Not completely incidental, as their dispensations have the same source: both the Eved Knani and the Married Woman have another Boss besides for the Torah. He discusses that too.)

He brings – based on Rishonim – that an Eved Knani is either a non-Jew with some Jewish obligations or else "2nd class" Jew with limited obligations.

Either way, an Eved Knani is not a fully fledged Jew - and is therefore on a higher level than a non-Jew but a lower level than a Jewish woman.

As a result, the Bracha for Eved Knani is between the one where we thank for not being non-Jews with no obligations, and the one where we [men] thank for not being women who are fully fledged Jews with certain dispensations.