Problem with a simple query

Hello, I'll start by saying that I am a noob. in any case, I'm trying to do what I thought was a simple query for records that are greater or equal to the date of the day: it's my request...

< cfquery name = "getUpcoming" datasource = 'events' >
SELECT title, eventDate FROM event WHERE eventDate > = #Now () # ORDER BY ASC eventDate
< / cfquery >

It works, so, I get the records that are greater than the current date, but all records that match to are not.

I guess that it is looking at the time as well, or should I completely wrong. I do not know? Any help would be greatly appreciated.

Good reading up on top of (http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f 6f.html), which you must use when you pass dynamic values to the DB, instead of hard-coding the in your SQL string.  And when using , use a param of CF_SQL_DATE type, and must ignore the time portion of the date/time value, you pass (I'm not 100% certain of this... only about 99% certain... but give it a go).  Or spend only the date part of the date/time value in the query.  Using createOdbcDate() fact, without all the extra horsing around adding things together and using the dateFormat() attribute as the previous poster suggested.

--

Adam

Tags: ColdFusion

Similar Questions

  • Problem with the simple query.

    Hi all

    I am facing problem with the query below

    Select A.COL1, A.COL2

    B.COL1, B.COL2

    FROM TABLE1 A

    TABLE 1 B

    WHERE A.header = '123'

    AND B.header = '123'

    AND nvl (A.COL6, 'ABC') = 'ABC '.

    AND NVL (B.COL6, 'DEF') = 'DEF '.

    Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.

    When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)

    could you pls suggest me how to get the 4 columns.

    Thanks in advance

    Kind regards

    UVA.

    Try to place the status of outer join on column: analytical_criterion_code as

    and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '

    .

    .

    and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.

    In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.

    with t as)

    Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union

    Select 222 'bbb', 'DEF' col6, 123 double header

    )

    q as (select 123 double header)

    Select A.COL1, A.COL2, A.COL6

    B.COL1, B.COL2, b.COL6

    q.header

    T a

    t b

    q

    where a.col6 (+) = 'ABC '.

    and b.col6 (+) = "DEF."

    and q.header = a.header (+)

    and q.header = b.header (+)

  • Wat is the problem with this simple query?

    I use 10gxe.
    This is the query that does not work
    Whenever I'm him running a pop-up windows is coming
    and asks me to enter the bind variables... Should wat I do?
    Here's a question prntscrn.

    http://potupaul.webs.com/at.html


    G_message VARIABLE VARCHAR2 (30)
    BEGIN
    : g_message: = "Œuvres of My PL/SQL block;
    END;
    /
    G_message IMPRESSION

    Edited by: user4501184 may 18, 2010 12:42 AM

    use sqlplus 't's work' ng

    run
    cmd
    sqlplus / as sysdba
    G_message VARIABLE VARCHAR2 (30)
    BEGIN
    : g_message: = "Œuvres of My PL/SQL block;
    END;
    /
    G_message IMPRESSION

    hope this helps
    Daniele

  • Problem with a simple integral

    Hi all

    I have 2 problems with a simple integral, and I do not understand how the first HP solves.

    My first problem is that if I add a constant before my variable, the answer becomes really weird.

    My second problem is that if I just change one letter (q becomes Q), the answer changes completely.

    I am attaching a picture of the calculations so that you can understand my problem.

    Thank you very much for your help

    Kind regards

    Xavier

    When you type wx you now have a variable named "wx" - not w * x which is what I suspect you intend. You must manually add a multiplication between them.

    When you use the Q, you are actually using the predefined global real variable that is most likely the value 0. If you've stored 2 in Q, I suspect that you'll get a different result. Remember that all variables in capital letters from A to Z and THETA and already defined as real numbers. VARS-> HOME-> REAL-press and you will see them.

  • Not sure if I can do this with a simple query.

    CREATE TABLE primary_table (SSN VARCHAR2 (15) VARCHAR2 (30) FIRST_NAME, LAST_NAME VARCHAR2 (30), VARCHAR2 (20)) of the STATE;

    insert into primary_table VALUES ('111-11-1111, 'Elvis', 'Presley', 'ACTIVE');
    insert into primary_table VALUES (222-22-2222', 'Gift', 'King', 'ACTIVE');
    insert into primary_table VALUES ('33-333-3333, 'Lex', 'Harrison', 'ACTIVE');

    CREATE TABLE secondary_table (SSN VARCHAR2 (15) NOT NULL, ARRIVAL DATE, NUMBER of LENGTH_OF_STAY);

    insert into secondary_table VALUES ('11-111-1111 ", 1 January 2011", 10);
    insert into secondary_table VALUES (' ' 222-22-2222 ", March 1, 2011", 10);
    insert into secondary_table VALUES (' ' 222-22-2222 ", June 1, 2011", 20);
    insert into secondary_table VALUES ('' 33-333-3333, January 1, 2011 ", 10);

    ========================================================================================

    Hello

    I created two very simple tables for this exercise. I don't know if I can do this with a simple query, or must use pl/sql.

    I want to join primary_table secondary_table of SSNand list the fields of primary_table, but only if the join returns only a line.

    In other words, I would like to create a list of data primary_table for primary_table lines that have only one line on the secondary table.


    Concerning

    RF25 wrote:
    CREATE TABLE primary_table (SSN VARCHAR2 (15) VARCHAR2 (30) FIRST_NAME, LAST_NAME VARCHAR2 (30), VARCHAR2 (20)) of the STATE;

    insert into primary_table VALUES ('111-11-1111, 'Elvis', 'Presley', 'ACTIVE');
    insert into primary_table VALUES (222-22-2222', 'Gift', 'King', 'ACTIVE');
    insert into primary_table VALUES ('33-333-3333, 'Lex', 'Harrison', 'ACTIVE');

    CREATE TABLE secondary_table (SSN VARCHAR2 (15) NOT NULL, ARRIVAL DATE, NUMBER of LENGTH_OF_STAY);

    insert into secondary_table VALUES ('11-111-1111 ", 1 January 2011", 10);
    insert into secondary_table VALUES (' ' 222-22-2222 ", March 1, 2011", 10);
    insert into secondary_table VALUES (' ' 222-22-2222 ", June 1, 2011", 20);
    insert into secondary_table VALUES ('' 33-333-3333, January 1, 2011 ", 10);

    ========================================================================================

    Hello

    I created two very simple tables for this exercise. I don't know if I can do this with a simple query, or must use pl/sql.

    I want to join primary_table to secondary_table of NSSand the list of fields in the primary_table, but only if the join returns only a line.

    In other words, I would like to create a list of data primary_table for primary_table lines that have only one line on the secondary table.

    Concerning

    Something like...

    select p.
    from primary_table p
    where p.ssn in (select s.ssn from secondary_table s group by s.ssn having count(*) = 1)
    
  • Pool pane there problem with long sql query?

    Hello

    I use Jdeveloper 11.1.2.2.0

    In the application I'm developing, there is a long sql query to call (it's a function from a package, which may take a few minutes to run) and I want to display a progress bar for the user.

    The progress bar component is a "progress indicator" and the percentage of achivement is refreshed by a component 'pool' with 1-second interval.

    The two components are connected in a javabean.

    The function with the sql query is the javabean too.

    To run the sql query that is long on background I am calling from a thread, and the pool component get the advancement of the percentage of a pipe filled with the sql function.

    If the function to run is just a long loop of java operations the progress bar works fine, but if I put my long sql query instead, stop listener pool should be performed to stop long, s sql queryo progress are updated only at the end of the long sql query.

    You have any ideas?

    Thank you

    Thanks for your replies. Unfortunately, it was not the solution to my case, sql procedures to block the entire application while ADF awaits them at the end...

    To solve my problem, I finally used a PL SQL Job to call my sql procedure (dbms_job.submit).

    The application is released right after the call and the component of the pool is not more secure!

    Kind regards

    Yann

  • Problem with REGEXP_SUBSTR related query.

    I'm having a problem with this query:

    SELECT *.

    FROM (SELECT REGEXP_SUBSTR ('{SUMMER} |)) {} POINT OF SALE}',

    '({)([A-Z]+ *[A-Z]*)(})',

    1,

    LEVEL,

    'I,

    2)

    Val

    OF THE DOUBLE

    CONNECT BY LEVEL < =.

    REGEXP_COUNT ('{SUMMER} |) {} POINT OF SALE} ',' |') + 1)

    WHERE val IS NOT NULL

    I need the output in 2 rows in this format:

    VAL

    ====

    SUMMER

    POINT OF SALE

    But I'm not able to get the "POINT OF SALE" in the output due to space, or perhaps another reason. Anyone can correct my query?

    So, you want something like that?

    SQL > ed
    A written file afiedt.buf

    1. SELECT *.
    2 (SELECT REGEXP_SUBSTR ('{SUMMER} |)) {} POS} ',' [^ {|}] + ", LEVEL, 1, 'i') val"
    3 FROM TWO
    4. CONNECT BY LEVEL<>
    5 REGEXP_COUNT ('{SUMMER} |) {} POINT OF SALE} ',' [^ |] +'))
    6 * val WHERE IS NOT NULL
    SQL > /.

    VAL
    ------------------------
    SUMMER
    POINT OF SALE

    SQL >

  • Problem with the input query mode. FRM 41009, 40301

    Hi all

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    Now, I've wanted handled. So I created a trigger of error in order to handle the error.

    IF ERR_CODE = 41009 THEN
    NULL;
    END IF;

    A problem is that when you use the null value, it will not terminate the mode of input query, and then I get frm-40301 error.

    Second, it's that I can't use exit_form in a trigger of the error.

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Another solution would be to put the following code in the trigger when key pressed for each button in the form:

    If: system.mode = "ENTER-QUERY" then
    exit_form;
    end if;

    But I don't want to reproduce this code in my form.

    Please can you give me an idea how to handle this correctly?

    Thank you
    Michael

    PS: Version of the form = > ORACLE FORMS 10g (Forms [32 bit] Version 10.1.2.3.0)

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    What is the code in the trigger of your button When-Button-Pressed (WBP)? Maybe you should check to see if the form is in the Mode query in your WBP rather than try and remove the error? In other words, eliminate error - do not delete it. :)

    If you want instead to remove the error, there is a technique to built-ins call restricted to a trigger that does not allow them. Do this by the use of a millisecond zero Timer. For example:

    /* Sample On-Error Trigger */
    DECLARE
      n_err_cd   NUMBER := ERROR_CODE;
      t_on_error TIMER;
      ZERO  NUMBER := 0;
    BEGIN
      IF ( n_err_cd = 41009 ) THEN
        /* Create Timer to execute Exit_Form() */
        /* to Cancel Query-Mode. */
        t_timer := Create_Timer('ON_ERROR', ZERO, NO_REPEAT);
      ELSE
        /* Handle all other errors here... */
      END IF;
    END;
    
    /* Sample When-Timer-Expired Trigger */
    DECLARE
      v_Timer  VARCHAR2(30);
    BEGIN
      v_timer := Get_Application_Property(TIMER_NAME);
    
      IF ( v_timer = 'ON_ERROR' ) THEN
        /* Notice, the timer name is case sensative! */
        Exit_Form;
      END IF;
    END; 
    

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Well, it's just standard features of Oracle Forms. If you switch the Mode request form - you must run a query or cancel the query Mode! This is how it works. Your users need to understand that and accept it - just as they accept the functional also for other programs. ;) Another option would be to add a "Cancel request" button to your form and make it so it is enabled only when the form is placed in Query Mode. Just a thought...

    I personally prefer to prevent the occurrence of an error rather than remove the error. :)
    I hope this helps.
    Craig...

  • problems with basic spatial query

    I am trying to learn Oracle Spatial, in collaboration with 11 g R2 and georeferenced 3D data (specifically buildings describing data in a city).

    But I'm unable to get a basic query to work on my dataset (he works for the example in the book), and I'm doing it exactly as is done in the space for 11 g Developer Guide.

    To learn how queries work, I implemented the cola_markets tables in the documentation, makes manual registration in the view user_sdo_geom_metadata and created the index. Having done this, I can run the following simple query (as well as others in the manual) on the book tables:

    SELECT SDO_GEOM. SDO_DISTANCE (c_b.shape, c_d.shape, 0.005)
    OF cola_markets c_b, c_d cola_markets
    WHERE c_b.name = 'cola_b' AND c_d.name = 'cola_d ';

    but when I try to do the same thing on my own paintings (created from citygml data), I get an error. There is the difference that the data is 3D, and that the index was created with no PARAMETERS (...), is therefore just 2D. But still I do not understand why the following query does not work:

    SELECT SDO_GEOM. SDO_DISTANCE (c_w.envelope, c_b.envelope, 0.0005)
    OF cityobject c_w,.
    cityobject c_b
    WHERE c_w.id = 50025
    AND c_b.id = 50018;

    The id for the buildings is valid, and I used the same tolerance used by software which has set up the database.

    Here is the error I get in SQL Developer:

    ORA-29532: Java call terminated by eception Java exception: java.lang.Exception: 54535
    ORA-06512: at the 'MDSYS. SDO_3GL', line 637
    ORA-06512: at the 'MDSYS. SDO_GEOM", line 1973
    ORA-06512: at the 'MDSYS. SDO_GEOM", line 1990
    29532 00000 - "Java call terminated by eception Java exception: %s."
    * Cause: A mistake or a Java exception has been reported and could not be
    solved by Java code.
    * Action: Modify Java code, if this behavior is not expected.

    So, thinking it could have something to do with the fact that it's a Java interface, I also tried to run from the command-line SQL/PL and get essentially the same thing:

    ERROR on line 1:
    ORA-29532: Java completed by eception Java exception appeal:
    java.lang.Exception: 54535
    ORA-06512: at the 'MDSYS. SDO_3GL', line 637
    ORA-06512: at the 'MDSYS. SDO_GEOM", line 1973
    ORA-06512: at the 'MDSYS. SDO_GEOM", line 1990

    Any ideas why it does not work?

    54535 error means that the geometry data are not valid.
    If you run validate_geometry_with_context on the data to check for errors and correct the data first.

    Siva

  • Lost my copy and I tried to download the iso from the Microsoft web site, but my product key will not validate, pass this message: we had a problem with the validation query

    Original title: error Windows 7 installation files

    I bought a copy of Windows 7 at Tiger Direct on 22/05/2014.  I lost my copy and I tried to download the iso from the Microsoft web site, but my product key is not valid.  I get this error message

    We had a problem with the request for approval.

    FAQ

    See for other directions:

    http://answers.Microsoft.com/en-us/Windows/wiki/Windows_7-update/how-to-what-are-my-options-for-obtaining-Windows-7/528163c1-0b2e-4AD2-a26d-7112851d1dc2

  • Problem with users simple Javascript running in an Active Directory environment

    I support the local government environment.
    After the latest updates for firefox 25.0.1 and Java 7 update 45 we are facing a lot of difficulties to access the sites provided by the central Government.
    In some cases, the problems are solved by re - install java or that allow plugins to run.
    In a particular case, we can access all the features (same photos and links to java scripts) to a site by using an administrator account, but cannot use a simple user. Activation of java deployment toolkit and Java (TM) platform plugins for the site did not work.
    Computers face the problem to run Windows XP Pro + SP3.

    The same issue does not appear when you run google chrome...

    Hello ageorgopoulos,

    Please contact the Mozilla Support. This seems to be a difficult issue and I hope that we can help you.

    • Did you try a hard refresh of the page with Ctrl + F5?
    • Also have you tried to see if there are errors listed in the Web console Tools > developers Web > Web Console?

    See you soon,.
    Patrick

  • Problem with "PCI Simple Communications controller" driver in inspiron n5010

    Hello

    As a first step to apologize for my bad English

    After installing Win7 Ultimate 32 bit on my inspiron n5010 I installed all the drivers and components are working properly, but one of the devices have problem because I can not find the drivers for it. This device is "PCI Simple Communications controller" and he scored in the device with the yellow symbol Manager and button update driver in Device Manager does not work for this.

    How to find the driver for this part of my laptop?

    Thank you

    Hello

    You can also download it from dell.

    N5010--> chipset--> Inter Management Engine Interface Driver

    If you see the version of the file. you will see that it supports windows 7 32-bit ultimate too.

  • Problems with a simple site, had fixed the issues but now its happening again, shifting of pages

    Hello


    I'm building one pretty simple compared to my other site and have never had this problem before that's why I'm really confused.

    Two of my pages keep transfer of a couple of cm to the right, and others remain the same.

    I'm gone in the FAQ forum and found that someone else had the same problem so added

    HTML {}

      overflow-y: scroll;

    }

    Who stopped to question, until I rebooted the computer today, and the issue is back. I use DW8.


    This is the CSS for the site

    * {

    padding: 0px;

    }



    {#wrapper}

    width: 890px;

    margin-right: auto;

    left margin: auto;

    }

    #wrapper #header {}

    height: 77px;

    width: 890px;

    margin-right: auto;

    left margin: auto;

    are-family: Georgia, "Times New Roman", Times, serif;

    -font size: 70px;

    color: #000000;

    }

    {#wrapper #div2}

    height: 9px;

    }

    #wrapper #header #leftheader {}

    float: left;

    width: 740px;

    height: 77px;

    }

    #wrapper #header #rightheader {}

    float: left;

    width: 150px;

    height: 77px;

    }

    page of #wrapper #main {}

    height: auto;

    }

    #wrapper #navigation {}

    height: 30px;

    are-family: Georgia, "Times New Roman", Times, serif;

    are-size: 18px;

    color: #000000;

    }

    {#wrapper #div1}

    height: 9px;

    }


    #wrapper #bodyarea #left {}

    background-color: #FFFFFF;

    height: 200px;

    width: 757px;

    float: left;

    }

    #wrapper #bodyarea #bottom {}

    height: 50px;

    background-color: #FFFFFF;

    }

    #wrapper #bodyarea #left1 {}

    width: 640px;

    float: left;

    height: 180px;

    background-color: #FFFFFF;

    }

    {#wrapper #autremoiintro}

    height: 110px;

    }

    #wrapper #bodyarea #right1 {}

    float: left;

    height: 180px;

    width: 250px;

    background-color: #FFFFFF;

    }

    #wrapper #bodyarea #bodyarea1 {}

    height: 700px;

    }

    #wrapper #main page contact {}

    width: 890px;

    }

    #wrapper #body #bottom {}

    background-color: #FFFFFF;

    height: 50px;

    }

    #wrapper #bodyarea1 #leftcon {}

    float: left;

    height: 350px;

    Width: 465px;

    are-family: "Times New Roman", Times, serif;

    are-size: 16px;

    background-color: #FFFFFF;

    }

    #wrapper #bodyarea1 #bottom {}

    background-color: #FFFFFF;

    height: 50px;

    }

    #wrapper #bodyarea1 #rightco {}

    float: right;

    height: 350px;

    width: 425px;

    }

    #wrapper #bodyarea1 #leftport {}

    float: left;

    height: 170px;

    width: 640px;

    are-family: Georgia, "Times New Roman", Times, serif;

    are-size: 16px;

    text-decoration: underline;

    }

    #wrapper #bodyarea1 #rightport {}

    float: right;

    height: 170px;

    width: 250px;


    HTML {}

    Overflow-y: scroll;

    }

    And here is the html code for a page that does not move

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 "/ >"

    autremoi < title > < /title >

    < style type = "text/css" >

    <!--

    {body

    background-image: url(images/background.jpg);

    background-repeat: repeat-x;

    margin-top: 0px;

    }

    ->

    < / style >

    < link href = "css/layout.css" rel = "stylesheet" type = "text/css" / > "

    < style type = "text/css" >

    <!--

    a: link {}

    color: #000000;

    text-decoration: none;

    }

    a: visited {}

    text-decoration: none;

    color: #000000;

    }

    a: hover {}

    text-decoration: none;

    color: #CCCCCC;

    }

    a: active {}

    text-decoration: none;

    color: #000000;

    }

    {.style2}

    are-family: Georgia, "Times New Roman", Times, serif;

    -font size: 24 PX;

    }

    .style10 {do-family: Georgia, "Times New Roman", Times, serif; do-size: 18px ;}}

    .style9 { do-family: Georgia, "Times New Roman", Times, serif; }

    are-size: 14px;

    }

    ->

    < / style > < / head >


    < body >

    < div id = 'wrapper' >

    < div id = "header" >

    < div id = "leftheader" > < a href = "index.html" > other me < /a > < / div > ""

    < div id = "rightheader" > < a href = "http / /" > < / a > < / div > ""

    < / div >

    < div id = "navigation" > < a href = "autremoi.html" > other me < /a > | "" < a href = "team.html" > < /a > team | < a href = "portfolio.html" > < /a > portfolio | < a href = "rates.html" > < /a > rates | < a href = "contact.html" > Contact < /a > < / div >

    < div id = "div1" > < img src = "images/div.png" alt = "div1" width = '890' height = '8' / > < / div > "

    < u > < span class = "style2" > team </span > < / u >

    < div id = "div2" > < img src = "images/div.png" alt = "div" width = '890' height = '8' / > < / div > "

    < div id = "bodyarea" >

    < div id = "left" >

    < class p = "style10" > Mattaeus Ball < /p >

    < class p = "style9" > Mattaeus Ball is a professional photographer who has been published in the world. He is also a designer and set Builder. An all around artist with a taste for the magic and the macabre. Mattheus has & quot; eyes & quot; When it comes to making certain this one and is much more than a photographer! Mattheus is a visionary and loves nothing more to make her visions and live through his photographs. You want Mattheus can do with his countless talents and imagination. < /p >

    < class p = 'style9' > < / p >

    < / div >

    < div id = "right" > < img src = "images/matt.jpg" alt = "matt" / > < / div > "

    < div id = "div3" > < img src = "images/div.png" alt = "div" width = '890' height = '8' / > < / div > "

    < div id = "bodyarea2" >

    < div id = "left" >

    < class p = "style10" > < u > Roseanna < /u > < / p >

    < class p 'style9' = > Logan is our head makeup artist. His work speaks for itself, we have searched high and low for an artist who has the whole package and with Martin, we have all this and more! Roseanna vellum is published internationally and has worked for Torture Garden and the clothes Show Live, to name a few. Unique and inspiring Roseanna can help your imagination to life. < /p >

    < / div >

    < div id = "right" > < img src = "images/roseannanew.jpg" alt = "roseanna" / > < / div > "

    < / div >

    < div id = "div4" > < img src = "images/div.png" alt = "div3" / > < / div > "

    < div id = "bodyarea3" >

    < div id = "left" >

    < class p = "style10" > Starla James < /p >

    < class p = "style9" > Starla James is a professional model, the creator of prop, the dresser of the wig and the stylist. She has worked in different genres within the modeling industry. Charles-Antoine has worked with officials in the past but prefer finding his own work that allows his imagination without limits and current. Has dabbled in the popular genres of pinup and Gothic modelling, she sees herself as more of a model with no particular genre, taking gas from different eras and styles to make his own. Knowledge of Charles-Antoine of fashion through the eras is comprehensive and accurate. < /p >

    < / div >

    < div id = "right" > < img src = "images/starla wrath.jpg" alt = "starla" / > < / div >

    < / div >

    < div id = "div5" > < img src = "images/div.png" alt = "div5" / > < / div > "

    < div id = "bottom" > < / div >

    < / div >

    < / div >

    < / body >

    < / html >

    It's one of the pages that moves the html code
    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 "/ >"
    autremoi < title > < /title >
    < style type = "text/css" >
    <!--
    {body
    background-image: url(images/background.jpg);
    background-repeat: repeat-x;
    margin-top: 0px;
    }
    ->
    < / style >
    < link href = "css/layout.css" rel = "stylesheet" type = "text/css" / > "
    < style type = "text/css" >
    <!--
    a: link {}
    color: #000000;
    text-decoration: none;
    }
    a: visited {}
    text-decoration: none;
    color: #000000;
    }
    a: hover {}
    text-decoration: none;
    color: #CCCCCC;
    }
    a: active {}
    text-decoration: none;
    color: #000000;
    }
    {.style2}
    are-family: Georgia, "Times New Roman", Times, serif;
    -font size: 24 PX;
    }
    body, td, th {}
    are-family: Times New Roman, Times, serif;
    are-size: 16px;
    }
    ->
    < / style > < / head >

    < body >
    < div id = 'wrapper' >
    < div id = "header" >
    < div id = "leftheader" > < a href = "index.html" > other me < /a > < / div > ""
    < div id = "rightheader" > < img src = "images/facebook.jpg" alt = "facebook" width = "150" height = "46" / > < / div > "
    < / div >
    < div id = "navigation" > < a href = "autremoi.html" > other me < /a > | "" < a href = "team.html" > < /a > team | < a href = "portfolio.html" > < /a > portfolio | < a href = "rates.html" > < /a > rates | < a href = "contact.html" > Contact < /a > < / div >
    < div id = "div1" > < img src = "images/div.png" alt = "div1" width = '890' height = '8' / > < / div > "
    < u > < span class = "style2" > Contact </span > < / u >
    < div id = "div2" > < img src = "images/div.png" alt = "div" width = '890' height = '8' / > < / div > "
    < div id = "bodyarea1" >
    < div id = "leftcon" >
    < p > other me < /p >
    6 unit < p > < br / >
    Clements Mews < br / >
    5 avenue of Stevenson < br / >
    BH4 8ED < /p >
    < p > < a href = "mailto: " [email protected] "> [email protected] < /a > < /p > "
    < p > 07989414201 / 01202-778414 < /p >
    < p > Note: keep double clicking on place to zoom in < /p >
    < p > < br / >
    < / div >
    < div id = "rightco" >
    < / div >
    < div id = "div4" > < img src = "images/div.png" alt = "div4' width = '890' height = '8' / > < / div >"
    < div id = "bottom" > < / div >
    < / div >
    < / div >
    < / div >
    < / body >
    < / html >


    Thanks in advance for your help.

    -Change

    #wrapper #bodyarea1 #rightport {}

    float: right;

    height: 170px;

    Width: 250px;

    HTML {}

    Overflow-y: scroll;

    }

    on this subject.

    #wrapper #bodyarea1 #rightport {}

    float: right;

    height: 170px;

    Width: 250px;

    }

    HTML {}

    Overflow-y: scroll;

    }

    Note the braces - one of you was missing.  Use it instead of the suggestion of Ken.

  • Problem with pseudo-HIERARCHICAL query

    Hi all

    I'm writing a piece of SQL to validate the check digit in wines

    (http://en.wikipedia.org/wiki/Vehicle_identification_number#Check_digit_calculation)


    using
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production


    The logic in the wikipedia article can be encapsulated as follows:
    with val as (select '0' ch, 0 val from dual
                 union all
                 select '1', 1 from dual
                 union all 
                 select 'A',1 from dual
                 union all 
                 select 'J',1 from dual
                 union all 
                 select '2',2 from dual
                 union all 
                 select 'B',2 from dual
                 union all 
                 select 'K',2 from dual
                 union all 
                 select 'S',2 from dual
                 union all 
                 select '3',3 from dual
                 union all 
                 select 'C',3 from dual
                 union all 
                 select 'L',3 from dual
                 union all 
                 select 'T',3 from dual
                 union all 
                 select '4',4 from dual
                 union all 
                 select 'D',4 from dual
                 union all 
                 select 'M',4 from dual
                 union all 
                 select 'U',4 from dual
                 union all 
                 select '5',5 from dual
                 union all 
                 select 'E',5 from dual
                 union all 
                 select 'N',5 from dual
                 union all 
                 select 'V',5 from dual
                 union all 
                 select '6',6 from dual
                 union all 
                 select 'F',6 from dual
                 union all 
                 select 'W',6 from dual
                 union all 
                 select '7',7 from dual
                 union all 
                 select 'G',7 from dual
                 union all 
                 select 'P',7 from dual
                 union all 
                 select 'X',7 from dual
                 union all 
                 select '8',8 from dual
                 union all 
                 select 'H',8 from dual
                 union all 
                 select 'Y',8 from dual
                 union all 
                 select '9',9 from dual
                 union all 
                 select 'R',9 from dual
                 union all 
                 select 'Z',9 from dual)
       ,weight as (select 1 pos, 8 weight from dual
                    union all 
                    select 2, 7 from dual
                    union all 
                    select 3, 6 from dual
                    union all 
                    select 4, 5 from dual
                    union all 
                    select 5, 4 from dual
                    union all 
                    select 6, 3 from dual
                    union all 
                    select 7, 2 from dual
                    union all 
                    select 8, 10 from dual
                    union all 
                    select 9, 0 from dual
                    union all 
                    select 10, 9 from dual
                    union all 
                    select 11, 8 from dual
                    union all 
                    select 12, 7 from dual
                    union all 
                    select 13, 6 from dual
                    union all 
                    select 14, 5 from dual
                    union all 
                    select 15, 4 from dual
                    union all 
                    select 16, 3 from dual
                    union all 
                    select 17, 2 from dual)
    I can easily get the check digit for a WINE of the following logic:

        ,vm as (select row_number() over(partition by vin order by level) rn
                       , substr(vin, level,1) v
                       , vin
                    from (select 'ZAR91600006043427' vin
                            from dual
                         )
                 connect by level <= length(vin))
    select vin
         , mod(sum(checksum),11) calculated_check
         , substr(vin,9,1) existing_check
         , regexp_instr(substr(vin,9,1),mod(sum(checksum),11)) correct
      from (select val.val * weight.weight checksum
                  ,vm.vin 
              from vm
              join val on (val.ch = vm.v)
              join weight on (weight.pos = vm.rn)
      order by vm.rn)
    group by vin;
    which produces:
    VIN                              CALCULATED_CHECK                       EXISTING_CHECK                   CORRECT                                
    ZAR91600006043427                4                                      0                                0                                      
    However, I am having a little problem when I try to combine several wines of a table which I want to do rather than calculate each wine by programming:


    This, for example, produces a line for each letter of the wine ready to match with the other two CTES:
    with vehicle as (select 1000 as vehicle_id, 'ZAR91600006043427' as vin from dual
                       union all 
                     select 1001, 'XXX91600006043427' from dual)
    select level
           , substr(vin, level,1) v
           , vin
        from (select *
                from vehicle
               where vehicle_id = 1000
             )
     connect by level <= length(vin);
    I want ideally is a line for each character of each WINE. but this:
    with vehicle as (select 1000 as vehicle_id, 'ZAR91600006043427' as vin from dual
                       union all 
                     select 1001, 'XXX91600006043427' from dual)
    select level
           , substr(vin, level,1) v
           , vin
        from (select *
                from vehicle
               where vehicle_id in (1000,1001)
             )
     connect by level <= length(vin);
    product 262142 lines!

    and adding
    where vin = prior vin
    just reduced to 131070 lines...


    place a different one on the SQL produced the result that I want, but it is not scalable product lines by adding a third vehicle are exponentially more than two.

    so, in short: what is happening with my connect by statement that I'm missing?

    Hello

    Samir says:
    ... I want ideally is a line for each character of each WINE. but this:

    with vehicle as (select 1000 as vehicle_id, 'ZAR91600006043427' as vin from dual
    union all
    select 1001, 'XXX91600006043427' from dual)
    select level
    , substr(vin, level,1) v
    , vin
    from (select *
    from vehicle
    where vehicle_id in (1000,1001)
    )
    connect by level <= length(vin);
    

    product 262142 lines!

    and adding

    where vin = prior vin
    

    just reduced to 131070 lines...

    place a different one on the SQL produced the result that I want, but it is not scalable product lines by adding a third vehicle are exponentially more than two.

    so, in short: what is happening with my connect by statement that I'm missing?

    Whenever you want to debug a CONNECT BY query, put SYS_CONNECT_BY_PATH in the SELECT clause, to see how the lines are related.
    We will also cut the sting down to only 3 characters, in order to make things faster and easier to read and add ROWNUM just to make it easier to talk about the results:

    with vehicle as (select 1000 as vehicle_id, 'ABC' as vin from dual
                       union all
                     select 1001, 'XYZ' from dual)
    select level
           , substr(vin, level,1) v
           , vin
           , sys_connect_by_path ( vin
                        , ','
                        )     AS path_3
           , sys_connect_by_path ( substr (vin, level, 1)
                        , ','
                        )     AS path_1
           , ROWNUM
        from (select *
                from vehicle
               where vehicle_id in (1000,1001)
             )
    -- where     vin     = PRIOR vin
     connect by level <= length(vin);
    

    Output:

    `    LEVEL V    VIN PATH_3               PATH_1         ROWNUM
    ---------- ---- --- -------------------- ---------- ----------
             1 A    ABC ,ABC                 ,A                  1
             2 B    ABC ,ABC,ABC             ,A,B                2
             3 C    ABC ,ABC,ABC,ABC         ,A,B,C              3
             3 Z    XYZ ,ABC,ABC,XYZ         ,A,B,Z              4
             2 Y    XYZ ,ABC,XYZ             ,A,Y                5
             3 C    ABC ,ABC,XYZ,ABC         ,A,Y,C              6
             3 Z    XYZ ,ABC,XYZ,XYZ         ,A,Y,Z              7
             1 X    XYZ ,XYZ                 ,X                  8
             2 B    ABC ,XYZ,ABC             ,X,B                9
             3 C    ABC ,XYZ,ABC,ABC         ,X,B,C             10
             3 Z    XYZ ,XYZ,ABC,XYZ         ,X,B,Z             11
             2 Y    XYZ ,XYZ,XYZ             ,X,Y               12
             3 C    ABC ,XYZ,XYZ,ABC         ,X,Y,C             13
             3 Z    XYZ ,XYZ,XYZ,XYZ         ,X,Y,Z             14
    
    14 rows selected.
    

    There is no START WITH clause, so it will start by each of the 2 rows. It is very good; Take the first case of 'ABC'.
    Level = 1, we have row "ABC", so the substring added to this level is 'A'
    The lines are connected to this line to LEVEL = 2? All rows that satisfy the condition of LEVEL<= length="" (vin),="" which,="" in="" this="" sample="" set,="" means="" both="" rows.="" let's="" take="" 'abc'="" first,="" which="" is="" what="" happened="" on="" the="" line="" where="" rownum="">
    The lines are connected to this line (the line at the end of the path_3 ", ABC, ABC' ') = 3 level? All rows that satisfy the condition of LEVEL<= length="" (vin),="" which,="" in="" this="" sample="" set,="" means="" both="" rows.="" let's="" take="" 'abc'="" first,="" which="" is="" what="" happened="" on="" the="" line="" where="" rownum="">
    So far, so good; the results were exactly what we wanted. But here's where it won't.
    The lines are connected to the line at the end of the path ", ABC, ABC, ABC' level = 4?" All rows that satisfy the condition of LEVEL<= length="" (vin),="" which,="" in="" this="" sample="" set,="" means="" no="" rows.="" so="" let's="" back="" up="" the="" tree="" and="" see="" if="" any="" of="" the="" nodes="" we've="" already="" vistited="" has="" any="" other="" children.="" we="" back="" up="" to="" the="" row="" where="" path_3=',ABC,ABC' does="" 'abc'="" have="" any="" other="" children="" (that="" is,="" rows="" that="" meet="" the="" condition="" 3="">< length="" (vin)?="" yes,="" 'xyz'="" meets="" that="" condition,="" so="" 'xyz'="" is="" a="" child="" of="" 'abc',="" and="" we="" get="" the="" output="" row="" where="" rownum="">

    A CONNECT BY query WHERE clause is applied after the CONNECT BY is done. Adding a WHERE clause only deletes the rows from the result set once they have been generated. If we have a comment the WHERE clause above, the results are:

    `    LEVEL V    VIN PATH_3               PATH_1         ROWNUM
    ---------- ---- --- -------------------- ---------- ----------
             2 B    ABC ,ABC,ABC             ,A,B                1
             3 C    ABC ,ABC,ABC,ABC         ,A,B,C              2
             3 Z    XYZ ,ABC,XYZ,XYZ         ,A,Y,Z              3
             3 C    ABC ,XYZ,ABC,ABC         ,X,B,C              4
             2 Y    XYZ ,XYZ,XYZ             ,X,Y                5
             3 Z    XYZ ,XYZ,XYZ,XYZ         ,X,Y,Z              6
    

    Better, but it is still bad. All the 14 ranks were always generated, and then some of them have been excluded by the WHERE clause.
    Why the lines like the one with ROWNUM = included 3? Because the WHERE 'wine = wine PRIOR' condition is true: on this line, the wine is "XYZ", and wine PRIOR is also "XYZ". The status of research only in the last 2 levels. (PREREQUISITE may only be 1 level.) It does not matter that, earlier in the path, there is a knot where wine! = wine BEFOREHAND; This condition applies only to the finished result set. So the output row with path_3 =', ABC, XYZ "was excluded the result defined by the WHERE clause, but the descendants of this line can remain.

    Moral: If you do a query CONNECT BY and provided to connect BY is 'LEVEL '.<= x",="" then="" the="" table="" had="" better="" have="" only="" one="">
    Odie showed how to use CONNECT BY in this problem, by making the relative to the double CONNECT BY and joining your table of multiple row results.

  • Problems with the simple serial communication.

    I followed a tutorial online to start learning basic communication series. The involved tutorial shorting pins 1 and 3 on port 1 Comm and write a simple program (attached). I've edited it a bit, the program to see varied results I get when trying to write and read a simple sentence via a serial port.

    Could someone explain what causes the kind of result shown in "Serial Comm example.png"? I think it has to do with timing. Why would be transmitted only the parts of the sentence?

    Thank you

    Sarah

    sarahzig wrote:

    The involved tutorial shorting pins 1 and 3 on the Comm 1 port

    What should be pins 2 and 3?  On a standard serial port DB-9, pin 2 is the receive and pin 3 is the transmission.

    Now for your code...

    1. move the Serial Port to be before the loop to set it up.  Simply configure the port once.

    2. close the port after the loop.

    3. managing your error after closing.

    4 stop your loop on an error or the stop button has been pressed.  You will need a RC in there.

    5. no need to Flush Buffer function.  Remove it.

    6. using the bytes to the Port is a dangerous thing.  It introduced all kinds of race conditions that are interesting.  Instead, say VISA reading to read the number of bytes that you expect to read.

    6a. Moreover, don't forget to send a character to end of line at the end of your data and all the number of bytes to read something a lot more than you ever expect read.  The VISA read will stop reading when he a) sees the number of bytes, it was said to read, b) sees the stop character (currently enabled and set to a line break, which is part of the end of line), or c) the time-out occurs.  Whichever comes first.

    7. with 6, the wait is no longer necessary.

Maybe you are looking for

  • problem of data type

    Hello buddies. I'm a newbie to Labview and has started on a project involving communication with a MOS (magnetic orientation sensor)Basically, a hexadecimal string is read in and I want to convert it to numbers. I have a problem probably due to the t

  • HP2000 D1E85UA: upgrading RAM on HP2000

    I intend to upgrade the RAM on my HP2000 with D1E85UA product number.  According to corresponding Crucial material site I can use DDR3 1600 and DDR3 1866. The laptop currently has 1 stick of RAM of 4 GB and another nut to crack open, I don't know how

  • Windows Media Player won't play certain DVD

    I'm able to play most DVDs.  But this one, a concert will start and then will not give me the main menu, so I'm not able to play.  It crashes just after the initial logo from the record company.     I would have thought it was the DVD, but I got to w

  • No software available on Windows Vista Edition fax Home Premium

    How can I send a fax on Windows Home Premium? I can't locate any software with Windows Vista 64-bit. I searched for a program of Windows Vista and have not found a way to fax. I tried to install several different fax programs but none or compatible.

  • Error correction of Spades online in Windows 7?

    Version of Windows 7 of Spades online seems to have a lot of mistakes which does not exist in XP... very disappointing that the software is getting WORSE with the upgrade!  Examples: 1) hang up on login: very often does not connect in a real game.  S