How to output only non-existing values

If I have a table say Employee and has values for EmployeeNum as 1111, 2222, 3333 and I have a query like this. SELECT EMPLOYEENUM FROM EMPLOYEE WHERE EMPLOYEENUM IN (4444, 66666, 1111)
Now, this will only return 1111. But, I want to find out values that are not in the table. So, I want to output 4444, 66666.
How can this be done. Please suggest?

This is called anti join...
SELECT *
   FROM TABLE(sys.odcivarchar2list(4444, 66666, 1111)) t
  WHERE NOT EXISTS
  ( SELECT 1 FROM EMPLOYEE d WHERE d.EMPLOYEENUM = t.column_value
  )Ravi Kumar

Similar Messages

  • Query only non numeric values in a column

    How to query only non numeric values in a cloumn.
    For example:
    Table1 has a column1(col1)
    Values:
    Row Value
    1 27376
    2 47D99
    3 83039
    4 DKFI*
    5 3J6
    Query should retrieve only rows(2,4,5).
    Thanks! for help
    Murali

    Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
    -- Create a function
    Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
    AS
    vNumber NUMBER := 0;
    begin
      vNumber := to_number(pCol);
      RETURN NULL;
    Exception
      When Others Then
        RETURN pCol;
    End;
    -- To See VARCHAR values (alpha-numeric) only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NOT NULL;
    -- To See NUMBER values only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
    Thx,
    SriDHAR

  • Application hangs for non existing value

    Hi,
    At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
    when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
    why it is hanging in application and why not in DB?
    can any one brief me on this regard? why does application hangs for non exsting value?
    With Regards
    Boo

    Hi,
    At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
    when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
    why it is hanging in application and why not in DB?
    can any one brief me on this regard? why does application hangs for non exsting value?
    With Regards
    Boo

  • Updating a DB table with only non-empty values of a work area

    Hi everybody,
    Is that possible in ABAP to update a table in the database with a work area, but only with non-empty values of this work area?
    Example:
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    ls_custom-FIRSTNAME = ' '.
    ls_custom-CURRENCY = ' '.
    update ZCUSTOMERS_0 from ls_custom.  *" I want that the update clause don't do the update with FIRSTNAME  and CURRENCY fields because they have empty values*
    If it's possible, how to do it?
    Thanks & regards,
    Abdel

    Total Questions:  81 (66 unresolved)
    Hi,
    To my understanding you mean if the database table has values
    customer         20
    lastname          somename
    firstname         firstname
    currency          INR
    so now after this
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    ls_custom-FIRSTNAME = ' '.
    ls_custom-CURRENCY = ' '.
    update ZCUSTOMERS_0 from ls_custom.
    you want the result as
    customer         20
    lastname          Myname
    firstname         firstname
    currency          INR
    Is it so? Then Normal update
    data: ls_custom type ZCUSTOMERS_0.
    ls_custom-CUSTOMER = '20'.
    ls_custom-LASTNAME = 'MyName'.
    update ZCUSTOMERS_0 from ls_custom.
    would do that.
    Thanks,
    Sri.

  • Display only non zero values  in rows

    Hi Friends,
                      I have a key figure "X', and it is split over 12 months (aging buckets), by using formula, but I want to filter values with zero values ie I want to display all non zer values only.
    This looks like
    Apr        100   
    May       200   
    Jun         200 
    Jul            0   
    Aug
    Sep
    Oct
    Nov
    Dec
    Jan
    Feb
    Mar
    In the above example I dont want to display 'Jul' at all, and the rest should be displayed, Wherein all the above are formula(Apr, May,......)
    Is it possible ?
    If so , what is method.
    I tried supress in query properties , Like supress zeros, but it is not working.
    Suggest me
    Points assured.
    Sanjay

    Dear Gupta,
                       In my case condition is not working, as I want to display values that ae non zeros. If I am using conditions, none of the values are displayed like Apr, May,Jun, Jul, etc........, I want to display all values except Jul as that values is zero as per my example.
    Please suggest
    Sanjay.

  • How to find first non zero value from the numeric value or string?

    Hiii, Every body
              I have one numeric indicator in which some valuse is coming with the decimal value, lets say 0.00013, now i want to find the first non-zero value from this numeric indicator, then what should i do to do so? i have converted it in the string, but i could not find any method to find first non-zero value from that string or either from the numeric indicator????
          Can you please help me, how to do it? i have attached the vi and write all the description inside.
    Thanks in Advance,
    Nisahnt
    Attachments:
    Find first nonzero.vi ‏20 KB

    Just convert it to an exponential string and take the first character .
    Message Edited by altenbach on 05-10-2006 08:00 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    FisrstNonzeroChar.png ‏3 KB
    FindFirstNonzeroCharacter.vi ‏20 KB

  • How can save only the checked values in a record as a string?

    I have a question on form where the user can choose multiple checkboxes. Due to the type of form that it is there will only be one record written. I am using Access as a comprehensive form as opposed to a database in this instance.
    Once industry submits this application (form) to us I upload some data to Oracle database which works fine. Now, I need to upload some of the data to a workflow software. I figured out how to do everything except the following:
    In this record there are over 20 checkboxes. Each check box has a name/Record source such as SA (Surface Area), SC (Surface Contour), SS (Sleep Slope), ect. The user will select several of these checkboxes. I need to look at each chk box field. If the value
    = true, write the fullname of each field to a table as a string with each field seperated with a comma. For instance,
    If SA, SC and SS were checked on the form Surface Area,Surface Contour,Sleep Slope would be added to the Procedure_Value field in a table (see function ExportTable). Next I convert the table into a text file
    Function ExportTable
    dim rst As DAO.Recordset
    dim strSQL1 As String
    strSQL1 = "SELECT tblExport1.* FROM tblExport1;"
    Set db = CurrentDb()
    Set rst = db.OpenRecordset(strSQL1, dbOpenDynaset)
    With rst
    .AddNew
    rst!Procedure_Value = "Surface Area,Surface Contour,Sleep Slope"
    .Update
    End With
    rst.Close
    Set db = nothing
    Set rst = nothing
    End Function
    jim neal

    If I understand you correctly you have one table with a bunch of yes/no values (SA, SC, SS, etc.).  Then for each record in that table you want to output a string listing all the fields from the first table which = yes (i.e are checked).  Perhaps
    the following code would get you started:
    Sub JimNeal()
        Dim strProcedure_Value As String
        Dim rst As DAO.Recordset
        Dim rstOut As DAO.Recordset
        Set rst = DBEngine(0)(0).OpenRecordset("TableWithCheckboxes")
        Set rstOut = DBEngine(0)(0).OpenRecordset("OutputTable")
        Do Until rst.EOF
            strProcedure_Value = ""
            If rst!SA Then strProcedure_Value = strProcedure_Value & "Surface Area,"
            If rst!SC Then strProcedure_Value = strProcedure_Value & "Surface Contour,"
            '... etc
            If rst!SS Then strProcedure_Value = strProcedure_Value & "Steep Slope,"
            rst.MoveNext
            ' Strip off final comma
            If Len(strProcedure_Value) > 0 Then strProcedure_Value = Left(strProcedure_Value, Len(strProcedure_Value) - 1)
            ' Output the string to your output table
            rstOut.AddNew
            rstOut!Procedure_Value = strProcedure_Value
            rstOut.Update
        Loop
        rst.Close
        rstOut.Close
        Set rst = Nothing
        Set rstOut = Nothing
    End Sub
    -Bruce

  • SQL Challenge - Returning count=0 for non-existing values

    Hello there,
    I have a question about our requirement and an SQL query. I have posted this to some email groups but got no answer yet.
    Here is the test case:
    SQL> conn ...
    Connected.
    -- create the pattern table and populate
    SQL> create table pattern(id number, keydescription varchar2(50));
    Table created.
    SQL> insert into pattern values(1,'hata1');
    1 row created.
    SQL> insert into pattern values(2,'hata2');
    1 row created.
    SQL> insert into pattern values(3,'hata3');
    1 row created.
    SQL> insert into pattern values(4,'hata4');
    1 row created.
    SQL> insert into pattern values(5,'hata5');
    1 row created.
    SQL> select * from pattern;
    ID KEYDESCRIPTION
    1 hata1
    2 hata2
    3 hata3
    4 hata4
    5 hata5
    SQL> commit;
    Commit complete.
    -- create the messagetrack and populate
    SQL> create table messagetrack(pattern_id number, realdate date);
    Table created.
    SQL> insert into messagetrack values(1,to_date('26/08/2007 13:00:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> insert into messagetrack values(1,to_date('26/08/2007 13:05:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> insert into messagetrack values(2,to_date('26/08/2007 13:15:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> insert into messagetrack values(3,to_date('26/08/2007 14:15:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> insert into messagetrack values(4,to_date('26/08/2007 15:15:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> insert into messagetrack values(1,to_date('26/08/2007 15:15:00','dd/mm/yyyy hh24:MI:ss'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from messagetrack;
    PATTERN_ID REALDATE
    1 26-AUG-07
    1 26-AUG-07
    2 26-AUG-07
    3 26-AUG-07
    4 26-AUG-07
    1 26-AUG-07
    6 rows selected.
    Now, we have this simple query:
    SQL> select p.KeyDescription as rptBase , to_char( mt.realdate,'dd') as P1 , to_char(mt.realdate,'HH24') as P2, count(*) as countX
    2 from messageTrack mt, Pattern p
    3 Where mt.realDate >= to_date('26/08/2007 13:00:00','dd/MM/yyyy hh24:MI:ss')
    4 and mt.realDate <= to_date('27/08/2007 20:00:00','dd/MM/yyyy hh24:MI:ss')
    5 and mt.pattern_id=p.id
    6 group by p.KeyDescription, to_char(mt.realdate,'dd'), to_char( mt.realdate,'HH24')
    7 order by p.KeyDescription, to_char(mt.realdate,'dd'), to_char(mt.realdate,'HH24');
    RPTBASE P1 P2 COUNTX
    hata1 26 13 2
    hata1 26 15 1
    hata2 26 13 1
    hata3 26 14 1
    hata4 26 15 1
    But the result we need should contain the pattern values(hata1, hata2, hata3 and hata4) for each time interval(hour) although there are might be no records of some patterns for some hours.
    The result for our test case should look like this:
    RPTBASE P1 P2 COUNTX
    hata1 26 13 2
    hata1 26 14 0
    hata1 26 15 0
    hata2 26 13 1
    hata2 26 14 0
    hata2 26 15 0
    hata3 26 13 0
    hata3 26 14 1
    hata3 26 15 0
    hata4 26 13 0
    hata4 26 14 0
    hata4 26 15 1
    Our version is 10.2.0.2
    On my discussions some said model clause may be used, but i don't know model clause much and can't imagine how to use.
    You can download the test case code above to reproduce from:
    http://www.bhatipoglu.com/files/query1.txt
    You can see the output above more clearly(monospace font) on:
    http://www.bhatipoglu.com/files/query1_output.txt
    Additionally, I want to state that, in the resulting table, we don't want all the patterns(hata1, hata2, hata3, hata4 and hata5). We just want the ones that exists on messageTrack table(hata1, hata2, hata3 and hata4) as you see on the result.
    Thanks in advance.

    Here is an attempt with the Model Clause:
    Edit: I should mention that I created a view out of your original query.
    SELECT rptbase
          ,day
          ,hour
          ,countx
    FROM demoV
      MODEL
        DIMENSION BY (rptbase, day, hour)
        MEASURES (countx)
          RULES(countx[
                        FOR rptbase IN (SELECT rptbase
                                        FROM demoV)
                        ,FOR day IN   (SELECT day
                                        FROM demoV)
                        ,FOR hour FROM 13 to 15 INCREMENT 1
                        ] =
                        NVL(countx[CV(rptbase),CV(day),CV(hour)],0)
                order by 1,2,3;Which produces the following
    RPTBASE                                    DAY                 HOUR               COUNTX                
    hata1                                              26                     13                     2                     
    hata1                                              26                     14                     0                     
    hata1                                              26                     15                     1                     
    hata2                                              26                     13                     1                     
    hata2                                              26                     14                     0                     
    hata2                                              26                     15                     0                     
    hata3                                              26                     13                     0                     
    hata3                                              26                     14                     1                     
    hata3                                              26                     15                     0                     
    hata4                                              26                     13                     0                     
    hata4                                              26                     14                     0                     
    hata4                                              26                     15                     1               Note my Hata1 26 15 has a countx of 1 (I believe that this is correct and that your sample result is incorrect, if this is not the case, please explain why it should be 0)
    Message was edited by:
    JS1

  • How to select only first few values in a Column

    Hi, in one of the column of type SDO_GEOMETRY. In that column we have many values. Example : *(-6.33787700000002, 56.547309, -6.33786800000001, 56.547279, -6.33781400000001, 56.547249, -6.33776900000001)*
    I wanted to know how can i select only first two or last two values from within the column.
    Eg: i want only -6.33787700000002, 56.547309 to be displayed
    Thanks

    Hi,
    Are the value specified here are multirow or single row data?
    if it is multi row, Karthick solution should work. Else if it is a single row then try this
    with T as
    select '-6.33787700000002, 56.547309, -6.33786800000001, 56.547279, -6.33781400000001, 56.547249, -6.33776900000001' SDO_GEOMETRY from dual
    -- end of sample data
    select substr(SDO_GEOMETRY,1,instr(SDO_GEOMETRY,',',1,&cnt)-1) Output from T
    PRAZY@11gR2> /
    Enter value for cnt: 2
    OUTPUT
    -6.33787700000002, 56.547309
    Elapsed: 00:00:00.05And remember, while posting questions it is good to specify your DB version with clear sample data and required output.
    HTH,
    Prazy

  • Non existing value EC for M_BEST_BSA / BSART used in rule set

    Hello,
    while implementing the 2010 rule set updates into our system, we realized that there is a value used that is not existing in the system.
    It is for object M_BEST_BSA, field BSART. The value is EC.
    In the rule update document from Q2 2010, there is the following comment:
    5. PR02 u2013 Maintain Purchase Order u2013 Upon review of this function with the rules mini-council, the decision was made to remove document type from the rules.  Previously, we delivered document types EC, FO and NB with our rules.  However, the majority of customers create custom document types for purchasing.  Many customers did not customize the rules, which results in only those users that had the standard EC, FO and NB document types being reported as having a risk.  Users who had the custom document types would not be reported, which results in false negative reporting.  Therefore, the decision was made to remove document type from our delivered rules.  This will force each customer to review their document types and edit this function to include all relevant document types so all users who have a risk are shown.
    However the value is still enabled in function PR04, even though it is not a valid value for field BSART. It is not existin in table T161, which holds the PO document types. It does not seem to exist since at least release 4.6C
    The value is inherited from the transactions ME28 and ME29N
    Does anyone know what it is about and why the value still is considered a standard value?
    I know this does not give me false conflicts, as the BSART values are used in condition OR.
    Why is the value not just removed, if it is not a valid value at all?
    edit:
    Sorry, forgot to mention, we use CC4.0 in an ECC6.0 system
    end of edit:
    Regards,
    Thomas Schaeflein
    IBM
    Edited by: Thomas Schaeflein on Jan 26, 2011 4:14 PM

    Start by saying bump.
    I've still no word from Adobe if they are doing anything with
    this problem. Any one had any replys from Adobe on it? Any one
    found a work around with recoding queries?

  • How to skip the non-existant URL parameters

    Hello,
    I'm facing a little but nasty problem with the URL params
    collection in Spry.Utils.
    I have got in my code the usual line:
    var params = Spry.Utils.getLocationParamsAsObject();
    and this retrieves the data passed in querystring in the URL
    of the page.
    Anyway, when a parameter does not exist (let's say
    ID_typology is passed only in certain circumstances in the URL of
    the page), a JS error occurs.
    Is there in your knowledge a way to solve the problem ? Is it
    possible to loop into the params collection and control wheter a
    certain parameter exists or not ?
    Thank you in advance for any help.
    Newcomsas

    I'd have to see how you're actually making use of the params
    object to generate your error, but in general, if you want to know
    if something exists or not, you can do something like this:
    if (typeof params.ID_typology != "undefined")
    // Do something with it.
    --== Kin ==--

  • Insert only non-existing row

    Hi All,
    I want to insert this row into the target table only when this row is not already exist. This is easy in SQL, but not sure how to achieve it in OWB.
    ~Prabha

    Hi,
    what do u want to do if the row is already available? If u want to update then just use insert/update in the tgt table properties. If there needs to be no update then do an outer jin with the tgt as source and pick out the rows that is coming from the source with tgt key cols as NULL and just do an insert into the tgt table.
    Regards
    Bharath

  • How to return a non const value?

    Hi,
    I would like one of my methods to return a date object that should not be modified. How do I enforce this? I could create a 2nd object duplicating the original and return it, so any changes to the returned object will not mess up the original, but there must be a better way. What is it?
    Thanks,
    Carlo

    That, sadly won't work because I still need to be able to modify the date internally to the class, just when I return it in a getter I want to enforce non modifyability.
    Following is the code. Look at the getNextTime() method, this is the method that returns the date object that I want to enforce being non modifyable.
    import java.util.GregorianCalendar;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.HashMap;
    import java.util.Date;
    * Any ClockListener may register itself with this object to be notified at
    * specified times. This may for example be usefull for a job that needs to
    * be run at certain times or time intervals.
    * To schedule notifications:
    * 1. Create the class that implements the ClockListener interface.
    * 2. Add this class as a listener to the clock, using one of the schedule
    *    methods.
    * To stop notification:
    * 1. Use remove method.
    * To change a notification schedule
    * 1. Reschedule the listener. If added previously the instance will
    *    automatically be rescheduled.
    * NOTE: The granularity of this timer is 1 minute. All timers will fire on
    *       the minute, even if scheduled mid-way a minute.
    * @see com.sorenson.utils.ClockListener
    * @author carlo
    * @since  Nov 21, 2001 - 9:49:31 AM
    public class Clock
        private HashMap mSchedules;
        private HashMap mReminders;
        private static Clock mInstance = null;
        public static Clock getInstance()
            if (null == mInstance)
                mInstance = new Clock();
            return mInstance;
        private Clock()
            mSchedules = new HashMap();
            mReminders = new HashMap();
         * Every (minute) th minute(s)
        public void scheduleInterval(ClockListener listener, int minute)
            addSchedule(listener, -1, -1, -1, minute);
         * Every day at (hour):(minute)
        public void scheduleDaily(ClockListener listener, int hour, int minute)
            addSchedule(listener, -1, -1, hour, minute);
         * Every week on the (dayOfWeek) day at (hour):(minute)
        public void scheduleWeekly(ClockListener listener, int dayOfWeek, int hour, int minute)
            addSchedule(listener, -1, dayOfWeek, hour, minute);
         * Every month on the (dayofMonth) day at (hour):(minute)
        public void scheduleMonthly(ClockListener listener, int dayOfMonth, int hour, int minute)
            addSchedule(listener, dayOfMonth, -1, hour, minute);
        public Date getNextTime(ClockListener listener)
            return ((Schedule)mSchedules.get(listener)).mNextTime.getTime();
        private void addSchedule(ClockListener listener, int dayOfMonth , int dayOfWeek, int hour, int minute)
            // check for existance
            if (null != mSchedules.get(listener))
                remove(listener);
            // create a schedule for the listener based upon the specified parameters
            Schedule schedule = new Schedule(dayOfMonth, dayOfWeek, hour, minute);
            // link the listener to the schedule and store
            mSchedules.put(listener, schedule);
            // create a reminder for the next wake up time and store
            mReminders.put(listener, new Reminder(listener, schedule.updateNext()));
        public void remove(ClockListener listener)
            // cancel the current reminder
            ((Reminder)mReminders.get(listener)).cancel();
            // remove the schedule for the listener
            mSchedules.remove(listener);
            // remove the canceled reminder for the listener
            mReminders.remove(listener);
        private void wakeUp(ClockListener listener)
            // remove the old reminder
            mReminders.remove(listener);
            // create a new reminder with the next scheduled wake up time
            mReminders.put(listener, new Reminder(listener, ((Schedule)mSchedules.get(listener)).updateNext()));
            // notify listener
            listener.onWakeUpCall();
         * Defines a wake up schedule for a clock listener
        private class Schedule
            // the next date/time the listener for this schedule needs to be notified
            GregorianCalendar mNextTime;
            // schedule rule variables
            int mDayOfMonth;
            int mDayOfWeek;
            int mHour;
            int mMinute;
            Schedule(int dayOfMonth , int dayOfWeek, int hour, int minute)
                // set the initial next time to right now,
                mNextTime = BasicHelper.getGMTGregorianCalendar();
                mNextTime.set(GregorianCalendar.SECOND, 0);
                // save the schedule rules
                mDayOfMonth = dayOfMonth;
                mDayOfWeek = dayOfWeek;
                mHour = hour;
                mMinute = minute;
            long updateNext()
                // once a month
                if (-1 != mDayOfMonth)
                    nextMonth();
                // once a week
                else if (-1 != mDayOfWeek)
                    nextWeek();
                // once a day
                else if (-1 != mHour)
                    nextDay();
                // every so many minutes
                else
                    nextSoManyMinutes();
                // return the time in ms between the current time and the next scheduled wake up time
                return mNextTime.getTime().getTime() - BasicHelper.getGMTGregorianCalendar().getTime().getTime();
            private void nextMonth()
                mNextTime.add(GregorianCalendar.HOUR_OF_DAY, mHour - mNextTime.get(GregorianCalendar.HOUR_OF_DAY));
                mNextTime.add(GregorianCalendar.MINUTE, mMinute - mNextTime.get(GregorianCalendar.MINUTE));
                mNextTime.add(GregorianCalendar.DATE, mDayOfMonth - mNextTime.get(GregorianCalendar.DAY_OF_MONTH));
                // skip to next month if next time in the past
                if (BasicHelper.getGMTGregorianCalendar().after(mNextTime))
                    mNextTime.add(GregorianCalendar.MONTH, 1);
            private void nextWeek()
                mNextTime.add(GregorianCalendar.HOUR_OF_DAY, mHour - mNextTime.get(GregorianCalendar.HOUR_OF_DAY));
                mNextTime.add(GregorianCalendar.MINUTE, mMinute - mNextTime.get(GregorianCalendar.MINUTE));
                mNextTime.add(GregorianCalendar.DATE, mDayOfWeek - mNextTime.get(GregorianCalendar.DAY_OF_WEEK));
                // skip to next week if next time in the past
                if (BasicHelper.getGMTGregorianCalendar().after(mNextTime))
                    mNextTime.add(GregorianCalendar.DATE, 7);
            private void nextDay()
                GregorianCalendar newTime = new GregorianCalendar(
                        mNextTime.get(GregorianCalendar.YEAR),
                        mNextTime.get(GregorianCalendar.MONTH),
                        mNextTime.get(GregorianCalendar.DATE),
                        mHour,
                        mMinute);
                if (newTime.after(mNextTime))
                    mNextTime = newTime;
                else
                    newTime.roll(GregorianCalendar.DATE, true); // rolls one day ahead
                    mNextTime = newTime;
            private void nextSoManyMinutes()
                mNextTime.add(GregorianCalendar.MINUTE, mMinute);
         * Internal class used to set reminders for the wake up schedules of the listeners
        private class Reminder
            Timer mTimer;
            ClockListener mListener;
            Reminder(ClockListener listener, long ms)
                mListener = listener;
                mTimer = new Timer();
                mTimer.schedule(new RemindTask(), ms);
            void cancel()
                mTimer.cancel();
            class RemindTask extends TimerTask
                public void run()
                    // Terminate the timer thread
                    mTimer.cancel();
                    // Wake up the listener
                    Clock.this.wakeUp(mListener);

  • "Phantom Remnant" - How to remove a non-existing server from Snow Leopard

    I have a very strange problem that I am sure has a very simple solution, but I cannot figure it out.
    Previously, my network was centered on my Time Capsule, which, due to router settings, was at 192.168.1.1. However, since moving, the address has changed, but my Mac Pro continues to look for it as a server or device.
    It presents itself any time there is a network or filesystem request of any sort. So anytime I click on Finder (or PathFinder), click on a folder, file, connect to a server, etc., I get a window that pops up saying:
    Connection failed
    The server "192.168.1.1" may not exist or it is unavailable at this time.
    I cannot figure out where the Mac stores it's list of servers that it has used in the past. I have looked through all of my apps that cause this to happen, in their preferences, and I've searched for hours on Google to no avail. It does not happen when I am using a web browser, so I don't think it's looking for the server as a DNS service, but I am thinking it is looking for the Time Capsule as a disk server or something similar.
    Does anyone have any ideas of where else to look? I am comfortable at any level of editing or command line usage. I have set up networking dozens of times on Linux/Windows boxes, but I've not touched the details on my Mac (never had to before ). Is there a way to "flush" the hosts SL thinks exist?
    PS: My new network setup is kind of screwy, and my router to the internet is at 192.168.1.1 internally (and in /etc/resolv.conf), but it does not have a disk of any sort inside (that is accessible at least), but I still have the TC on an internal network with 10.0.1.1 as it's new address.
    TIA
    Message was edited by: ramzy.darwish

    This may help go into the Utilities folder and lunch Keychain Access.
    Make sure you click on login and make sure the category is All Items. Delete all the references to your previous network that appears on the right hand side.

  • How to Return only alpha-numeric Values

    In my query, I want to return only records for which data in a specific column is alpha-numeric. Any records having this field as NULL, or containing symbols, I want to exclude. What's the best way to do this?
    Thanks,
    Brice

    select str from tab1
    where str is not null
    and translate(str, '_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','_') is null
    /Regards
    Dmytro

Maybe you are looking for