Can I use suquery in Values calues

Can i use Subquery in Values caluse.
INsert into copy_emp
values (select * from emp);

Use following instead:
insert into copy_emp select * from emp;

Similar Messages

  • How can I use "Make Current Values Default" Programmatically?

    When I use this method in a Invoke node, I get the error code 1000, then i can't use it in run mode?
    How can I modify the default values in a Built aplicattion, and save for the next time I load it?

    Hi,
    I've attached a small demo to show setting up the front panel control. The VI Change Control Value.vi is the one you run. Demo.vi has one control on the front panel whose value is setup by Change Control Value.vi. Just unzip the file, keeping the two VI's in the same folder. You don't need to open the Demo.vi.
    I've used this mechanism onlong with a config file when creating a Virtual Instrument Driver.
    Regards
    Ray.
    Regards
    Ray Farmer
    Attachments:
    demo.zip ‏23 KB

  • Can I use a cell value to reference a table on another sheet?

    I'm not sure if this is possible and I have had no luck with searches, here is what I am attempting to do...
    On my first sheet I have a number of tables, each holding information on a service. Each table is named to match the service name.
    On another sheet I have a list of clients that use these services, with the service name (to match the table name on the first sheet) in a cell in the client's row.
    I would like to pull data from one of the cells on the Service table to include it in a concatenate formula in the clients row.
    I was hoping to be able to use the value of the cell with the service name in it as part of the formula to reference the service sheet...
    For example:
    ="something"&Services::B2::C6&"something"
    Is this possible, or is there a way I can work around the auto corrections that numbers keeps applying?
    Cheers

    you can construct the text of a cell reference as a string by concatenating information then use the function indirect() to turn the string into a reference.
    so you would do something like:
    =indirect("something"&Services::B2::C6&"something")
    this is assuming that "something"&Services::B2::C6&"something"  results in a string that would be a valid reference.

  • How can I use the output value from SIMPLE PID to write something to the serial port?

    I am working on my Senior Design Project that requires the use of incoming compressed air, propotional valves, continuous servo motors, and a serial servo motor microcontroller.  I have figured out how to send byte sequences to the microcontroller through LabVIEW using the VISA serial write function.  The motors are attached to the valves to control the flow rate.  I have created my own simple feedback system using a bunch of case structures but I realized that I am basically trying to recreate the wheel (I basically was writing my own PID VI).   I have an older version of LabVIEW (7.0 Express) and theres no way to upgrade or buy the PID toolkit, so I am stuck using the Simple PID VI.  Also, the only way the motor works is sending an array of bytes to tell it to turn on/off, direction, and speed.  Is there any way I can use the Simple PID VI in conjunction with the VISA SERIAL write function, or is there any other way I can communicate with the serial port using this pid vi?  Any information would be appreciated.

    Hi gpatel,
    you know how to communicate to serial port, but you don't know how to send a value from SimplePID to serial port???
    You know how to communicate, but then you don't know how to communicate???
    You should explain this in more detail...
    Edit:
    From you first post you know what values your motor driver is expecting. You know which values the PID.vi is providing. Now all you need is a formula to reshape the values from PID to the motor. It's up to you to make such a formula. Unless you provide any details we cannot give more precise answers...
    Message Edited by GerdW on 02-28-2010 08:35 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • LOV usage -- Can LOV used as key-value pair?

    Post Author: phoenix
    CA Forum: WebIntelligence Reporting
    Hello,
    I am using BO XI R2 and I come to an issue with LOV. Can LOV be used as a key-value list?
    Say I have a key-value list as below:
    A --> 1
    B --> 2
    Can LOV just list 'A, B.. ' and return 1 if user choose A and 2 if user choose B?
    Many thanks.
    phoenix

    It is possible only if you know all possible KEY values:
    with t as (
               select 1 id,'STATUS' key,'TRUE' val from dual union all
               select 1,'AGE GROUP','10' from dual union all
               select 1,'TRAVEL','Y' from dual union all
               select 2,'STATUS','FALSE' from dual union all
               select 2,'AGE GROUP','20' from dual union all
               select 2,'TRAVEL','N' from dual
    select  id,
            max(case key when 'STATUS' then val end) status,
            max(case key when 'AGE' then val end) age,
            max(case key when 'AGE GROUP' then val end) "AGE GROUP",
            max(case key when 'TRAVEL' then val end) travel
      from  t
      group by id
            ID STATUS AGE   AGE GROUP TRAVEL
             1 TRUE         10        Y
             2 FALSE        20        N
    SQL> If you are on 11g, you can use PIVOT construct, but again you need to know resulting columns upfront.
    Another thing you could do is to return a CSV list of key all values in one column using STRAGG (or LISTAGG if you are on 11.2), hierarchical queries, XML or undocumented WM_CONCAT.
    SY.

  • Formatted search can we use current records values ?

    Hi.. to all,
    I have a need to get tax amount from current document at the time of entry before updating the entry by using Formatted search through saved query.
    Can any body help me to resolve it ?
    Regards..
    Chintesh Soni

    Hi,
    You can get the value at entry time (for example on an invoice) by creating a search define query such as:
    [code]SELECT $[OINV.VatSum][/code]
    Then add the search define to a UDF that gets 'Auto Refresh When Field Changes', and select an option like 'Document Total' and 'Display Saved Values'. This way the search define query will refresh the tax value in the UDF when ever the total value changes i.e qty, unit cost, discounts get altered...
    You'll need to alter the query to match different marketing documents and set the search defines on each one.
    Hope this is of help
    Kind Regards
    Matthew

  • Can we use the metadata value of an asset without prefix

    I am using the DAM asset  (com.day.cq.dam.api.Asset;)  and reading the metadata values using the keys
       e.,g. asset.getMetadataValue("dc:format");
    Is there a way I can add a value to the metadata something like ("dummyType") or (":dummyType").
    There are already some key values in metadata e.g.  asset.getMetadataValue("Type");
    But for "Type" an empty string is returned, does any one have suggestions or a workaround for this ?
    Thanks

    Gul wrote:
    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?Try
    DECLARE err_txt VARCHAR2(200) t;
    al_id ALERT;
    al_button Number;
    BEGIN
    al_id := FIND_ALERT('My_Error_Alert');
    SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
    al_button := SHOW_ALERT( al_id );
    END; Hope it works..
    Hamid

  • How can I use an iteration value from a "while" (or "for") loop as part of a filename?

    I am using the "Write To Measurement File" function  inside a while structure and would like to incorporate the iterative value from the while-loop as part of the file name. I'm not sure how to do it. Any suggestions?

    Like this:
    Edit: Oops. Sorry for the double answer.
    Message Edited by smercurio_fc on 05-22-2007 04:25 PM
    Attachments:
    Example_BD.png ‏3 KB

  • Can i use the default value in TNSNAMES.ora file

    Hai , i connect the Vb to oralcle using Oracle data access component , and i have read the documentation for ora file.
    Most documentation show to connect oracle with vb.net , the ora file must be modified.
    My questions is , can i directly connect to Oracle without modify the ora file ?
    Thank You

    Thank you for the reply. I will read the documentation first.
    I install the oracle 10g express edition . Hence , i have two user , the sys an the other is hd.
    How the TNSNAMES.ora known i want connect to which username ?
    Thank you

  • Can't use maximum color values in CMYK document - what's wrong?

    I can't set any colors in my document to maximum (i.e. value of 100) saturation or brightness. Is this a CMYK thing I've never noticed before?
    If I do physically just move the sliders up to 100, then the color of my selected object doesn't change. When I exit the color window and re-enter it, the values have changed themselves to something in the 65-85 range.
    Tried a new document and tried clearing Pshop preferences with no change. Everything works fine in an RGB doc.
    I'd love some help! Thanks!

    CMYK can only show saturated cyans, magentas, and yellows.
    It can't reproduce saturated reds, greens, or blues.
    HSB values are relative to RGB.
    LAB values would similarly clip in CMYK because they can be well outside the CMYK gamut.
    Yes, I suspect you just missed that previously.

  • Using unbounded item value for rendering expression in a region

    Hi there,
    I use jheadstart 11g tp2.
    I have a question about a group in application definition module which all of the items are unbounded.
    For 3 of them I use text input lov which related to lov that is bounded to a view.
    I use the return value of the lov for filling unbounded items and I want to use that filled unbounded item for rendering expression of a region.
    my problem is after using lov I can't use the binding value of the unbound item (which filled by returning value from lov) for another part of the the group
    I have a region that should be visible and invisible based on that item
    Please let me know is there anyway for doing this or not?
    Thanks for your help
    Setareh Rajaei

    the unbound item has a variable binding in the page def, so you can refer to the value of the unbound item using the expression
    #{bindings.[groupName][itemName].inputValue}
    Steven Davelaar,
    Jheadstart Team.

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • Can I use multiple values for a rollup key on the same Endeca record?

    We have a business need to to aggregate our records using different criteria, based on user navigation. We are thinking of using a rollup key with multiple values to help with the aggregation, but we are running into some issues.
    Here is a made-up xample of what we want to do: assume we have a group of products and these products can be organized into groups using parent-child relationships. We would like to create an aggregate record for each parent, and we want the aggregate record for each parent to include all the children for the parent. To achieve this, we use a field called "parent_rec_spec" that holds the parent record spec and we set the same value on the field for the parent and its children. When we do rollup using the parent_rec_spec as the rollup key, we are able to see one aggregate record for each parent (with its children).
    The previous setup worked perfectly for us so far. But now we are getting a business requirement that allows children nodes to be linked to multiple parents at the same time. We were hoping of using another dimension to limit the records based on user roles/characteristics , so that only applicable parents/children are displayed (for example, we can use "market" as an additional filtering property, and we decide to show all parents/children for "North America", while hiding the parents/children for other markets).
    This caused an odd behavior when children are linked to multiple parents. For example, assume that SKUs A and B were linked to parents in "North America" and "Europe" at the same time, and assume that the user chose the "North America" market. The navigation state would eliminate the parents/children that are no in North America, and will also cause the parents/children that are labeled for North America to show up and be aggregated correctly. This however will lead to the creation of additional aggregate records for the A and B using the parent_rec_spec values that would have linked them to the Europe parents (even though the parents are hidden away).
    Here is an example index file that we used to load the test data:
    Update||1
    Market||North America
    Record Type||Product
    Name||Parent 1
    rec_spec||P1
    parent_rec_spec||P1
    EOR
    Update||1
    Market||Europe
    Record Type||Product
    Name||Parent 2
    rec_spec||P2
    parent_rec_spec||P2
    EOR
    Update||1
    Market||North America
    Record Type||Product
    Name||Child A
    rec_spec||A
    parent_rec_spec||P1
    EOR
    Update||1
    Market||North America
    Market||Europe
    Record Type||Product
    Name||Child B
    rec_spec||B
    parent_rec_spec||P1
    parent_rec_spec||P2
    EOR
    Update||1
    Market||North America
    Market||Europe
    Record Type||Product
    Name||Child C
    rec_spec||C
    parent_rec_spec||P1
    parent_rec_spec||P2
    EOR
    Update||1
    Market||Europe
    Record Type||Product
    Name||Child D
    rec_spec||D
    parent_rec_spec||P2
    EOR
    In this setup, we have parent P1 marked for North America with children A, B and C, and parent P2 marked for Europe with B, C and D as children. When we use North America as a filter in the navigation state, and parent_rec_spec as the rollup key, then we will see an aggregate record for P1, A, B and C. But we will also see an aggregate record for B and C by itself (presumably because of the other parent_rec_spec value on these records).
    The actual data that we are testing with is more complicated, but the end result is similar. We also noticed that the additional aggregate records would not be created always, depending on the ordering of the records.
    The question that I need help with is this: is there a way to fine tune the rollup logic so that it can only include certain records (in the example above, we can change the rec_spec from PA and PB to PA_North_America and PB_Europe and then we would be interested in rolling up using values that end with NorthAmerica).
    By the way, we considered using separate rollup keys for each context (like parent_rec_spec_north_america and parent_rec_spec_europe), but the number of contexts is dynamic, and might grow large. So it is not easy for us to create the additional properties on the fly, and we are concerned about the possible large number of dimensions.

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=2&threadid=1157850

  • Can I use the value range as F4 ValueHelp in WebUI?

    Hi,
    I have a Z-field in CustomerH. Its datatype has a domain with a fixed value range attached.
    I show this field in the header of a sales order but the value help does not show up automatically.
    My question is: Can I use this value range as input for the value help or do I have to code a "real" value help and attach it via the V-Getter?
    Thanks.

    Hi,
    /people/tim.back/blog/2009/02/09/learn-how-to-create-drop-down-listboxes-in-crm-70s-web-client-ui
    to fetch data, you can use table mentioned above. Pass domain name and language to get all values maintained in domain.
    Regards,
    BJ

  • How can I use a Value at several different places without using a long wire?

    too much wire alway make program into mess.So can I use the Value in labview like using it in C.
    I have try the "Local Value",but it don't work well as a Cluster. For example, I can't connect it with "Unbundle By Name" and other Cluster Tools.

    Overuse of local variables is probably worse than the "mess" created by long wires. It increases memory usage, violates data flow, and increases probability of race conditions. A better solution to long wires is to make the diagram smaller by using subVIs. There's been a lot of discussion here and in the various LabVIEW style guides about avoiding local and global variables. I use them seldom and only then when I doing some complicated user interface.

Maybe you are looking for

  • Rounding Up Difference between Billing and FICA

    Hi All,  We currently have an issue with Billing and FICA in that the way figures are rounded up are different such that there's always a difference of u20AC0.01 between individual line items . However this does not happen for all cases. Does anyone

  • No sound on movies

    Ok so I had Batman Begins in an AVI Format. When I first loaded it (got my MBP yesterday), QuickTime would play but no video no sound. Then I downloaded DivX and xVid plugins. Then, now I get video. But still no audio. What codec am I missing?

  • OS X Mountain Lion will not download

    I'm trying to download OS X Mountian Lion update and it will not download on my Mac Book Pro. I've purchased it and it says it's "downloading" although in about and hour the download progress bar has not moved. I've tried restarting the computer, pau

  • Color settings on a Mac

    I have pse 3.0 on my old eMac and I don't know why, but I keep getting the message "Could not synchronize color settings because color settngs could not be found" and I can't run the program. Any ideas?

  • Installing cs6 on lap top

    CAN I INSTALL CS6 ON MY LAP TOP AND I NOW RUN IT ON MY DESK COMPUTER???