473,382 Members | 1,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Need to match data in two fields against data entered in the same fields and if they

I built a restitution db. At times we receive checks from institutions that are applied to more than one person. When I run my deposit slip I need to be able to add the dollar amounts applied to separate individuals into one line deposit amount.

If the Payer column and the Check Number column in two separate records match then the Amount column figures need to be added together and shown on the deposit slip. If no Payer column and Check Number columns match other records then the figures for each check needs to be shown on the deposit slip.
Feb 18 '20 #1

✓ answered by Seth Schrock

I recommend reading SQL SUM() for this specific question and going through the whole SQL course from w3schools.com. You really need to have a good grasp on creating queries in SQL if you want to create your own database. Database Normalization is also a very important concept to understand so that your tables can be designed in such a way that your data is usable in all situations.

Unfortunately, that is about all the assistance that we can provide with the information given. Once you read the links above, let us know if you have further questions and provide more details. Remember, you know what you are trying to do and you need to pass on the details that relate to the question so that a good answer can be provided. Otherwise you will only get vague answers. See How to ask good questions. We really do want to help, but it takes a good question to get detailed answers.

3 1900
Seth Schrock
2,965 Expert 2GB
Use the Sum() function in a query, with the Payer and Check Number columns in the GROUP BY clause.
Feb 19 '20 #2
Thank you Seth for replying but can you be a little more detailed. I am new to creating db and trying to self teach myself. Any direction is appreciated.
Feb 20 '20 #3
Seth Schrock
2,965 Expert 2GB
I recommend reading SQL SUM() for this specific question and going through the whole SQL course from w3schools.com. You really need to have a good grasp on creating queries in SQL if you want to create your own database. Database Normalization is also a very important concept to understand so that your tables can be designed in such a way that your data is usable in all situations.

Unfortunately, that is about all the assistance that we can provide with the information given. Once you read the links above, let us know if you have further questions and provide more details. Remember, you know what you are trying to do and you need to pass on the details that relate to the question so that a good answer can be provided. Otherwise you will only get vague answers. See How to ask good questions. We really do want to help, but it takes a good question to get detailed answers.
Feb 20 '20 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: MLH | last post by:
I would like a scanner - something like a pencil that would allow me to attempt to scan printed text off hardcopies. Not all text on a page, mind you. Something I could use to scan just the words...
2
by: PPT33R | last post by:
The MS Access website is very unhelpful on this topic, and I cannot find anything in my Googling to find a hint. I am working with very large, existing data sets that consist of multiple fields....
3
by: Pat Alessi | last post by:
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add...
4
by: T.Jackson | last post by:
Hi guys, I want to display the data of a table in a datagrid in one form, & enable the user to edit the details of a particular record in another form. I want the following features, 1....
1
by: Siva | last post by:
Hi, In my ASP.Net 2.0 app, I have a gridview whose data is being populated using an object data source which retrieves data from a data access layer. The Select method returns a static list of...
7
kvijayhari
by: kvijayhari | last post by:
hi i'm having a form in which a text field has a js function which lists the name of the customer by searching the letters typed in the field.. (like the one on gmail mail to column) The js...
5
by: Dan Tallent | last post by:
I have a scenerio when my forms are first opened that the user cannot modify the data. The fields are disabled to prevent them from modifying any of the data. If a user wishes to modify the...
8
by: chandhseke | last post by:
I have a form with various fields, one of which I need to check against data in a database table. i.e if the value entered into the text input field exists in the database, the form should be...
0
by: mathilin | last post by:
Hi, I am writing a program to accept multiple user inputs and put these values into a table. This database will end up having hundreds of tables, each table should have the user inputted data. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.