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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing Logical Values in Stored Procedures 1

Status
Not open for further replies.

laado

Programmer
Oct 17, 2002
35
AU
Hi Friends
In a Stored procedure when using Select
Can i do something like this
If tableName.FieldName is 1
Output = Yes
else
Output = NO

Thanks in Advance
 
U Can use CASE statement inside the select command..

Example

Select Name, Case Gender When 'M' then 'Male' Else 'Female End from employee

(A star please if this helps u)..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top