Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.....
I want to create book management system in wpf application..I have to insert book name,author,quantity, price etc to a datagrid.I have to insert these values using stored procedure and when i am invoking the event total button _click there should be another datagrid on which invoiceno and grand total of these books should be displayed...That also should be done using user defined stored procedure..I have created two seperate tables for this...Have to add relationship between them...How can i do this...
Thanks in advance..
swathi
Posted

1 solution

Hi,

Use Foreign key concept, check this link "http://www.w3schools.com/sql/sql_foreignkey.asp[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900