Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Databases and SQL
:
help on sql : sum
Previous Thread
Next Thread
Print Thread
View Threaded
Aug 14, 2003, 1:33 AM
gnehs
Novice
(26 posts)
Aug 14, 2003, 1:33 AM
Post #1 of 2
Views: 4269
Shortcut
help on sql : sum
I have fields Name,Designation,Days and Telephone.
How to sum the Days up and showing all the fields??
i tried and got a error.
Thanks
strSQL = "SELECT Name,SUM(DAYS) FROM Info WHERE INSTR(Info.Name,'" & strSearch & "')
Aug 14, 2003, 2:39 AM
gnehs
Novice
(26 posts)
Aug 14, 2003, 2:39 AM
Post #2 of 2
Views: 4071
Shortcut
Re: [gnehs] help on sql : sum
In reply to
I need to add on something.
I want to output this
---------------------------
|name | Days | Desingation |
---------------------------
|A | 2 | GG |
---------------------------
|A | 3 | GG |
---------------------------
to this
2 + 3 =5
---------------------------
|name | Days | Desingation |
---------------------------
|A | 5 | GG |
---------------------------
Last
edited
by:
gnehs
: Aug 14, 2003, 2:40 AM
Previous Thread
Next Thread
Print Thread
View Threaded