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

data types question

Status
Not open for further replies.

saina

Programmer
Jan 19, 2006
8
US
HI,
I am very new to sql and am using TOAD. i am getting teh following error.

when m.merit is null then 0
else m.merit
end as merit

when i am trying to execute this statement i got error
INCONSISTENT TYPES EXPECTED NUMBER GOT CHAR

my question is how to set the value for m.merit zero when it is null.
 
can you show your entire query rather than part of your query? It will help us help you.
 
so can you either delete the thread since there is no answer available to those who may come across the thread in the future with a similar problem OR perhaps actually post the solution to the problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top