The data in the table will be updated in 1 minute, more rows will be added in each minutes.
Actually, this data is from an Alarm management software, if any Alarm is occurred in any Station, the software will update the data base table by adding new row on the table with StationID, Value(if alarm is High, then value will be 1; and when alarm reset, the value will be 0), Status(if alarm is High, then Status will be ON; and when alarm reset, the Status will be OFF), & Date(Time&date of alarm log).
Now my requirement is I wanted modify the Status colom, I want to change the status to Active instead of ON. We can conclude like this: When the Value is 1, I wanted to add Active in Status colom.
Given that you are only really manipulating the value in the status column, you could use a case statement to change “On” to “Active.” Something like this should work:
SELECT
StationID,
Value,
IF(Status = 'On', 'Active', 'Off') AS Status,
Date
FROM
FORUM_POST
Another way this can be done is with a Power Table Extension Function. This would be done using scripting on the configureCell Extension Function, and would look like this:
if colName == 'Status':
if value == 'On':
return {'text':'Active'}