Function to compare particular value with LOV Additional Description column

Hi,
Is there an existing function that compares a value with the "Additional Description" of a particular LOV ?
Can the comparison be done by "Adminstration - Personalization"?

Sorry & thanks sathish,
Now i got the result.
SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE BETWEEN TO_DATE ('31.01.2007 00:00:00', 'DD.MM.YYYY HH24:MI:SS') AND TO_DATE ('31.01.2007 23:59:59', 'DD.MM.YYYY HH24:MI:SS')
2 and application_id=2007010028552;
DECISIONED_STAGE_ID DECISIONED_STAG
2006060113 SYSTEM
================================
But one doubt,
When i created the column with the date datatype how it gets the time value,
And in one environment db i got the result but in another environment i dont get,
Shall i want to change any session status of date?

Similar Messages

  • How to compare single value with multiple values

    In my query I have something like this:
    A.SOR_CD=B.SOR_CODE where A and B are 2 different tables. This condition is in the where clause. The column in table A has single values but some values in table B have multiple comma separated values (822, 869, 811, ..).  I want to match this single
    value on the left side with each of the comma separated values. Please let me know how will I be able to do it. The number of comma separated values on the right side may vary.

    Hi MadRad123,
    According to your description, you want to compare single value with multiple values in your query. Right?
    In this scenario, the table B has comma separated values, however those comma separated values are concatenated into a string. So we can use charindex() function to return the index of the table A value. And use this index as condition in
    your where clause. See the sample below:
    CREATE TABLE #temp1(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp1 VALUES
    ('1','A'),
    ('2','A'),
    ('3','A'),
    ('4','A'),
    ('5','A')
    CREATE TABLE #temp2(
    ID nvarchar(50),
    Name nvarchar(50))
    INSERT INTO #temp2 VALUES
    ('1','a,A'),
    ('2','A,B'),
    ('3','c'),
    ('4','A,C'),
    ('5','d')
    select * from #temp1 a inner join #temp2 b on a.ID=b.ID
    where CHARINDEX(a.Name,b.Name)>0
    The result looks like below:
    Reference:
    CHARINDEX (Transact-SQL)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Comparing a value with NULL

    Hi,
    A funny thing is happening to me. Is it only in oracle 9i or in every version.
    I am working on a state project on Data Warehousing and faced a small BUG. Here is the sample code.
    DECLARE
    v_Var varchar2(10) := 'a';
    v_Null varchar2(10) := null;
    BEGIN
         IF v_Var != v_Null THEN
              DBMS_OUTPUT.PUT_LINE('First: Not equal');
         ELSE
              DBMS_OUTPUT.PUT_LINE('First: Equal');
         END IF;
         IF v_Var = v_Null THEN
              DBMS_OUTPUT.PUT_LINE('Second: Equal');
         ELSE
              DBMS_OUTPUT.PUT_LINE('Second: Not equal');
         END IF;
    END;
    This anonymous block should return Not Equal for both the statements, but unfortunately it returns Equal for the First and Not equal for the Second.
    Is this a BUG?
    Is this happening only in version 9i (I use version 9.2.0.1.0)?
    Any help/suggestion is appreciated.
    Thanks! :)
    Kamal Vala

    Thanks Justin! :)
    I got a clear answer from U.
    Appreciated.
    In this case I can go with the second statement as any way it returns Not equal
    Here is the modified actual statement which I am using in my procedure and now it works.
    I have modified the Inner IF by adding ELSE part, comparing with = (Earlier !=) and passing the variable assign to the ELSE part.
    -- compare old values with new values after checking the NULL values for Approver.
    IF (vc_Approver IS NULL) AND (v_Approver IS NULL) THEN
    -- Not passing value to keep the same value for v_RecInsert as the value is not changed.
    NULL;
    ELSE
    IF vc_Approver = v_Approver THEN
    -- Not passing value to keep the same value for v_RecInsert as the value is not changed.
    NULL;
    ELSE
    v_RecInsert := TRUE;
    END IF;
    END IF;
    Here if v_RecInsert is TRUE then I have insert the record.
    Hi Garcia,
    I can't use NVL function here as I have to pass a value for NULL and If that value really comes in the field.....than it will problem again.
    Thanks! to Justin and Garcia for taking ur time.
    Kamal Vala :)

  • How can I compare single value with multiple value...

    Hello,
    I want to compare one value with multiple values, how can it possible ?
    Here in attachment I tried to design same logic but I got problem that when I entered value in y that is compared with only minimum value of x, I don't want that I want to compare y value with all the x value and then if y is less then x while loop should be stop.
    I want to do so because in my program some time I didn't get result what I want, for example x values is 4,5,6,7,8  and y value is  suppose 6 then while loop should be stop but here it consider only minimum number and its 4 here so while loop is not stop even y is less then 7 and 8. So I want to compare y value with all the entered values of x and if y is less then any of x values then while loop should be stop and led should be ON.
    Please guide me how can I do so.....
    Solved!
    Go to Solution.
    Attachments:
    COMPARISON.vi ‏8 KB

    AnkitRamani wrote:
    Thank you very mach for your help..
    may be i have solved this ....i have made one change in my vi that instead of min. i select max and max. value is compare with the value of y and then if y is less then the max. while loop will be stop other wise its run continuously.
    this is working fine...
    any ways thanks again for your help and time...
    I have to agree with Lewis - his way is more efficient.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Compare current value with previous value

    Hello,
    I would like to compare the current value with the previous value of the current value.
    How can I solve this problem?
    Maurits

    Hi,
    after going through the basics course you surely can understand that example:
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to compare the date value with the date datatype column?

    Hi,
    I am executed a query to get output for the particular date in two different database.
    I got output in one db environment, but in the another environment i didnt get the output.
    APP_DECISION_DATE column contains date datatype
    ex:
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE = TO_DATE('23-JAN-07',
    'DD-MON-YY'); 2
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060106 SYSTEM
    DATABASE - II
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE=
    TO_DATE('31-JAN-2007','DD-MON-RRRR') and application_id=2007010028552;
    no rows selected
    in the same db i got the output while i used the TO_DATE(APP_DECISION_DATE)
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where TO_DATE(APP_DECISION_DATE)=
    TO_DATE('31-JAN-2007','DD-MON-YYYY') and application_id=2007010028552; 2
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060113 SYSTEM
    is it necessary to use TO_DATE function while i am using the data datatype column in the WHERE CLAUSE?
    Thanks in advance.
    siva

    Sorry & thanks sathish,
    Now i got the result.
    SQL> select DECISIONED_STAGE_ID,DECISIONED_STAGE_USER_ID from naap10_application where APP_DECISION_DATE BETWEEN TO_DATE ('31.01.2007 00:00:00', 'DD.MM.YYYY HH24:MI:SS') AND TO_DATE ('31.01.2007 23:59:59', 'DD.MM.YYYY HH24:MI:SS')
    2 and application_id=2007010028552;
    DECISIONED_STAGE_ID DECISIONED_STAG
    2006060113 SYSTEM
    ================================
    But one doubt,
    When i created the column with the date datatype how it gets the time value,
    And in one environment db i got the result but in another environment i dont get,
    Shall i want to change any session status of date?

  • Compare a value with list

    Hi.,
    I am using jdeveloper 11.1.1.5
    I had used this code in my AMImpl method
        public void updateFinYrs (){
            System.out.println("*************");
            getDBTransaction().setLockingMode(DBTransaction.LOCK_NONE);
            ViewObject vofy  = this.getFinYears1();
            Row vofyr = vofy.getCurrentRow();
            List schclasslist = new ArrayList();
            RowSet glacclrs = findViewObject ("FinYears1").getRowSet();
            for (Row vofyr1 = glacclrs.first();vofyr1!=null;vofyr1 = glacclrs.next()){
                if (vofyr1.getAttribute("FyStatus").equals("U")){
                    schclasslist.add(vofyr1.getAttribute("FyYear"));
            System.out.println (schclasslist.toString());
            if (schclasslist.equals(null)){   //In this i need to check whether the list s null
                vofyr.setAttribute("FyStatus","U");
            this.getDBTransaction().commit();
        }For me if schclasslist is not equal to null then also it staisfies the condition

    Thank you suresh,jhon and jabr
    I dont know wer i am goin wrong This is the scenario i am trying to do
    I am trying to update a table when schclasslist is empty so that i used this code in my AMIMpl Method
    public void updateFinYrs (){
            System.out.println("*************");
            getDBTransaction().setLockingMode(DBTransaction.LOCK_NONE);
            ViewObject vofy  = this.getFinYears1();
            Row vofyr = vofy.getCurrentRow();
            List schclasslist = new ArrayList();
            RowSet glacclrs = findViewObject ("FinYears1").getRowSet();
            for (Row vofyr1 = glacclrs.first();vofyr1!=null;vofyr1 = glacclrs.next()){
                if (vofyr1.getAttribute("FyStatus").equals("U")){
                    schclasslist.add(vofyr1.getAttribute("FyYear"));
            System.out.println (schclasslist.toString());   //In this line i am getting values as 200809
            if (schclasslist .isempty()){   //It means that the condition is not satisfied
                vofyr.setAttribute("FyStatus","U");  //This line must not get executed
            this.getDBTransaction().commit();
        }But in my output that lines get executed and updated in the DB
    Could any body pls help me

  • Can't Set Default Value for LOV Presentation DB Column

    I have a simple form. One of the fields is populated using a named, dynamic LOV with the following source query:
    SELECT USER_NAME DISPLAY_VALUE, USER_ID RETURN_VALUE
    FROM USER_ACCT
    ORDER BY 1
    I want the default user to be public, which is one of the possible values returned by the above query. However, I just can't find a good way to do this.
    If I put the following query in the Default section, nothing happens.
    SELECT USER_ID
    FROM USER_ACCT
    WHERE USER_NAME = 'PUBLIC'
    If I look up the ID and statically put the value in the Default, it works (This isn't acceptable . From environment to environment the value will differ)
    If I put the SQL in an after footer page process, it sets the value correctly in the session but, does not update the display.
    If I try to put it in the Post Calculation Computation section, it merely produces an error.
    I'm sure that I am missing something simple but, I have not spent an hour and half on this.
    Someone please help!
    -Joe

    A function I'd like to see is the ability to not only create a select list dynamically, but also set the default value of that select list's item to the first (or Nth?) value on that list. This could be specified in the builder by an item option.
    E.G., if a select list LOV returns three values: "foo", "bar", "baz", go ahead and set the value of the select list item to "foo".
    As far as I've been able to discover, there's no built-in way to do this in Application Express. I've looked through the app, the docs, and the forum. If such a method does exist, please let me know.
    Otherwise, we end up running additional processes that reissue the query so we can grab the first item as the default value. This seems inefficient to me.
    Keeping the LOV query and the "first item" query consistent can present problems as well. We usually end up pushing the LOV query into a function so it can be maintained in a single location, but this seems more like a workaround than anything else.
    While the query is probably cached, Application Express has that return value already, right? Why calculate/choose it again?

  • How to show string value with spaces in seperate columns

    Hi all, I'm using Oracle 10g.
    create table
    create table sample_test (
      Name    VARCHAR2(20 BYTE))insert table
    insert into sample_test values ('JOAN   SCT')
         insert into sample_test values ('MELIA FILCK')
          insert into sample_test values ('SSAN LIER-LILEY')
           insert into sample_test values ('C.M. DANY WES')
               insert into sample_test values ('A L SCOTT')select * from sample_test;
    Name
    JOAN   SCT
    MELIA FILCK
    SSAN LIER-LILEY
    C.M. DANY WES
    A L SCOTTi would like the output as follows
    NAME1        NAME2      NAME3
    JOAN          SCT              
    MELIA        FILCK              
    SSAN       LIER-LILEY
    C.M.          DANY       WES
    A             L          SCOTTwhen ever there is a space in the name the value next to that should be shown in an other column. please note the first name joan sct has two spaces. but it needs to be treated as single space.
    also is it possible to get something like this
    NAME1        NAME2    
    JOAN          SCT              
    MELIA        FILCK              
    SSAN       LIER-LILEY
    C.M.DANY       WES
    A L          SCOTTthe value before first space on the right should be in name2 everything else in name1 field.
    Thanks in advance.

    Hi,
    Since you have Oracle 10, you can use regular expressions:
    For the 3-column output:
    SELECT        REGEXP_SUBSTR (name, '[^ ]+', 1, 1)     AS name1
    ,        REGEXP_SUBSTR (name, '[^ ]+', 1, 2)     AS name2
    ,        REGEXP_SUBSTR (name, '[^ ]+', 1, 3)     AS name3
    FROM        sample_test;     [^xyz]     means "any character except x, y or z".
    +     means "1 or more of the preceding"
    The 4th argument to REGEXP_SUBSTR tells which occurrence of the pattern we want.
    For the 2-column output:
    SELECT        REGEXP_REPLACE (name, ' *[^ ]+$')     AS before_last_space
    ,        REGEXP_SUBSTR  (name,   '[^ ]+$')     AS after_last_space
    FROM        sample_test;$     here means "the end of the string".
    In Oracle 10, you often have to use REGEXP_REPLACE to get substrings.
    Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful!
    Edited by: Frank Kulash on Sep 7, 2011 3:21 PM

  • Comparing database table with one value

    hi,
    i need to compare a value with table record.
    how can i compare?
    please help me.
    Thank you

    I guess your question doesn't fully present your
    doubt.. JDBC is the obvious answer for accessing the
    database and taking the result set.. Post back if
    this is not what you wanted..It's too obvious and like many others the OP might not ever visit this thread.

  • Update a filed value with powershell script with ordery by and where condition

    Hi
    I have below powershell script to update list columns but  how i update a field value with ordery by a column and where condition
    below is the part of my script
    $list = $web.Lists[$listName]
    $items = $list.items
    $internal_counter = 1
    #Go through all items
    foreach($item in $items)
    if($item["CourtNO"] -eq $null)
    #if($item["CourtNo"] -eq '1')
    $item["CaseNo"] = $internal_counter
    #how to add a column ordery by Title
    # and where Title field value from 1 to 10
    $internal_counter++
    adil

    Hi,
    You mean that you only need to update all items with Title field value in range 1..10 and order by them before run the loop statement update?
    If so, use CAML query to get the items only match the condition.
    #Build Query
    $spQuery = New-Object Microsoft.SharePoint.SPQuery
    $query = '<Where><And><Gte><FieldRef Name="Title" /><Value Type="Text">0</Value></Gte><Lte><FieldRef Name="Title" /><Value Type="Text">10</Value></Lte></And></Where><OrderBy><FieldRef
    Name="Title"/></OrderBy>'
    $spQuery.Query = $query
    $spQuery.RowLimit = $list.ItemCount
    $items = $list.GetItems($spQuery)
    Hope this help!
    /Hai
    Visit my blog: My Blog | Visit my forum:
    SharePoint Community for Vietnamese |
    Bamboo Solution Corporation

  • Create a new column in a table that compares the value of one column with its previous value

    The DDL:
    DECLARE
    @T TABLE
    IDNO
    int,
    name
    varchar(40),
    [Date]
    datetime2,
    Price1
    float,
    Price2
    float
    DECLARE
    @K TABLE
    IDNO
    int,
    name
    varchar(40),
    [Date]
    datetime2,
    Price1
    float,
    Price2
    float
    INSERT
    INTO @T
    VALUES(22,'C_V_Harris','2014-01-02 10:23:49.0000000',
    23.335,      
    23.347)
    INSERT
    INTO @T
    VALUES(21,'C_V_Harris','2014-01-02 10:05:13.0000000',
    23.357,      
    23.369)
    INSERT
    INTO @T
    VALUES(20,'C_V_Harris','2014-01-02 09:56:15.0000000',
    23.364,      
    23.377)
    INSERT
    INTO @T
    VALUES(19,'C_V_Harris','2014-01-02 09:45:26.0000000',
    23.351,      
    23.367)
    INSERT
    INTO @T
    VALUES(18,'C_V_Harris','2014-01-02 09:43:20.0000000',
    23.380,      
    23.396)
    INSERT
    INTO @T
    VALUES(17,'C_V_Harris','2014-01-02 09:34:28.0000000',
    23.455,      
    23.468)
    INSERT
    INTO @T
    VALUES(16,'C_V_Harris','2014-01-02 09:30:37.0000000',
    23.474,      
    23.486)
    INSERT
    INTO @T
    VALUES(15,'C_V_Harris','2014-01-02 09:18:12.0000000',
    23.419,      
    23.431)
    INSERT
    INTO @T
    VALUES(14,'C_V_Harris','2014-01-02 09:16:06.0000000',
    23.360,      
    23.374)
    INSERT
    INTO @K
    SELECT
    ROW_NUMBER()
    OVER (ORDER
    by IDNO)
    AS RN,*
    FROM
    @T
    SELECT
    * FROM
    @K
    --not working:
    SELECT
    a.RN,a.Price2
    FROM
    @K a
    INNER
    JOIN @K
    b
    ON
    a.RN=b.RN-1
    WHERE
    a.Price2>b.Price2
    I need to create  a view with a column (say 'Comp' below) that compares the value of each row in Price2 with the previous Price2 row, and it is greater then +1, the
    same 0, and less -1.
    The processed table should be:
    IDNO
    name
    Date
    Price1
    Price2
    Comp
    22
    C_V_Harris
    1/2/2014 10:23:49
    23.335
    23.347
    0
    21
    C_V_Harris
    1/2/2014 10:05:13
    23.357
    23.369
    1
    20
    C_V_Harris
    1/2/2014 9:56:15
    23.364
    23.377
    1
    19
    C_V_Harris
    1/2/2014 9:45:26
    23.351
    23.367
    -1
    18
    C_V_Harris
    1/2/2014 9:43:20
    23.38
    23.396
    1
    17
    C_V_Harris
    1/2/2014 9:34:28
    23.455
    23.468
    1
    16
    C_V_Harris
    1/2/2014 9:30:37
    23.474
    23.486
    1
    15
    C_V_Harris
    1/2/2014 9:18:12
    23.419
    23.431
    -1
    14
    C_V_Harris
    1/2/2014 9:16:06
    23.36
    23.374
    -1
     How can I structure the statement to get (the most recent - order by date ) result for Comp?

    Satheesh Variath, I just had to make some corrections from your script to get the correct answer:
    CREATE
    VIEW vw_Comp
    AS
    SELECT
    TOP 1 t.IDNO,t.name,t.[Date],t.Price1,t.Price2,
    CASE
    WHEN t.Price2
    > LAG(Price2,1)
    OVER (PARTITION
    BY name
    ORDER BY IDNO) 
    THEN 1
    WHEN t.Price2
    < LAG(Price2,1)
    OVER (PARTITION
    BY name
    ORDER BY IDNo) 
    THEN -1
    ELSE 0
    END
    AS Comp
    FROM 
    @T t
    ORDER
    BY DATE
    DESC
    The adjustments: the selection of the most recent comparison (Top 1) and the use of the function LAG (instead of LEAD) to get the previous value of the column.

  • Counting rows with a particular value

    Hello. I recently posted this thread Count java problem for how to count an attribute.
    Now I need that count to be limited to a certain value inside the attribute.
    let me clarify. I have a table Casinos, which is connected to a table SlotsInCasinos, which is further connected to SlotMachines in a many to many with SlotsInCasinos being the intersection.
    The previous post that I mentioned (thanks Timo by the way) told me how to count all the slots in a particular casino.
    Now I would like to know how I could count all the slots of a particular value (for example Poker slot Machines, regular Slot machines, etc) instead of the total count in a particular object.
    So on the page I would have lets say 2 output texts, one showing the number of Poker Slot Machines in that particular casino and the other showing the number of regular Slot machines in that particular casino (a third could show the number of some third kind of slot machines).
    Thank you for your time

    Hello everyone here is an update
    I created a view object called Test, based on the entity object SlotMachinesInCasino. I then created a view link TestLink and created a master detail relationship (the same one I already had for the View Object SlotMachinesCasinosVO.
    The difference is in the query for test I put the following
    SELECT
        VezaTehOpTipAp.OBJEKAT_ID,
        VezaTehOpTipAp.TIP_APARATA_ID,
        VezaTehOpTipAp.VEZA_TEH_OP_TIP_AP_ID,
        TIPOVI_APARATA.NAZIV_APARATA NAZIV_APARATA
    FROM
        VEZA_TEH_OP_TIP_AP VezaTehOpTipAp,
        TIPOVI_APARATA
    WHERE
        TIPOVI_APARATA.NAZIV_APARATA = 'Evona'My thinking was that if I do this the estimated row count function for this will just give me the number of Evona Game machines. I tried it out in an SQL Worksheet and it gives back only the Evona machines.
    Unfortunately when I create the TestIterator and then drop output text whose EL is the estimated row count for the test iterator it does not work as intended. It counts all the Slot Machines in the Object no matter the Name.
    So it gives a number equal to all the slot machines instead of to the number of slot machines with name 'Evona'.
    What did I do wrong?

  • How to compare, current value in :block.text_item with the database value

    Hi
    Could you please tell me
    How to compare the current value in :block.text_item with the corresponding database column value.
    I am using forms 10g
    There is block and there is an text Item in that block.
    When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
    Now I add some value in the :block.text_item to the existing value.
    now
    the :block.text_item contains old+ new added value
    whereas
    the database table contains 'old' value
    Now on a button click , I want to find out what is the value that I have added
    Could you please tell me, is it possible without writing a select query?

    Hello,
    Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
    Value in Database is = ABCD
    User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
    Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
    Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
    DECLARE
      vItemValue DATATYPE; -- Set the data type according to your desired field.
      vValueAdded DATATYPE; -- Set the data type according to your desired field.
    BEGIN
      vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
      IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
        vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
        MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
      END IF;
      -- now suppose you want to show the old and new value in message not the added one
      -- Then no need of IF condition. You can just use message like this
      -- And i would prefer to use like this way
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
    END;Hope it is clear.
    -Ammad

  • Comparing the current value with the previous one in Powershell

    Hi,
    New to scripting and i was wondering how can I compare the current value with the previous value?
    I am having trouble with the loop structure, and I am not sure I am on the right track...
    I am trying to compare the record to next record in the same csv file after import-csv... My code runs fine, but is not giving the right result.
    $FilePath = Get-FileName -initialDirectory "C:\"
    #Testing for null
    If($FilePath)
    $Data = Import-csv -Path $FilePath | Sort-Object BUYER, {[int] $_.PO_NBR}, {[int] $_.LINE_NBR}
    Foreach($fData in $Data)
    $i = $fData
    Foreach($i in $fData)
    if($fData.Buyer -eq $i.Buyer)
    #save all the same buyer name to a new variable
    Write-Host "Same as previous"
    Else
    Write-Host "Variable is null"
    Remove-Item function:\Get-FileName

    Thank you. The Foreach loop is now working properly.
    Can I ask what is the purpose of "-ea 0" in the import-csv? I can't seem to find "-ea" as a parameter for import-csv in help.
    -ea is short for -ErrorAction.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

Maybe you are looking for

  • HOW TO RESTORE A DISABLED PHONE

    i recently locked my iphone and forgot password. I have disabled my phone and am away from home and can only access itunes from a different computer. Does anyone know how to restore iphone 4 from a new computer? When i plug in it gives me error messa

  • Add one day to the current date

    Hi all, A stupid question... How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days: something like: select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY') from dual Thanks

  • Adobe Acrobat and InDesign documents print once only

    Hi, Printing a 100 page 25 sheet imposed 8.5 x 14 Adobe Acrobat document is limited to only one copy. At the end of the first copy printing; printer stops and requests letter-size paper, for drawer one, printer default is set for 8.5 x 14 and first p

  • Derived Table - Stored Procedure.

    Hi all, Can any tell how you call stored procedure from Derived table. and how manage the IN parameters ? thnx in advance

  • Pop-up message in Acrobat Pro 9.5.2

    "Adobe Acrobat Updater has not been able to check for updates recently.  Check online to see if solutions are available from the Adobe website."  I have checked online, downloaded everything I can find that appears to apply to Acrobat Pro 9.5.2 and s