D
Denny Lee
Hello,
I have been programming in C# for a while but have not done much with
ADO.Net. I am running into a problem that I am not sure how to solve.
In my database I have 3 tables with 2 junction tables relating them.
Here is the basic structure
Book Title
-------------
Title_PK
Book_Title
Author
----------
Author_PK
Name
Publishing Company
------------
Company_PK
Company_Name
Author_Comapany
--------------
Title_PK
Company_PK
Junction 2
---------------
Author_PK
Title_PK
What I need is to be able to find all book titles written by Author A
and Author B and published by Company A.
So far I figured out how to give a SQL command to get the data out of
one junction table and 2 data tables, such as find all books from
Author A and Author B, but I can't figure out how to link in the other
tables. This will be access via ASP.net but I am not sure if this
should be done via SQL or some controls in .NET.
I have been messing with this for couple days, so any suggestion would
be great. Thanks.
I have been programming in C# for a while but have not done much with
ADO.Net. I am running into a problem that I am not sure how to solve.
In my database I have 3 tables with 2 junction tables relating them.
Here is the basic structure
Book Title
-------------
Title_PK
Book_Title
Author
----------
Author_PK
Name
Publishing Company
------------
Company_PK
Company_Name
Author_Comapany
--------------
Title_PK
Company_PK
Junction 2
---------------
Author_PK
Title_PK
What I need is to be able to find all book titles written by Author A
and Author B and published by Company A.
So far I figured out how to give a SQL command to get the data out of
one junction table and 2 data tables, such as find all books from
Author A and Author B, but I can't figure out how to link in the other
tables. This will be access via ASP.net but I am not sure if this
should be done via SQL or some controls in .NET.
I have been messing with this for couple days, so any suggestion would
be great. Thanks.