Replacing null table entries in select result?
Hi!
I need to modify a sql statement, I have a statement like this:
SELECT Name, MyID FROM Persons
Persons:
ID (PK,int,not null)
Name (varchar(250,not null))
MyID (varchar(10,null))
but some of the table entries lack MyID and what would i like is that the result of this select statement
would return 'XXXXXXXXXX' in MyID insted of null for the entries that lack MyID (without modifying db).
thanks alot!
|