Using case in Select Query:
Example:
SELECT UserID, UserName, CASE(UserAmendId) AS UID WHEN 0 THEN 'True' ELSE 'False' END FROM UserTable
It shows entries with the field UID = true, where its value = 0, otherwise it shows False, where its value is Null.
Table Name: UserTable
Columns: UserID (int), UserName (varchar (50)), UserAmendID (int)
Ria
source share