Table Joining
Hi all,Im a newbie here and Iam making a windows application in which i imported a datagridview .I want to join two tables by asigning a primary key.The problem here is that i need to calculate amount of whole transaction by multiplying two columns...and giving it to the last column...Hope you understood the problem for now.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Apr 19, 2008, 4:58 AM EDT
To prevent this headake, I advise you achieve the entire job at the SQL server level or your database by using transactions,fuctions and stored procedures and then simply call them through code
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 21, 2008, 6:57 AM EDT
Hi,
I agree to Bechir post that if you shift this logic to SQL query then it makes your life very easy. Also please make sure if you have N tables in your query then you need to have atleast N-1 joining conditions in WHERE cluase to avoid cartesian product.
Thanks -- Vj
http://dotnetvj.blogspot.com