Question about NOW function

Hi,
I'm trying to use the following PL/SQL statement:
select now from dual;
It should return the date/time, and it won't work. It works in another instance of HTMLDB that I have installed pointing to a different database instance, running the same version of Oracle (10.1.0.2.0). Does anybody know what could be happening? Does this function still exist?
Thanks,
Nora

I just wanted to add:
If I run SQLPLUS from a command prompt, in one database instance, NOW is defined, and in the other instance, it is not:
INSTANCE 1:
SQL> select now from dual;
NOW
09-NOV-05
SQL> describe now;
FUNCTION now RETURNS DATE
INSTANCE 2:
SQL> select now from dual;
select now from dual
ERROR at line 1:
ORA-00904: "NOW": invalid identifier
SQL> describe now;
ERROR:
ORA-04043: object now does not exist

Similar Messages

  • Question about the function module (RFC_READ_TABLE)

    Dear everyone
    Could I ask you a question about the function module (RFC_READ_TABLE)?
    I was asked if it's possible to create a report which compares the data between different SAP systems (both production systems).
    Now, the easiest way would be to use the function module (RFC_READ_TABLE) within a SAP infoset query (SQ01 type query).
    But I heard the rumor that using the function module (RFC_READ_TABLE) is not advisable due to the security reason.
    However, I am not exactly sure what sort of security problems this function module can possibly have...
    Would you help me on this?
    I also would like to know if using "remote enabled module" type function module can always overcome this possible security issue.
    Or, are there any points that I need to be careful about even when I use "remote enabled module" function module?
    Thank you very much in advance.
    Takashi

    Dear Fred-san
    Thank you very much for your support on this.
    But, may I double check about what you mentioned above?
    So, what you were mentioning was that if some user executes the query with
    the function module (RFC_READ_TABLE), under the following conditions, he can access to
    the HR data even when he does not have the authorizations for HR transactions?
    <Conditions>
    1. the user has the authorization for HR database tables themselves
    2. RFC_READ_TABLE is called to retrieve the data from HR database
    <example>
    Data: LF_HR_TABLE like  DD02L-TABNAME value 'PA0000'.
    CALL FUNCTION 'RFC_READ_TABLE'
       EXPORTING
        query_table                = LF_HR_TABLE
      TABLES
       OPTIONS                    =
       fields                     =
       data                       =    .
    But then, as long as we call this function module for a non-critical tables such as
    VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
    so security risk to use RFC_READ_TABLE...
    Besides, each query (infoset query) has got the concept of user groups, which limits
    the access to the queries within the user group.
    ※If someone does not belong to the user group, he cannot execute the queries within that
       user group, etc
    So, my feeling is that even infoset queries does have authorization concept...
    Would you give me your thought on this?
    I also thank you for your information for SCU0.
    That is an interesting transaction
    Kind regards,
    Takashi

  • Question about Percent Function

    This kinda goes along with my question about the plus sign. That was answered by the fact it means there is more than can be displayed in the field with the plus sign. The problem I am having is all of the fields with the plus sign are formated to be PERCENT. These fields are filled in via the C# program. The values are calculated in the C# program and outputed to the PDF form in the form of 00.00 - 100.00. Thus if I am filling in these fields with values that are within a PERCENT range, then why are they showing a plus sign. I have even go as far as to wipe the field clean, re-do the Text box, re-format as PERCENT, with the text centered, and the No Calculation radio button set true. The only other thing I do these fields is set the FONT to 10 point or otherwise the huge in size.

    Thank you all for the help on this. What I found is:
    it is correct that the incoming value to a fillable field for a PERCENT must be between 0 and 1 BUT this is NOT the complete answer.
    If I filled the field with 33.33 then it will display  33.33 + which says the display is too big.
    If I filled the field with .3333 thin it will display .3333 without the PLUS sign, but is still not correct because the FORMAT is set to PERCENT.
    What I had to do is add the following JAVA script.
    // Custom Calculate script for text field
    (function () {
        // Get the field values
        var v1 = getField("NO_FEAR_ASSOC_WITH_TARGETED_DISABILITY_PERCENT_1").value;
        // Set this field value
        event.value = v1;
    Now if the input is .3333 the display is now 33.33% which is correct. Sense the JAVA Script is basicly a NOP, this tells me that the PERCENT format requires some kind of trigger. Sense a FILL is NOT a trigger, the display comes out incorrect.

  • Question about 2 functions.

    OK, new question from me.
    I have two functions, bassicly they are smilar, but the problem is that I need that second function to start up or become active, after certain amount of time or when "x" reaches 1000. How can I do this?
    And second question is, both functions make objects apper on stage in exact coordinates (5 spots), how can I make that objects woun't apper on the same spot, bassicly it would check if that position is occupied, it chooses other spot. (spot choosing is performed by random)
    Oh, and third question.
    I want to make the object to be active for two seconds, and then it disapper, my thought was to make tween, but couldn't find the type of appearance.

    1. You can check the condition to determine if you should do something, i.e.
    if (x >= 1000) {
        // do something
    2. First randomise an Array [Spot 1, Spot 2, Spot 3, Spot 4, Spot 5], then place your object to the spot in the order of the array item.
    3. My favorite way is to use TweenLite.delayedCall(). For example if you want to remove something in 2 seconds time you do:
    TweenLite.delayedCall(2, remove, [anObject]);
    function remove(displayObject:DisplayObject):DisplayObject {
        return removeChild(displayObject);
    (You can use Timer class etc for this but TweenLite wins always )

  • Another beginner question about targeting functions

    I've read what I thought was an excellent thread about scope in EA, but I'm still not getting some of the basics (btw the thread was http://forums.adobe.com/message/5287753#5287753).
    I have "slides" in the symbol library and in the main composition compositionReady script I've set up a generic script for playing back sound. That script works fine when I bind it within the compositionReady script to a symbol and click, so I know the funciton itself is fine. My question, I'm programmatically loading the slides from the library as I go along and want to use the generic function I created in the compositionReady script, but I can't seem to create the proper syntax to call the script. Here's some that I have tried. What is the correct syntax? The script is on frame inside the slide symbol.
    //sym.getComposition().getStage().playSound();
    //sym.getComposition().playSound();
    //Edge.getComposition("CER_1").playSound();

    Thanks for having a look. Yea, it's getting to the script fine but it doesn't like the syntax. Console always indicates javascript error, which is what happens when Edge throws an exception because it doesn't know what to do. The article that Elaine posted on above gives me the sense that it might be best to change the function to a variable, then it would be in scope to call but I have parameters I'd like to pass with it and I don't think  I can pass a parameter with to a variabalized (word?) function. I know it's just me moving from ActionScript to Edge JavaScript and scope. Whereas I could always find a homebase in ActionScript with the stage, it seems that the stage in Edge is just another symbol and calling a function within the stage is never getting there. Elaine hints at putting outside the stage closure and it would be accessible, which, of course, has led me to start readying JavaScript books and learning more about scope etc. It seems like that is life as a developer. I  dont' get that, oh, better take a day or two to  understand that concept, oh, that function works now, next problem. ;-)

  • Question about sdo_relate function

    My application has to check if a point geometry is inside (MASK='ANYINTERACT') a polygon geometry. I am trying to figure out if sdo_relate function works with rectangle only or if it works with polygon. I have wrote a few sql test and it seems to work with polygons, but I dont know how it works.
    My question is, if the geometry is not a rectangle, why dont I have to use projection to project both geometry into a plane first?
    For example if I have a polygon (-140, 35, -139, 36, -139, 35, -140, 34, -140, 35) and a point(-139.3, 35.6) how does sdo_relate finds out if the point is within the polygon without projecting them?
    Thanks.

    how does oracle connects the points in a polygon that's not on the same latitude or longitude?Your question is a little ambiguous. What do you mean by 'not on the same latitude..'? Are you talking about different coordinate systems? Or do you just mean how does Oracle know whether your point is inside the polygon or not?
    If its the former then read:
    http://download-uk.oracle.com/docs/html/B14255_01/sdo_cs_concepts.htm#i882173
    If the latter, then suffice to say that Oracle Spatial knows how to work these things out in order to return the correct result.
    Have a read of the spatial concepts documentation:
    http://download-uk.oracle.com/docs/html/B14255_01/sdo_intro.htm

  • Considering Purchase of Wacom Cintiq 27 HD Touch - Questions about Touch Functionality in Lightroom 5 & Photoshop CS6

    I am considering purchase of a Wacom Cintiq 27 HD Touch monitor. I have a few questions relative to two Adobe programs and their use of "touch" functionality - Lightroom 5.7 and Photoshop CS6 running on Windows 7.
    1. Have the problems related to touch functionality in Photoshop CS6 and Lightroom 5 been resolved that you see on this and Wacom's forums from a year ago?
    2. If so, is there enough value gained via touch functionality in Lightroom 5 and Photoshop CS6 to warrant the $500 difference in price between the Cintiq 27 HD vs HD Touch? (I realize that this is a subjective question based on the abundance of one's cash.)
    3. I plan to stay with CS6 as long as humanly possible to avoid a monthly software subscription, BUT I do wonder if purchasing the HD Touch now may provide additional touch functionality in future versions of these software products that are not currently available. (So this is a pie in the sky sort of question.)
    Thanks,
    Kent

    Photoshop Touch support is added in CC 2014.2.2.  However Wacom tablets like the Intuos Pro with touch can be use with prior versions of Photoshop and the Wacom Tablets Configurator can customized the tablets touch features to be used with Photoshop.  I do not use LR but I'm sure the same would be true for it. You can configure setting for many applications. The device driver knows which application its interfacing with and uses the setting set for each..
    I disable most of touch when using Photoshop.  The Main reason I have a tablet is Photoshop Brush type tools. Like eraser, clone stamp, etc nothing is better then a pen when it come to creating layer mask.  For most programs I still use a mouse and I use the Keyboard, Mouse and Pen with Photoshop....
    I never wanted a Cintig I like not having my hand  between my eyes and work. I not an artist though.

  • Few questions about sql2008 functions and commands

    hello,
    I am learning sql2008 implementation and maintenance,I am just 2 weeks bussy.there is some questions in my mind wich I can't answer it.
    1-when I can use  USE MASTER statement
    2-can a database for example (test) have many and unlimmited file groups?
    3-what is the diferrence between file and filegroup! is the term of file means  tables in filegroup?
    4-with boundary points does mean the data type when creating partition function!
    5`what is diferrence between full text index and index,where you have to use the index and wher you have to use full text index?
    6-each filegroup must have one partition or one partition can have many filegroups in partition scheme!
    7-do you have to partition every scheme or not! where do you have to partition a scheme and where not?
    8-can you give a little example with switch operator!
    9-again do you have to partition every table and index in the real world or not!
    thanks
    johan
    h.david

    Hi,
    Let me try to answer your questions:
    You need to use USE MASTER whenever you need to do some work in the MASTER database and the database context is not that.
    Yes, a database can have many filegroups. Please check this article:
    http://msdn.microsoft.com/en-us/library/ms179316.aspx
    Please check this article:
    http://msdn.microsoft.com/en-us/library/ms179316.aspx
    As per BOL:
    boundary_value is a constant expression that can reference variables. This includes user-defined type variables, or functions and user-defined functions. It cannot reference Transact-SQL expressions.
    boundary_value must either match or be implicitly convertible to the data type supplied in
    input_parameter_type, and cannot be truncated during implicit conversion in a way that the size and scale of the value does not match that of its corresponding
    input_parameter_type. For more details check
    http://msdn.microsoft.com/en-us/library/ms187802.aspx
    For simplicity: Full-Text index is used to search in a LOB/text data in a column, index is used to speed up your queries. Please check these articles:
    http://msdn.microsoft.com/en-us/library/ms142571.aspx,
    http://msdn.microsoft.com/en-us/library/ms189271.aspx
    As per BOL: When you create a partition scheme, you define the filegroups where the table partitions are mapped, based on the parameters of the partition function. You must specify enough filegroups to hold the number of partitions. You can specify that
    all partitions map to a different filegroup, that some partitions map to a single filegroup, or that all partitions map to a single filegroup. You can also specify additional, "unassigned" filegroups in the event you want to add more partitions later. For
    more info, please check
    http://msdn.microsoft.com/en-us/library/ms188730.aspx
    8. Please read the concept of partitioning here:
    http://msdn.microsoft.com/en-us/library/ms190199.aspx and for SWITCH operator, please check the sliding window example at here:
    http://msdn.microsoft.com/en-us/library/aa964122(SQL.90).aspx
    9. It depends :) but you always will have at least 1 partition!
    I hope it helps.
    J.
    There are 10 type of people. Those who understand binary and those who do not.

  • DML question about LAG function

    Hello,
    I am trying to get a month-to-date number on a value that is stored as YTD in the cube. That is, for today's month-to-date number, I want to subtract today's value, from last month's value. I am trying to do this with the following statement:
    data - lag(chgdims(data limit lmt(time to parents using time_parentrel)),1,time)
    I'm pretty new to DML, but I know that this is clearly not the correct formula. Does anyone have any ideas on how to do this?
    Thanks

    Dear Fred-san
    Thank you very much for your support on this.
    But, may I double check about what you mentioned above?
    So, what you were mentioning was that if some user executes the query with
    the function module (RFC_READ_TABLE), under the following conditions, he can access to
    the HR data even when he does not have the authorizations for HR transactions?
    <Conditions>
    1. the user has the authorization for HR database tables themselves
    2. RFC_READ_TABLE is called to retrieve the data from HR database
    <example>
    Data: LF_HR_TABLE like  DD02L-TABNAME value 'PA0000'.
    CALL FUNCTION 'RFC_READ_TABLE'
       EXPORTING
        query_table                = LF_HR_TABLE
      TABLES
       OPTIONS                    =
       fields                     =
       data                       =    .
    But then, as long as we call this function module for a non-critical tables such as
    VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
    so security risk to use RFC_READ_TABLE...
    Besides, each query (infoset query) has got the concept of user groups, which limits
    the access to the queries within the user group.
    ※If someone does not belong to the user group, he cannot execute the queries within that
       user group, etc
    So, my feeling is that even infoset queries does have authorization concept...
    Would you give me your thought on this?
    I also thank you for your information for SCU0.
    That is an interesting transaction
    Kind regards,
    Takashi

  • Question about Export functions

    hi,
    i'm considering getting into STP but would like to know about its export functions especially when it comes to interchange projects with other DAWs in particular Pro Tools.
    What exactly are the import / export options?
    ie: OMF, AAF, AES31, etc...
    ideally i would want to do sound editing (for film work) in STP, then transfer the edit session to Pro Tools for the mix stage.
    thanks, manioca
    MacBook Pro   Mac OS X (10.4.6)  

    If your talking about Pro Tools HD, then who gives a **** about a simple program like this one! Don't waste peoples time who don't have spare change for plugins that actually work after paying for that kind of a system. Real players know that PTHD won't hold a candle to either profesional live or studio sets and little programs like Logic and Soundtrack pro are only the backup of the process. Soundtrack Pro is particularly suited for the finished project, going backwards from it is stupid beyond words.
    [and if you don't have PTHD then you're really lost in space here, this forum is for Soundtrack Pro.]
    PMacG5 2.Ghz iBookg4 1.42   Mac OS X (10.4.7)   2.5mem Singin'ShureLynx16x M-AOzonicProKeys88Motu896ARTubesGolden FCS-Lp 7.2.☮

  • Question about using Functions in BC4J

    I know that it is possible to call a store procedure from a ViewObject using a DataWebbean can I do the same thing but calling a function.
    Please I need to know, as soon as possible because I am working on it.

    Following are two ideas but to tell you truth still I am looking for better way.
    1-convert your function to a procedure and execute it as a procedure.
    2-Execute a direct select statement against database function as follow.
    String sQuery = "SELECT func_name() FROM dual";
    DbAccess db = SessionInfo1.getDbAccess();
    Object dynamicQueryRowsetAccess = db.executeRetrieval(sQuery,"infobus:/oracle/SessionInfo1/DynamicQuery",null);
    if ( dynamicQueryRowsetAccess instanceof ScrollableRowsetAccess ){
    ScrollableRowsetAccess rs = (ScrollableRowsetAccess)dynamicQueryRowsetAccess;
    if (rs.getRowCount() > 0){
    //take the value returned by function here
    null

  • Have a question about  using functions  in JSP 2.0

    Hello,
    Does someone try to create functions in JSP2.0?
    the following codes is from http://developer.java.sun.com/developer/technicalArticles/javaserverpages/JSP20/
    Code Sample:math.jsp
    <%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib %>
    <HTML>
    <HEAD>
    <TITLE>Functions</TITLE>
    </HEAD>
    <BODY>
    <H3>Add Numbers</H3>
    <P>
    <FORM action="math.jsp" method="GET">
       X = <input type="text" name="x" value="${param["x"]}">
       <BR>
       Y = <input type="text" name="y" value="${param["y"]}">
       <input type="submit" value="Add Numbers">
    </FORM>
    <P>
    The sum is: ${my:add(param["x"],param["y"])}
    </BODY>
    </HTML>Compute.java
    package jsp2.examples.el;
    import java.util.*;
    public class Compute {
       public static int add(String x, String y) {
          int a = 0;
          int b = 0;
          try {
            a = Integer.parseInt(x);
            b = Integer.parseInt(y);
          }catch(Exception e) {}
          return a + b;
    }I put function tags in C:\Tomcat\webapps\jsp-examples\WEB-INF\jsp2\jsp2-example-taglib.tld
      <function>
            <description>add x and y</description>
            <name>add</name>
            <function-class>jsp2.examples.el.Compute</function-class>
            <function-signature>int add(java.lang.String,java.lang.String)</function-signature>
        </function>But get the error messages:
    The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: /jsp2-tutorial/math.jsp(11,22) equal symbol expected
    Am I missing somethig?
    Thanks.

    Well, i think the code is perfectly fine , what you should look after : is there any servlet.jar exist in the jre/lib/ext on you java sdk ,you can determine whether EL 2 works by trying some jsp 2 examples provide with tomcat 5 alpha version .
    If it works , then it is not the alternative servlet.jar issue , most probably is your configuration errors.
    I have try my custom function and it worked well under tomcat 5 after resolving the earlier servlet.jar issue.
    By the way you don't have to put your tld file as described , simply place it under your /WEB-INF and edited your tomcat 5 web.xml to like my example given below .
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">
    <display-name>Display Name of the application</display-name>
    <description>
    application name
    </description>
    <jsp-config>
    <taglib>
    <taglib-uri>
    your tld file
    </taglib-uri>
    <taglib-location>
    /WEB-INF/your tld file.tld
    </taglib-location>
    </taglib>
    </jsp-config>
    </web-app>
    Please give it a try and let me know whether it works , I will provide more assistance if required.

  • Question about Table Function inside a Package

    Hi … I am new in PL/SQL, I am trying to use a table function to create depending on a value passed to it (I am using 10g). Everything works great but the moment I add a parameter everything explode, I am creating it on a package.
    SQL that work
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    BEGIN
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = 1
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    SQL that do not work …
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
    FUNCTION Fund_Amount (Fund_Id IN NUMBER)
    RETURN financial_reports.Fund_Amount_Table
    pipelined parallel_enable IS
    cur_row financial_reports.Fund_Amount_Record;
    fund_id_int NUMBER;
    BEGIN
    fund_id_int := Fund_Id;
    FOR cur_row IN
    SELECT
    to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID
    ,to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID
    ,to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER
    ,to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID
    ,sum(be.amt) AS AMOUNT
    FROM
    linc.budgetdb_usr5@stjohnsfp bu5
    JOIN linc.budgetdb_event@stjohnsfp be ON
    bu5.keyvalue = be.acctno
    WHERE
    bu5.keyvalue like '__-__-__-____-____-_____'
    AND bu5.usrdata like '__-__-__'
    AND bu5.fieldnum = 1
    AND bu5.ispecname = 'GLMST'
    AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
    GROUP BY
    bu5.usrdata
    ORDER BY
    bu5.usrdata
    LOOP
    PIPE ROW(cur_row);
    END LOOP;
    END Fund_Amount;
    END financial_reports;
    Error … (This works without the parameter)
    Error starting at line 43 in command:
    select * from table(financial_reports.Fund_Amount(1) )
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-22905: cannot access rows from a non-nested table item
    Any help would be greatly appreciated

    try renaming your parameter so as not to confuse with what you are using in your column " to_number(substr(bu5.usrdata, 7, 2)) AS FUND_ID":
    CREATE OR REPLACE PACKAGE BODY financial_reports AS
      FUNCTION Fund_Amount (pFund_Id IN NUMBER)
        RETURN financial_reports.Fund_Amount_Table
        pipelined parallel_enable IS
        cur_row financial_reports.Fund_Amount_Record;
        fund_id_int NUMBER;
      BEGIN
        fund_id_int := pFund_Id;
        FOR cur_row IN ( SELECT to_number(substr(bu5.usrdata, 1, 1)) As SECTION_ID,
                                to_number(substr(bu5.usrdata, 2, 1)) As SUB_SECTION_ID,
                                to_number(substr(bu5.usrdata, 4, 2)) AS LINE_NUMBER,
                                to_number(substr(bu5.usrdata, 7, 2)) As FUND_ID,
                                sum(be.amt) AS AMOUNT
                           FROM linc.budgetdb_usr5@stjohnsfp bu5
                                  JOIN linc.budgetdb_event@stjohnsfp be ON bu5.keyvalue = be.acctno
                          WHERE bu5.keyvalue like '__-__-__-____-____-_____'
                            AND bu5.usrdata like '__-__-__'
                            AND bu5.fieldnum = 1
                            AND bu5.ispecname = 'GLMST'
                            AND to_number(substr(bu5.usrdata, 7, 2)) = fund_id_int
                         GROUP BY bu5.usrdata
                         ORDER BY bu5.usrdata ) LOOP
          PIPE ROW(cur_row);
        END LOOP;
      END Fund_Amount;
    END financial_reports;

  • Question about random function

    Is there a way to get 6 random numbers that not the same? I need this because I'm making a lottery from numbers 1-20. I need to make sure I don't get duplicate numbers. Will I need to make a nested loop statement? Thx for whoever answers my questions.

    Two things:
    1) That's a very bad attitude on your prof's part, I think: "use what you know". First, on general principles, he should encourage students to learn new things to solve problems. But more importantly, part of the everyday work of being a programmer (both in industry and academia) is doing research, learning how to solve a problem, and applying what you've learned. If you can't look in the API to see what it offers and try to use what it offers, then you're no good as a programmer.
    2) My guess is that he's thinking the two loops will be:
    outer loop: until you have found 6 numbers, keep trying to find new random ones, which means
         selecting a random number and then:
    inner loop: look through the existing list of selected random numbers; if you don't find the one you
         selected above add it to the end of the list; otherwise break this loop and go on to do another
         iteration of the outer loop.But who knows what he's thinking of? I hate it when the assignment is "read the teacher's mind." You also get a lot of this on job interviews: the interviewer asks a question that actually has several perfectly good responses, but you have to choose the one he likes best, because in fact the interviewer (often the "technical guy" at the business who isn't talented enough to be too busy to interview) isn't as smart as he thinks he is and only knows part of the answer.
    Anyway, see where the above takes you. If I told you any more it would be cheating.

  • Question about Arcsin function

    Hi, I have a little problem with a program, I'm calculating an angle in a triangle using sine and cosine laws. Given the values of a, c and B (beta) I want to get alpha (see the image of the triangle at the .VI), the first formula is to get "b" [b=b=sqrt((c*c)+(a*a)-(2*a*c*cos(B)));], it is proved at the calculator and it's well... the second formula is to get the desired alpha value [A=arcsin((a*sin(B))/b)]. THE PROBLEM APPEARS at the time when I want to get the arcsin of the the argument: (a*sin(B))/b).
    For example given a=18, c=16.135 and B=35°, b segment is equal to 23.75154 (the calculator confirms it) and the value of alpha in my VI is 0.44968 (the same result if I use formula node or the asin function), that is obviously wrong!! my calculator says that alpha=25.76507.... what is wrong in my VI?? 
    Thank you
    Carlos Ignacio Sarmiento
    Electronic Engineer
    (Ciudad Madero Technological Institute)
    Laboratory of Bioelectronics, Biohospital Engineering Departament
    National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
    Attachments:
    servo movement.vi ‏86 KB
    servo movement.vi ‏86 KB
    servo movement.vi ‏86 KB

    Jeffrey_Zola wrote:
    There are always 360 degrees in a full circle. Dividing a circle into 400 parts gives 400 grads. That is a different unit altogether.
    Didn't know English uses different words for these units. In German, which is my native language, for both "Grad" is normally used. However the 400 parts unit is fully correct called "Neugrad" but few know this unit at all and even fewer that it really should be called Neugrad.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • How can I print only 'even' or 'odd' pages in Pages version 5.1?

    Hi, Sorry but I was not able to see it in the detailed Print menu. Does anybody know the solution? Thanks

  • Search help for a field

    Hi Guys, I have the following requirement. I am doing my development in UAD sytem. I have F4 help available for aufnr field which fetches from  AUFK table available in  UA System( UAD-UAT-UAP). But the requirement is i have to create F4 help from AUF

  • Help on opening memory access door on new 24" iMac- screw is really tight !

    Trying to open the memory access door on my new 24" Intel iMac. It's the one with only one screw. Manual says to use a #2 Phillips but it looks like the assembler used a heavy duty high power screwdriver when it was built. Any tips on how to get the

  • Java.lang.IndexOutOfBoundsException while using lexicals

    Hi, I am trying to use a dynamic where clause with the described mechanism. - all report parameters defined as global variables in default package - whereclause defined as global variable in default package - defaultPackage defined in DataTemplate -

  • Question about multiple listeners and vip addresses in rac.

    We have a 2 node rac cluster running 10.2.0.3 on rhel4 on the itanium platform. We have a need where we want to connect the 2 hosts up to another network temporarily by configuring an additional network interface on each server so that we can test so