i was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,
6 1025
Try to use GROUP BY in the SQL query.
Post your table structure for more details.
hi
your sql query must look like this
select sum(column) from table group by Date, People
if this is not the solution then explain your problam in detial
regards
manpreet singh dhillon hoshiarpur
i was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,
try this sql:
SELECT SUM(transaction) FROM <table>, ORDER BY <table.date>;
for more detailed answer..please post ur DB structure . :)
i was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,
I recommend you ask in the Access forum, as the people there have lots of database experience.
this is my databse.... is this correct???
"Select F_Empl_Code, Supply_Date, Sum(Supp_Total), Min(Supp_Balance) from Tbl_Supply_Transaction Where Supply_Date between '" & txtDate1.Text & "' and '" & txtDate2.Text & "' GROUP BY F_Empl_Code, Supply_Date
this is my database...
My SQL syntax is a bit shaky. But what type of database is it? Access? SQL Server? Other? The different products do treat things slightly differently. In Access, date fields use hashes (#) as a delimiter, not quotes (').
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Joe User |
last post by:
Hi all....I have a feeling this is going to be one of those twisted query
questions, but here it goes anyways....
I want to generate a report that shows the chronology of events (represented
by...
|
by: Alicia |
last post by:
I basically wanted something that would do a count of the dates, then
group them by their week name..
BEFORE:
Resource Date Total number of times that date Appeared
(Count)
4/3/03 ...
|
by: flkeyman |
last post by:
Work in legal office. Trying to create solid designed database
structure. This is list of tables w/fields and primary keys. Any
comments/advice greatly appreciated.
tbl-Defendants
CaseNumber...
|
by: reageer |
last post by:
Hi all,
I have a design question:
I have a bunch of users (name, address, zip, etc.). They are assigned a
card with a specific id.
The only thing unique is this card id, or probably the...
|
by: jim |
last post by:
Hi,
I was wondering if anyone out there can help me with this SQL problem:
I have a database that has two tables: EMPLOYEE and JOB_TITLE
The EMPLOYEE Table consists of a salary and job_title...
|
by: Timothy.Rybak |
last post by:
I need help designing a database that keeps up with a point system we
have here at work. I'll tell you what I know.
First, I have a list of all the employee names for a table.
Second, for...
|
by: Rudolf Bargholz |
last post by:
Perhaps some kind soul could help me out with an SQL I have been trying all
day to get to work, where one colum is just not summing up the way I want it
to.
I have the following data
GRP_SEQ ...
|
by: kyosohma |
last post by:
Hi,
I am populating a mySQL database with data from the MS Access
database. I have successfully figured out how to extract the data from
Access, and I can insert the data successfully into mySQL...
|
by: Elainie |
last post by:
I have a combo box with several names, once a name is selected then it
goes and gets a report of the name of the person that has been
selected.
I would like to put this and date selection on one...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |