Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculation in a simple query?

Status
Not open for further replies.

zeeshan13

Programmer
Jan 28, 2005
82
0
0
US
Hi All,

I have a very simple question.

I want to select a column from a table, like this:

select NAME from employee

Just using the above column,Now i also want to have a calulation with every record (2/2) with a name 'GM' in my resultset.

I want to view my result like this:

NAME GM
tina 1
lisa 1
sara 1

How can I do this?






 
zeeshan bhai ! just curios why you want to do that !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top