Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2008, 12:42 PM
Authorized User
 
Join Date: May 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default adding up a whole colum to give a total number

Hey folks,
I'm trying to add a whole colum of wages together to give me the total wage bill in a sql statement is this possible if so does anyone have any ideas where to start

 
Old May 28th, 2008, 01:37 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Code:
SELECT DSUM(<ColumnName>)
FROM   <TableName>
(Access)
Code:
SELECT SUM(<ColumnName>)
FROM   <TableName>
(Oracle)
 
Old May 29th, 2008, 08:15 AM
Authorized User
 
Join Date: May 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Brian you how many simple things i tried. Feelin pretty stupid now though.Agian m8 thanks for reply to this and many other posts ur a wee star m8 cheers






Similar Threads
Thread Thread Starter Forum Replies Last Post
adding all the rows to get a total value KeviJay SQL Language 2 May 29th, 2008 03:22 AM
total number of rows in a recordset lian_a Classic ASP Basics 2 February 8th, 2005 08:13 AM
count the TOTAL number of segments crmpicco Classic ASP Basics 2 February 1st, 2005 05:03 AM
How to count total number of nodes in an xml file? nimesh XSLT 1 August 12th, 2004 03:26 AM
format total number..not working rissay Access 5 February 23rd, 2004 09:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.