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 8782893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:41:07+00:00 2026-06-13T20:41:07+00:00

I am developing c# application. I am using OLEDB connections. I have following two

  • 0

I am developing c# application.
I am using OLEDB connections.

I have following two tables>>

payment

AdmissionNumber  | StudName |

       1            John
       2            Smith

paymentDetails

   AdmissionNumber  | RemainingFee |    Date         | Payment

        1                5000         10/10/2012         3000
        1                3000         10/11/2012         2000
        2                4000         15/11/2012         3000
        1                1000         10/12/2012         2000

In this I want to get the table result as following>>

 AdmissionNumber | Name | Date           |RemainingPayment|Payment|
       1           John    10/12/2012          1000         2000

In this case Admission number and date is already provided in the form via textbox and datetimepicker.

  • 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-13T20:41:09+00:00Added an answer on June 13, 2026 at 8:41 pm

    In this case Admission number and date is already provided in the form
    via textbox and datetimepicker.

    So you want to search for a specific Admission number and a date. If so, then try this:

    SELECT 
      p.AdmissionNumber,  
      p.Name,   
      pd.Date,
      pd.RemaingFee AS RemainingPayment,
      pd.Payment
    FROM Payment p
    INNER JOIN PaymentDetails pd ON p.AdmissionNumber = pd.AdmissionNumber
    WHERE p.AdmissionNumber = @AdmissionNumberParamFromTxtBox
      AND pd.Date           = @DateParamFromTheotherTextBox;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing application using backbone.js & jquery. I have following code in model: runReport:
I'm developing application using Command Pattern. I have two kind of operations in my
I am developing one c# .NET application. I am using database of Microsoft Access(OLEDB).
Developing iphone application using makkit framework. I have got the map view integrated in
I'm developing application using VC++ 6. I have a 3rd party DLL. This library
I am developing application using viewpager with fragment.In my application i have a items
I´m developing an application using Zend Framework 2 and I´m using two select multiple
I am developing application using phonegap in eclipse for android .I have created folder
i am developing android application using Geocoder services, I have an application where I
I'm developing WinForms application using VS2010. I have about 15 projects in the solution.

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.