473,657 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bezu:-To calculate two column

2 New Member
hi there

I am new for SQL server please help me to calucate tow different column.
Thank you in advance.
Bezualem
Jan 21 '08 #1
2 1357
ck9663
2,878 Recognized Expert Specialist
hi there

I am new for SQL server please help me to calucate tow different column.
Thank you in advance.
Bezualem

here's documentation from microsoft

-- ck
Jan 21 '08 #2
debasisdas
8,127 Recognized Expert Expert
What are you trying to calculate ?

Can you please post your code and table structure please.
Jan 21 '08 #3

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

Similar topics

2
6490
by: Lauren Quantrell | last post by:
I have two columns in a table: StartDate DateTime and StartTime DateTime. The StartDate column holds a value such as 07/16/2004 The StartTime column holds a value such as 3:00:00 PM I want to be able to add them in a stored procedure. When I use StartDate + StartTime I get a date two days earlier than expected. For example, instead of 7/16/2004 3:00:00 PM StartDate + StartTime returns 7/14/2004 3:00:00 PM.
9
3681
by: DMAC | last post by:
If i want to split a computed column into two or more columns based on the the length (its a varchar) of the computed column, how often will sql server determine what the computed column is? roughly along the lines of select comp_col,'comp_col 2'= case when datalength(comp_col)<=100 then comp_col else left(comp_col,99) + '~' end, datalength(comp_col) from aTable
1
474
by: Manal/report designer | last post by:
Thank you in advance for any suggestions... I'm using crystal reports version 8 & SQL server. I've created a report that is composed of 2 parts: 1st part contains the mainreport which uses database1 (db1) located on server1(S1), 2nd part contains the subreport which uses database2 (db2) located on server2 (S2), and I've used (parameter field & a certain fields) to link the subreport to the mainreport. The subreport is composed of 2...
1
13598
by: sg_s123 | last post by:
============================================================================ 02-Feb-04 03-Feb-04 Staff Staff 0800hr- 1300hr- 1700hr- 1900hr- 0800hr- 1300hr- 1700hr- 1900hr- Number Name 1200hr 1700hr 1900hr 2200hr 1200hr 1700hr 1900hr 2200hr ============================================================================ 4654 Saniff A A A C A A A C 4437 Joey B C B C B C B C 4479 Elmer C C B C C C B C
6
3236
by: Robert Schuldenfrei | last post by:
Dear NG, After being away from C# programming for a spell, I am trying my hand at what should be a simple task. I have been hitting my head against the wall this morning. I have a simple order entry application. The code below gets line items from a SQL Server database and returns them to a datagrid by way of a DataTable called lineTable. As long as I am just displaying columns in the SQL database everything works well. I now want...
1
3986
by: grime | last post by:
Thanks in advance for the help... should be an easy one for you all. I have a access table where I have the following fields: Product Sales I want to add a 3rd column (AdjustedSales) where if Product is T33, then AdjustedSales is Sales * 2.6. For all other Products, I want AdjustedSales = Sales.
1
2373
by: davide G | last post by:
Sorry, but I don't speak very well english! My problem is update a datagrid's column when i change the value of another column of the same row. So, when I change the value and I change the column on the same row, I want new value on the calculate column! What can I do?
7
1918
by: decren | last post by:
Hello, I have a table with an add-row setup. The table has several columns but I only need to calculate COLUMN FOUR. The results go to a textbox via a button. My code is..... function sumup() { document.getElementById("Table1") column = document.getElementsByTagName("colFour"); document.myForm.tbTotal.value = column; } ..... <TABLE NAME="Table1" id="Table1">
2
1328
by: vinothrao84 | last post by:
hi, i have the 2 following table in my database. tablename : tblMutFunds code.......shortname......number......display_web G1..........Growth1......... 1...............1 G2..........Growth2......... 3...............1 G3..........Growth3......... 5...............1
7
1416
by: veer | last post by:
Hi i have two columns in database i,e "operator id" and "data and time" my probleum is how can i calculate the total time spent by a particular operator while working . i mean to say when the operator is entering the records at the same time its start time and end time with date is inserted into the "date and time column" and i want to calculate only the time from that column for a particular operator if you need some other...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.