In my application i have one value which is stored as boolean.
How can i change that Boolean value to text when displaying in grid view.
I have this sql
SELECT Driver.FirstName + Driver.LastName AS DriverName, Driver.PhoneNumber,
Booking.BookingId, Booking.DriverRating, Driver.CarId AS CarUsed
FROM Booking
INNER JOIN Driver ON Booking.DriverId = Driver.DriverId
WHERE Booking.DriverRating = 0
I am retrieving all the all the driver rating which is false(0). Now when i display it to grid view i want to change boolean value false to unsatisfactory.
How can i do it within sql query?
How bout retrieving it from the server as a string to begin with?
For example
Or in your case since you are already using a where clause: