|
-
Apr 12th, 2018, 06:28 PM
#1
Thread Starter
Lively Member
DATABASE relationship between tables
Hello i created a database and in this database i have 2 tables - dbo.Customer and dbo.Visits, i created a foreignkey in dbo.Visits CustomerID. I want one Customer can have multiple visits, i created it but dont know how to show these records in datagridview for Customer1 and these multiple datas.

How to show datagridview example like this
Customer1 | Date of Visit | Treatment | Price
---------------------------------------------------
ID1 | 1.1.2011 | treatment1| 12$
---------------------------------------------------
ID1 | 2.1.2011 | treatment2| 26$
---------------------------------------------------
ID1 | 1.7.2011 | treatment3| 22$
----------------------------------------------------
ID1 is Customer1(Foreignkey)
If anyone could help me it would be to nice.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|