Table table 2D to shaped chain

Is this possible. I've included a bit of code I'm working with.

I'm trying to save a group of data which, as the time stamp, a double and a 2d array in a csv file. I got to the point where I am to convert the timestamp and double chain but I guess I was not able to change 2d to string. Or y at - it another way to do it?

Help, please

Note attachments removed by the request of the user of the admin-

Use table string of spreadsheet on the palette of the chain.

Tags: NI Software

Similar Questions

  • Table 1 d of chain to loop

    Hi fellow engineers.

    I'm new to LabVIEW.

    I have a question,

    If I had a table 1 d of string and I want to loop my program for the same number of times (iteration) in conjunction with the number of subfolders that are generated by the function "file list". How can I do?

    Any help is greatly appreciated.

    Wire the array of strings to the border of the loop for. LabVIEW automatically will iterate through each element of the array; You should all this wire to the terminal of the loop N for. This is the default behavior for tables by entering in a loop; If you don't want automatic indexing, right-click on the tunnel (where the table comes in the loop) to change the behavior.

  • Auto centering a div in a table? form shaped box?

    I am redesigning the look of my site. I can't get the div containing the player/title of the film and the thumbs below for Automatic centering of the table.

    http://toddheymandirector.com/testhtml/index_test5_22spots2.html

    If you stretch your browser window until the film is at the center of the canvas to rounded corners, you will see what I want to be like him.

    any ideas?

    also when I converted the page into a table, the form for the projection room area lost its formatting even if the code is still the same...

    See the original page http://toddheymandirector.com/spots/ and below

    formbox.tiff

    Absolute positioning of divs is to kill your layout.

    Try this as a starting point:

    http://ALT-Web.com/templates/CSS2-centered-page.shtml

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics |  Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • Creating a table of the rings by program

    Hello

    I'm using node [] StringsAndValues for the creation of a ring with defined values.

    I wonder if it is possible to define a table of rings and chains of different values for each item in the ring in this table... I've been struggling with this problem but couldn't find a way out. The problem is the property node takes the last value of the loop.

    Of course, my approach on the property node is false. Thoughts alternatives-suggestions?

    See you soon,.

    Palazzo


  • Problem on Converersion in string table

    Hello world

    I have an array of type "string", which all elmenmts are the same: "9.91E37."

    I'm going to do an array of length 64 (64 items) of the '9.91E37' value with a comma between each one (except the first and the last of them).

    The result is supposed to be like this: 9.91E37, 9.91E37,..., 9.91E37

    Is it possible to do it quickly?  I don't really have to use this table, but just a chain with 64 elments, it must have taken some methods to do in labview other than 64 of them by typing in a constant string.

    Thank you very much

    + Kunsheng Chen

    Try "Table chain spreadsheet" with a comma as a delimiter.

    (To make the array of strings, you can use 'initialize array' with the string desired as element and length = 64)

  • Purge the Job SCHEDULER$ _EVENT_LOG Tables

    Hi Experts

    Please I need your help with this issue:

    Oracle Rac two nodes 11 GR 2

    I have a Rac database somehow work tables: PLANNER$ _EVENT_LOG and PLANNER$ _JOB_RUN_DETAILS grow a lot.

    When I run a query to view details MyJob, this query takes a long time to complete, due to the size of these tables, the automatic purge period a few hours to complete and it s not purge.

    Now, I want to serve these tables and I ve done this:

    run DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE('log_history','1');

    BEGIN

    () DBMS_SCHEDULER.purge_log

    log_history = > 1,

    which_log = > 'JOB_LOG ',.

    job_name = > 'MYJOB');

    END;

    /

    BEGIN

    () DBMS_SCHEDULER.purge_log

    log_history = > 1,

    which_log = > 'WINDOW_LOG ',.

    job_name = > 'MYJOB');

    END;

    /

    BEGIN

    DBMS_SCHEDULER. PURGE_LOG (log_history = > 1, which_log = > 'JOB_LOG');

    END;

    /

    I am not able to serve these tables. We run chain job every night.

    Any advice will be appreciated

    Concerning

    JUDGE

    I fix the problem

    It seems that the problem was the use of string information:

    DOC - ID 749440.1

    Rows in the table of newspaper work on the steps of a string are purged only when the entry for the work of the main chain is purged (manually or automatically).

    Action:

    Stop the task of the main chain

    After that I was able to empty tables to work with DBMS_SCHEDULER.purge_log (no line on the tables), but the space used for each table was the same and requests delay again a lot of time.

    So after that, I ran a Truncate on each table (PLANNER$ _EVENT_LOG and PLANNER$ _JOB_RUN_DETAILS), now everything seems fine. I get a lot of space and queries are fast.

    Thank you for your time

  • Run the procedure by table number

    Hello

    Oracle 11.2.0.1
    Windows

    Create the np_type type is varray (3) of the number
    /

    Create the cn_type type is varray (3) the number;
    /

    Create the cxn_type type is varray (3) of varchar2 (2000)
    /

    I created the TEST table by pl/sql block below:

    declare
    execstr varchar2 (2000): =' create table test(';)
    Start
    because me in 1.80 loop
    execstr: = execstr | 'col ' | TO_CHAR (i) | 'number,';
    end loop;
    execstr: = substr (execstr, 1, length (execstr)-1);
    execstr: = execstr | ')';
    dbms_output.put_line (execstr);
    run immediately execstr;
    end;
    /

    create the table sp_table (Splitid number, Delimiterlength number);
    insert into sp_table values (1.4);
    insert into sp_table values (2.7);
    insert into sp_table values (3.9);
    insert into sp_table values (4.1);
    insert into sp_table values (5.2);
    insert into sp_table values (6,6);


    create or replace procedure myproc1
    (
    STRX in varchar2, delarray in np_type)
    as
    execstr varchar2 (2000);
    CN cn_type.
    CXN cxn_type;
    XPos number: = 1;
    Start
    execstr: = ' insert into test values(';)
    because loop me in 1.3
    Select Delimiterlength in the sp_table (i) cn where Splitid = delarray (i);
    CXN (i):=substr(STRX,XPos,CN(i));
    execstr: = execstr | CXN (i) | ',';
    XPos: = (i) cn + xpos;
    end loop;
    execstr: = RTRIM (execstr, ','). ')';
    dbms_output.put_line (execstr);
    -execution immediate execstr;
    end;
    /

    SQL> declare
      2    v np_type:=np_type(4,4,4);
      3    begin
      4    --dbms_output.put_line(v(3));
      5    exec myproc1('111',v);
      6    end;
      7  /
      exec myproc1('111',v);
           *
    ERROR at line 5:
    ORA-06550: line 5, column 8:
    PLS-00103: Encountered the symbol "MYPROC1" when expecting one of the
    following:
    := . ( @ % ;
    The symbol ":=" was substituted for "MYPROC1" to continue.
    
    SQL>
    The procedure above will insert the numbered string supplied in the test table that splits the chain numbered inspires provided splitids of sp_table.

    In fact, I tried to help a member of the forum for his question, but I'm not get where I get the above error. Of course, there is little that miss me, but not that. This thread is running too in this forum.

    Please help me.

    Concerning
    Girish Sharma
    create or replace procedure myproc1
    (
    strx in varchar2, delarray in np_type)
    as
    execstr varchar2(2000);
    cn cn_type := cn_type(null, null, null);
    cxn cxn_type := cxn_type(null, null, null);
    xpos number:=1;
    begin
    execstr := 'insert into test values(';
    for i in 1..3 loop
    select Delimiterlength into cn(i) from sp_table where Splitid = delarray(i);
    cxn(i):=substr(strx,xpos,cn(i));
    execstr :=execstr || cxn(i) || ',';
    xpos :=cn(i) + xpos;
    end loop;
    execstr := RTRIM(execstr,',')|| ')';
    
    dbms_output.put_line(execstr);
    --execute immediate execstr;
    end;
    /
    

    and

    declare
        a1 number :=4; a2 number :=4; a3 number :=4;
        v np_type:=np_type(a1,a2,a3);
        begin
        for i in 1..3 loop
        dbms_output.put_line('v(' || i || ') = ' || v(i));
        end loop;
        myproc1('111',v);
        end;
    /
    

    Your varrays are null or empty in myproc1

  • Creation of object table references

    Hope that the title is clear enough, but what I want to do is create multiple tables to contain groups of clips (I use as buttons) that have similar functions, so that I can add event listeners using a loop statement, rather than a huge list to add and remove event listeners.

    I saw this method of work before, but I can't get my code works! It is probably a concept very noob, but I've been struggling with it for hours.

    OK, so in her extends video clip bit on my file I declare the array as such:

    public static var controlBtns:Array;

    Then in initialization function, I put the values in the table as such:

    controlBtns = new Array (submit_btn, zoomMinus, zoomPlus);

    In this same initialization function I yell to another custom function that adds to the elements of the array event listeners:

       for(var i = 0; i < controlBtns.length; i++)
       {
        trace(controlBtns[i].name);
        controlBtns[i].addEventListener(MouseEvent.ROLL_OVER, function(){controlBtns[i].nextFrame()});
        controlBtns[i].addEventListener(MouseEvent.ROLL_OUT, function(){controlBtns[i].prevFrame});
        controlBtns[i].mouseChildren = true;
        controlBtns[i].buttonMode = true;
       }
    


    The track seems out of all object names (as they appear in the library) and then I get this error:

    TypeError: Error #1010: a term is undefined and has no properties.

    That is kind of obvious that I can not access the movie clip instance names I put in place in the table.

    I have tried to put quotation marks around the names in the table, which makes them chains but then I can't access properties of strings - what is pretty obvious to.

    There is something really simple that I'm missing here?

    Thank you much in advance flash users...

    It would be much better way:

    // in the loop
    controlBtns[i].addEventListener(MouseEvent.ROLL_OVER, onRollOver);
    controlBtns[i].addEventListener(MouseEvent.ROLL_OUT, onRollOut);
    
    // later
    function onRollOver(e:MouseEvent):void {
         e.currentTarget.nextFrame();
    }
    
    function onRollOut(e:MouseEvent):void {
         e.currentTarget.prevFrame();
    }
    
  • Chained monitoring Agents

    We strive to provide a few metrcs based on S_NQ_JOB/S_NQ_INSTANCE tables, especially run times based on the staff report. For deivered reports through monotherapy, no prblm, tre are entered in the tables. But for chained agents only the first agent, run time is captured in the paintings.


    For Eg: Agent A is designed for operation at 10:05 and once completed, it triggers Agent B and it runs at 10:10. Everything works fine, the report is delivered etc... but we look in the S_NQ_JOB table, there is no reference to Agent B, in fact the start and end time for the Agent A to Agent B run times also includes.

    Any ideas what could be the problem, any suggestions Thx

    Nope, nothing whatsoever. SR is open on this question, but no indication as to if something will be done on this subject. A real hard pain.

  • Syntax error when you use FindIndex in TestStand functions

    Hi all

    I used this function well before that was functional for me, but don't know what I'm doing poorly able to do my work.

    This is my scenario,

    I have a local variable of the table 1 d of chain bear (Locals.XXX)

    I need to get the first value of the element

    I used the below syntax

    FindIndex(Locals.XXX,1,True)

    Advice me what I am doing wrong

    Thanks Charlie

    I will use another method to the same requirement

    Locals.MyArray [4] instead of find indexes

    Bravo for your support!

  • Look for the string of the numbered array element.

    This is my first post, so I'll probably miss one thing or another.  I will look nothing missed as soon as possible. I write code LV to test additional County stored in a CSV text file. Counties represent the stimulated current of a diode in a beam of radiation. The product is a QA device for a medical radiation treatment machine. The Integrator output proportional to the current diode accumulates as a whole into account in the text file. My LV code puts the numbers in the tables, calculates the incremental time derived and analyzed statistically. Numbers of the columns in the table data represent unique components. Default number of data column is sorted in a 1 d table has no column number. As if not column 10 represents CR39 of PCB 11. I need an algorithm how to connect a string such as CR39-PCB11 to the element of the array 1 d failure or relate to the string to the column in the data table that fails. Could you suggest a way to do this?

    If I understand you correctly, instead of these numbers that are in the Updates (odd) 'zero', you want to get premium channels. For the moment, the operator uses a lookup table, to find the chain (component) that corresponds to the column number.

    It's easy, because you only need an array of strings (corresponding to the column number 0 n) and use the array index with the index of the column. Place it in a loop for get all the clues of failures (the loop autoindexing for).

    Felix

  • change the channel (string and array)

    Hi I have a set of data with the type of data (.csv - somma separated) after being read with spreadsheet read (string game), it gives me:

    Waimea, 21.625, - 158.025, 0, 299

    Kahuku, 21.625, 157.9, 0, 566

    Kaena Oe W, 21.5,-158.275, 0, 130... blah, blah

    what I want to do, is to transform a string 1 d of the names at the beginning of this chain 1 d. Length varies found it is easier to find the length of the name is to search for the first occurrence of the decimal point, which gives the length of the name (+ 1) so I know how many characters I need to crop the starting off. And that's where IV ' e got stuck.

    Is there an easier way to do it? Ideally I need a "remove table" for an operation chain, is - this posible?

    Chears.

    John P.

    If you specify the correct delimiter (en) with the function of reading of spreadsheet, you would have a 2D array and you would simply use the Array Index function to get the column 0.

  • Tune onQuery tips

    Dear all,

    One of the suggestions how we can capture this query, huge Fulltable scan actually doing.

    Select Obj. DUPLICATE_FLAG DUPLICATE_FLAG,
    OBJ. YOUR_EEID YOUR_EEID, OBJ. POS_CODE POS_CODE,
    OBJ_L0. POS_TITLE PNAME_POS_TITLE, OBJ. YOUR_TITLE YOUR_TITLE,
    OBJ. YOUR_CODE YOUR_CODE, OBJ. UNIT_LOC UNIT_LOC, OBJ.BIZ_UNIT
    BIZ_UNIT, OBJ.ORG_SIZE, ORG_SIZE, OBJ. POS_CLASS POS_CLASS,
    OBJ. GENDER_CODE GENDER_CODE, OBJ. YOUR_GRADE YOUR_GRADE,
    OBJ. YOUR_LEVEL YOUR_LEVEL, OBJ. YOUR_OTHER YOUR_OTHER,
    OBJ. POS_FOCUS POS_FOCUS, OBJ. BIRTH_YEAR BIRTH_YEAR,
    OBJ. HIRE_YEAR HIRE_YEAR, OBJ. RELEV_EXP RELEV_EXP,
    OBJ. HIGH_QUAL HIGH_QUAL, OBJ. WORK_EXP WORK_EXP,
    OBJ. ROLE_CHANGE ROLE_CHANGE, OBJ. PP_CTRY PP_CTRY,
    OBJ. CONTR_TYPE CONTR_TYPE, OBJ. MTH_BASE MTH_BASE, OBJ. NUM_MTH
    NUM_MTH, OBJ. MEAL_ALW MEAL_ALW, OBJ. TRANS_ALW TRANS_ALW,
    OBJ. HOUSE_ALW HOUSE_ALW, OBJ. JOB_ALW JOB_ALW, OBJ. PHONE_ALW
    PHONE_ALW, OBJ. SKILL_ALW SKILL_ALW, OBJ. SHIFT8_ALW SHIFT8_ALW,
    OBJ. SHIFT12_ALW SHIFT12_ALW, OBJ. OTH_ALW OTH_ALW,
    OBJ. SITE_ALW SITE_ALW, OBJ. BON_ELIG BON_ELIG, OBJ. INCENT_ELIG
    INCENT_ELIG, OBJ. OTHELIG OTHELIG, OBJ. BON_TGT BON_TGT,
    OBJ. INCENT_TGT INCENT_TGT, OBJ. OTHBON_TGT OTHBON_TGT,
    OBJ. BON_ACT BON_ACT, OBJ. INCENT_ACT INCENT_ACT,
    OBJ. OTHBON_ACT OTHBON_ACT, OBJ. LTI_ELIG LTI_ELIG,
    OBJ. STK_EXCH STK_EXCH, OBJ. STK_TICKER STK_TICKER, OBJ. OBJECTID
    ObjectId, OBJ. MCPA_C_STAMP MCPA_C_STAMP
    of CNTRS_0715.POSDATA OBJ left join CNTRS_0715.PNAME OBJ_L0 on (OBJ. POS_CODE = OBJ_L0. POS_CODE)where
    (((OBJ. GRP_CODE | OBJ. CTRY_CODE | OBJ. CPY_CODE), OBJ. YOUR_EEID)
    in ()Select (OBJ. GRP_CODE
    || OBJ. CTRY_CODE | OBJ. SMI_CODE CPY_CODE), OBJ. YOUR_EEID YOUR_EEID
    of CNTRS_0715.POSDATA OBJ where (( ))

    OBJ. EXCLUDE_FLAG IS NULL)) Group of (OBJ. GRP_CODE | OBJ. CTRY_CODE | OBJ. CPY_CODE),
    OBJ. YOUR_EEID have COUNTY()1) >1))) AND (OBJ. SUBMISSIONID in (386480))) order by 2

    Dear all thanks for any suggestions!

    Sorry was busy on many things but you want to update this is below what I made and issues is resolved! And even now query

    TRUNCATE TABLE CHAINED_ROWS;

    ANALYZE TABLE cntrs_0715.posdata LIST CHAINED ROWS;

    Col owner_name format a10

    Col table_name format a20

    Col head_rowid format a20

    Select table_name, owner_name, chained_rows head_rowid;

    take backup of cntrs_0715.posdatatable

    ALTER trigger CNTRS_0715.SWM_SAW_POSDATA_RL disable;

    create the table cntrs_0715.posdata_CHAIN_ROWS in SELECT * FROM cntrs_0715.posdata WHERE ROWID IN (SELECT HEAD_ROWID FROM CHAINED_ROWS WHERE TABLE_NAME = "POSDATA");

    Table created.

    DELETE FROM cntrs_0715.posdata WHERE ROWID IN

    (BY SELECTING HEAD_ROWID IN CHAINED_ROWS

    WHERE TABLE_NAME = "POSDATA");

    INSERT INTO cntrs_0715.posdata SELECT * FROM ntrs_0715.posdata_CHAIN_ROWS;

    Truncate table chained_rows and drop the temporary table.

    TRUNCATE TABLE CHAINED_ROWS;

    ANALYZE TABLE cntrs_0715.posdata LIST CHAINED ROWS;

    Col owner_name format a10

    Col table_name format a20

    Col head_rowid format a20

    Select table_name, owner_name, chained_rows head_rowid;

    He should have 0 rows

    SQL > select OBJ. DUPLICATE_FLAG DUPLICATE_FLAG, OBJ. YOUR_EEID YOUR_EEID, OBJ. POS_CODE POS_CODE, OBJ_L0. POS_TITLE PNAME_POS_TITLE, OBJ. YOUR_TITLE YOUR_TITLE, OBJ. YOUR_CODE YOUR_CODE, OBJ. UNIT_LOC UNIT_LOC, OBJ.BIZ_UNIT BIZ_UNIT, OBJ.ORG_SIZE ORG_SIZE, OBJ. POS_CLASS POS_CLASS, OBJ. GENDER_CODE GENDER_CODE, OBJ. YOUR_GRADE YOUR_GRADE, OBJ. YOUR_LEVEL YOUR_LEVEL, OBJ. YOUR_OTHER YOUR_OTHER, OBJ. POS_FOCUS POS_FOCUS, OBJ. BIRTH_YEAR BIRTH_YEAR, OBJ. HIRE_YEAR HIRE_YEAR, OBJ. RELEV_EXP RELEV_EXP, OBJ. HIGH_QUAL HIGH_QUAL, OBJ. WORK_EXP WORK_EXP, OBJ. ROLE_CHANGE ROLE_CHANGE, OBJ. PP_CTRY PP_CTRY, OBJ. CONTR_TYPE CONTR_TYPE, OBJ. MTH_BASE MTH_BASE, OBJ. NUM_MTH NUM_MTH, OBJ. MEAL_ALW MEAL_ALW, OBJ. TRANS_ALW TRANS_ALW, OBJ. HOUSE_ALW HOUSE_ALW, OBJ. JOB_ALW JOB_ALW, OBJ. PHONE_ALW PHONE_ALW, OBJ. SKILL_ALW SKILL_ALW, OBJ. SHIFT8_ALW SHIFT8_ALW, OBJ. SHIFT12_ALW SHIFT12_ALW, OBJ. OTH_ALW OTH_ALW, OBJ. SITE_ALW SITE_ALW, OBJ. BON_ELIG BON_ELIG, OBJ. INCENT_ELIG INCENT_ELIG, OBJ. OTHELIG OTHELIG, OBJ. BON_TGT BON_TGT, OBJ. INCENT_TGT INCENT_TGT, OBJ. OTHBON_TGT OTHBON_TGT, OBJ. BON_ACT BON_ACT, OBJ. INCENT_ACT INCENT_ACT, OBJ. OTHBON_ACT OTHBON_ACT, OBJ. LTI_ELIG LTI_ELIG, OBJ. STK_EXCH STK_EXCH, OBJ. STK_TICKER STK_TICKER, OBJ. OBJECTID OBJ, ObjectId. MCPA_C_STAMP MCPA_C_STAMP left join of OBJ CNTRS_0715.POSDATA CNTRS_0715.PNAME OBJ_L0 on (OBJ. POS_CODE = OBJ_L0. POS_CODE) where (((OBJ. GRP_CODE | OBJ. CTRY_CODE | OBJ. CPY_CODE), OBJ. YOUR_EEID) in (select (OBJ. GRP_CODE | OBJ. CTRY_CODE | OBJ. SMI_CODE CPY_CODE), OBJ. YOUR_EEID CNTRS_0715.POSDATA OBJ YOUR_EEID where ((OBJ. Group EXCLUDE_FLAG IS NULL)) by (OBJ. GRP_CODE | OBJ. CTRY_CODE | OBJ. CPY_CODE), OBJ. YOUR_EEID having COUNT (1) > 1))) AND (OBJ. Order SUBMISSIONID in (386480))) 2.

    no selected line

    Elapsed time: 00:00:11.43

  • Extract under strings in a string with delimiters

    I have a column that stores codes of different products in a series and is delimited by an slash (\). The length of the column is a VARCHAR2 (100). These are the products, the customer has purchased and have been stored in a table.
    Still, the chain ends with the slash and is also used to separate products.

    I would like to highlight only those customers who have purchased products that are internal. Thus, according to the data below, I want to pick up only customers 1001 and 1003 even if one of the product Codes is internal

    Oracle 9i Version. I won't be able to use it to build WITH.

    Scripts and Insert of statements:
    CREATE TABLE CUSTOMER(
    "CUSTOMER_ID" VARCHAR2(4 BYTE), 
    "LAST_NAME" VARCHAR2(20 BYTE), 
    "FIRST_NAME" VARCHAR2(20 BYTE));
    
    Insert into CUSTOMER (CUSTOMER_ID,LAST_NAME,FIRST_NAME) values ('1001','Taylor','David');
    Insert into CUSTOMER (CUSTOMER_ID,LAST_NAME,FIRST_NAME) values ('1002','Brown','Cynthia');
    Insert into CUSTOMER (CUSTOMER_ID,LAST_NAME,FIRST_NAME) values ('1003','Green','Robert');
    Insert into CUSTOMER (CUSTOMER_ID,LAST_NAME,FIRST_NAME) values ('1004','McManus','Donna');
    
    CREATE TABLE PRODUCT (
    "PRODUCT_ID" VARCHAR2(10 BYTE), 
    "PRODUCT_NAME" VARCHAR2(30 BYTE), 
    "INTERNAL_FLAG" VARCHAR2(1 BYTE));
    
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR01','Product 01','Y');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR02','Product 02','Y');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR03','Product 03','N');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR04','Product 04','N');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR05','Product 05','N');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR06','Product 06','N');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR07','Product 07','Y');
    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('PR08','Product 08','N');
    
    CREATE TABLE CUSTOMER_PRODUCT_SUMMARY(
    "CUSTOMER_ID" VARCHAR2(4 BYTE), 
    "PRODUCT_STRING" VARCHAR2(100 BYTE));
    
    Insert into CUSTOMER_PRODUCT_SUMMARY (CUSTOMER_ID,PRODUCT_STRING) values ('1001','PR01\PR02\PR03\');
    Insert into CUSTOMER_PRODUCT_SUMMARY (CUSTOMER_ID,PRODUCT_STRING) values ('1002','PR04\PR05\');
    Insert into CUSTOMER_PRODUCT_SUMMARY (CUSTOMER_ID,PRODUCT_STRING) values ('1003','PR06\PR07\');
    Insert into CUSTOMER_PRODUCT_SUMMARY (CUSTOMER_ID,PRODUCT_STRING) values ('1004','PR08\');
    Thank you!

    GVR wrote:
    A way

    select distinct c.customer_id from CUSTOMER c,PRODUCT p, CUSTOMER_PRODUCT_SUMMARY s
    where c.customer_id=s.customer_id
    and  s.product_string like '%'||p.PRODUCT_ID||'\%'
    and INTERNAL_FLAG='Y';
    

    By chance, it happens to work with the given sample data, but you must watch out for the problem of the 'mother's in chemotherapy
    Say that add us to the sample data:

    Insert into PRODUCT (PRODUCT_ID,PRODUCT_NAME,INTERNAL_FLAG) values ('R04','NOT Product 04','Y');
    

    The query above has now customer_id = "1002", because his product_sting 'PRO4\PR05', which happens to include "R04\", even if that customer never bought this product.
    You need ' \'s at the beginning of the strings, just as you need it at the end of the strings:

    select distinct c.customer_id from CUSTOMER c,PRODUCT p, CUSTOMER_PRODUCT_SUMMARY s
    where c.customer_id=s.customer_id
    and  '\' || s.product_string like '%\'||p.PRODUCT_ID||'\%'     -- *****  CHANGED  *****
    and INTERNAL_FLAG='Y';
    
  • cf_twoselectsrelated

    Hi, I use the tag CF_TwoSelectsRelated that works very well. But my second field is a date field, and the output in the select option looks like this"2007-10-27 00:00:00.0'. I try to format it to look like '27/10/2007. I tried all instances of #DateFormat(date, "mm/dd/yyyy") # in the name2 fields, the field Display2 and the Value2. I also went into the 2 selects and tried them in the section of attributes.name and other places. I tried to change the format in my application just for fun and giggles. Then I tried to make a table that has shaped the date correctly but the CF_TwoSelectsRelated tag doesn't seem to work with a table. Any thoughts? I will attach my request and the tag SEE if that's any help. Thank you, Wendy

    No, I wouldn't change the database format. It should be kept as a datetime column. What I wanted, it was using a db function in your query to format the results.

    IIRC sybase has a similar to ms sql convert() function. It takes 3 parameters: column name, data type and date style. 101 style represents US date mm/dd/yyyy format. I don't remember if the year is 2 or 4-digit.

    In ms sql you can use it like this

    SELECT convert (varchar, yourDatetimeColumn, 101) AS yourDatetimeColumn
    FROM YourTable

Maybe you are looking for