Deep Tech Fusion

tech related weblog

Transact-SQL – Operators

  1. + (Add):
    Adds two numbers. This addition arithmetic operator can also add a number, in days, to a date.

    SELECT c.FirstName, c.LastName, VacationHours, SickLeaveHours,
        VacationHours + SickLeaveHours AS 'Total Hours Away'
    FROM HumanResources.Employee AS e
        JOIN Person.Contact AS c ON e.ContactID = c.ContactID

Advertisements

December 28, 2006 - Posted by | MSSQL

No comments yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: