Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8541173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:46:15+00:00 2026-06-11T11:46:15+00:00

I got three tables to join named Books, Borrowers and Transactions. The database scheme

  • 0

I got three tables to join named Books, Borrowers and Transactions.
The database scheme is as below:

  1. Books(BookID,BookName,ISBN);
  2. Borrowers(BorrowerID,BorrowerName,BorrowerLevel);
  3. Transactions(TransactionID,BorrowerID,BookID,BorrowDate,ReturnDate);

The corresponding class are Book, Borrower and Transaction respectively. Now i would like to select BookID,BookName,BorrowerID,BorrowerName,BorrowDate and ReturnDate from these three tables and to show in a listview having gridview control.
XAML Code :

<Grid>
        <ListView Margin="15,57,58,57" Name="borrowedBookList" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding }" KeyDown="borrowedBookList_KeyDown">
            <ListView.View>
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn Width="80" Header="Borrower ID" DisplayMemberBinding="{Binding Path=BorrowerID}"/>
                        <GridViewColumn Width="220" Header="Borrower Name" DisplayMemberBinding="{Binding Path=BorrowerName}"/>
                        <GridViewColumn Width="220" Header="Book Name" DisplayMemberBinding="{Binding Path=BookName}"/>
                        <GridViewColumn Width="100" Header="Date" DisplayMemberBinding="{Binding Path=BorrowDate}"/>
                        <GridViewColumn Width="100" Header="Return Date" DisplayMemberBinding="{Binding Path=ReturnDate}"/>
                       </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>

Now how can i join these tables and assign the result datacontext into borrowedBookList?

Thankyou

Arefin Sami

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:46:16+00:00Added an answer on June 11, 2026 at 11:46 am
    borrowedBookList.DataSource =
        from borrower in Borrowers
        join transaction in Transactions
            on borrower.BorrowerID equals transaction.BorrowerID
        join book in Books
            on transaction.BookID equals book.BookID
        select new
        {
            borrower.BorrowerID,
            borrower.BorrowerName,
            book.BookName,
            transaction.BorrowDate,
            transaction.ReturnDate,
        }
    
    borrowedBookList.DataBind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a database with three tables: Books (with book details, PK is CopyID),
I've got my database set up with three tables - code, tags, and code_tags
I've got three tables in my database: create table A ( a_id int primary
I have got 3 tables in my database. Company, Product and Lead. Below are
I've got collection of geo objects in database: There are four Tables: Countries Regions
I've got a database table with at least three rows in it. From php,
I've got three tables; Auctions, Auction Bids and Users. The table structure looks something
I've got three tables: CREATE TABLE credential_types ( id serial PRIMARY KEY, name varchar(32)
I've got three tables I would like to query for a single dataset. Here
I've got a number of tables in my database. Each of these tables has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.