Question: I Would like to set Alarmmanager that start after 30 second an execute a specific method..

For example: 

//In this alarm i want to call SpecificMehtod();

```
Intent intent1 = new Intent(context, AutoStartUp.class);
        PendingIntent pintent = PendingIntent.getService(context, 0, intent1, 0);
        AlarmManager alarm = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
        alarm.setRepeating(AlarmManager.RTC_WAKEUP, cal_alarm.getTimeInMillis(), 24 * 60 * 60 * 1000, pintent);//ripeto l'alarm ogni 24 ore

public void SpecificMethod(){
   //Some code here
}

```

Sorry for my english =)

Answer: 
The easiest way would be:

```
IF ((SELECT indicator FROM configuration_table) = 1) THEN
    SELECT series_id, series_code, series_name FROM series_table
END IF

```

You did not show us what to do, when the condition is false. We do not know the relationship between `configuration_table` and `series_table`, so we can't find a way to make it in a single query.
I have copied this answer from [IF Condition Perform Query, Else Perform Other Query](https://stackoverflow.com/questions/17199604/if-condition-perform-query-else-perform-other-query) this answer. 

```
SELECT CASE WHEN ( (SELECT indicator FROM configuration_table) = 1 )
  THEN 
    SELECT series_id, series_code, series_name FROM series_table
  ELSE 
    <QUERY B>
END

```

Here `Query B` should replaced by your desired query.