473,395 Members | 1,532 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,395 software developers and data experts.

how can i group the database by dates and by names

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,,
Oct 25 '07 #1
6 1025
debasisdas
8,127 Expert 4TB
Try to use GROUP BY in the SQL query.

Post your table structure for more details.
Oct 25 '07 #2
9815402440
180 100+
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
Oct 25 '07 #3
daveftl
43
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 . :)
Oct 25 '07 #4
Killer42
8,435 Expert 8TB
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.
Oct 25 '07 #5
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
Oct 26 '07 #6
Killer42
8,435 Expert 8TB
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 (').
Oct 26 '07 #7

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

Similar topics

4
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...
1
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 ...
24
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...
3
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...
1
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...
1
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...
10
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 ...
5
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.