I need help about a query in oracle 10g,
Here is my question:
There is a table that stores signal statuses that come from different devices.
-
SS1 and SS2 signals are inserted to table in random times,
-
if one of SS1 or SS2 signal status is “up” then the result signal should be “up”
-
if both SS1 and SS2 signal statuses are “down”, then result signal should be “down”
I want to prepare a query that shows the result signal status changes according to SS1 and SS2 signals.
When i see the graph it seems easy, but i can not write a query by using analytic functions.
Table creation and insert script is here.
Thanks in advance,
1 Answer