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

How do I sum the values of a column?

1
My Column
0
2
11
6
May 1 '07 #1
5 2653
dhutton
28
SELECT SUM(Column Name)

FROM DataBase Name
May 1 '07 #2
hariharanmca
1,977 1GB
SELECT SUM(Column Name)

FROM DataBase Name
It should be TableName.

I think you are giving as DataBase Name
May 2 '07 #3
dhutton
28
Yes your right - should be:

Select SUM(Column Name)

From Table Name
May 2 '07 #4
Hi,

How to concatenate two column at runtime?
Ex : empid,empname,empsal,dept,desg...I want create a new column called as "empidName"
empid and empname this two field are concatenate at runtime...
Note : 20 records are in the table...When we execute your code that time 20 records are change.That is my quert..

my E-mail id is : sivasubramanian.hariharan@gmail.com

Thanks and regards,
Sivasubramanian Hariharan
May 16 '07 #5
pradeep kaltari
102 Expert 100+
Hi,

How to concatenate two column at runtime?
Ex : empid,empname,empsal,dept,desg...I want create a new column called as "empidName"
empid and empname this two field are concatenate at runtime...
Note : 20 records are in the table...When we execute your code that time 20 records are change.That is my quert..

my E-mail id is : sivasubramanian.hariharan@gmail.com

Thanks and regards,
Sivasubramanian Hariharan
Hi Sivasubramanian,

I guess this would help you:

Expand|Select|Wrap|Line Numbers
  1. SELECT CAST(empid AS VARCHAR)+empname FROM <table_name>
  2.  
Regards,
Pradeep
May 16 '07 #6

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

Similar topics

26
by: Agoston Bejo | last post by:
I want to enforce such a constraint on a column that would ensure that the values be all unique, but this wouldn't apply to NULL values. (I.e. there may be more than one NULL value in the column.)...
2
by: sukh | last post by:
From the table i want everything highlighted with a * I wanted an SQl expression to look at values in Column 1 (ID), look at the corresponding values in the second column (F1) and select the row...
1
by: Programmer | last post by:
Hi All Here is my problem I'm using a SQLDataAdapter and DataSet I use the method FillSchema(myDataset, SchemaType.Source) The problem is that when i Check the default Values of the Dataset...
2
by: Balamurukan | last post by:
How to retrive property values from our own property window
13
by: scorpion53061 | last post by:
Very urgent and I am very close but need a little help to get me over the edge........ I need to write these columns to a html file with each row containing these columns (seperated by breaks)....
20
by: MLH | last post by:
120 MyString = "How many copies of each letter do you need?" 150 MyVariant = InputBox(MyString, "How Many?", "3") If MyVariant = "2" Then MsgBox "MyVariant equals the string '2'" If...
1
by: Intrepid_Yellow | last post by:
Hi, I have the following code that runs my report generator. The user selects a table from a combo box, then whatever fields they want from a list box. (This part all works and the report runs...
5
by: sparks | last post by:
I was using this to add a record to a table but the systax is messing me up. strSQL = "INSERT INTO TblChallengeRECESS ( childname, teacher, kidid, formdate) " & _ "VALUES...
11
by: sqlservernewbie | last post by:
Hi Everyone, Here is a theoretical, and definition question for you. In databases, we have: Relation a table with columns and rows
2
by: ssjay1981 | last post by:
Hello All, I am new to ms-access, i have a table with values as mentioned below. Each of these table are given with a list of Look up values, in order to narrow down the list of values under...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.