where query question

Ive HI you try to run a query that uses an apex link var to add a where clause per month on a date field

Select print_month, to_char (PRINT_MONTH, 'Month') of print_schedule

This query returns

"PRINT_MONTH", "M".

' 01/12/2015', 'December '.

' 01/12/2015', 'December '.

' 01/10/2015', 'October '.

' 01/10/2015', 'October '.

' 01/08/2015', 'August '.

Now then I try this query

Select print_month, to_char (trunc (PRINT_MONTH), 'Month') of print_schedule where to_char (trunc (PRINT_MONTH), 'Month') = 'December '.

I have some found data.

The print_month field is a date column.

Oracle 12 c

HI, I fixed that I noticed when I opened the csv file in a text editor so that I could paste the result in the post that there are spaces at the end of month names string, so I added in the trunk as I thought that would fix it, but it didn't so I added now in a PLATE and it works

Select print_month, RTRIM (to_char (trunc (PRINT_MONTH), 'Month')) from print_schedule where RTRIM (to_char (trunc (PRINT_MONTH), 'Month')) = "December".

So I have some might explain why this is the case, why should I cut the tank a date version?

Measure out why add white space on the end?

Tags: Database

Similar Questions

  • Where should questions about the JDEV/ADF positions?

    Hello

    Where should questions about the JDEV/ADF positions?

    JDeveloper and ADF or

    JDeveloper and ADF?

    I found there may be some different advantageous:

    https://forums.Oracle.com/message/11109674?TSTART=0#11109674

    Thank you.

    Well, the other forum you mentioned is the Korean equivalent of the English forum.

    You have already discovered, it is not controlled to many users. I didn't know that it exists at all.

    In general it is to you where you ask your questions. All for one here are driven by the community and some employees of the Oracle, you cannot wait has answered all your questions. If you really need to answer you go through paid support.

    A tip for getting help is to provide a well-defined use cases, information relating to your environment and documented code showing what you have already tried.

    Timo

  • Progressive, Question on the fields of dynamic/DocID/Query Question of profiling

    This may seem like a newb question but someone has a logical division of the BOM designation DocID?

    In the course, we are responsible to use DocID = 1 and DocID = 2, but when/why would you use DocID = 3 or higher?

    Any help would be greatly appreciated with the portion of dynamic fields/query string of the progressive profiling course.

    Thank you.

    The DocID is a complete example. You can actually assign the query string to be what you want. I recently use cmpID for the campaign ID, where I spent to map identity of the campaign and then sent the URL to redirect dynamically the campaign ID field. In my case, we worked with 10 different docs or goods, so we had to actually 10 unique codes. In this case we would have, for example cmpID = 483h76d; cmpID = 9j872hd, etc, etc. If you want to learn more about how you can use the query string values, see this post: how Progressive E10 profiling using the component of cloud - scroll down to step 6 and you'll see how to set up dynamic rules using query strings.

  • XML PIVOT QUERY QUESTIONS

    I'm new to PIVOT queries.  I was making reference to the discussion that follows, but ran into a problem.  https://forums.Oracle.com/message/9393302

    When I added the XML to format data, I started to have NULL values rather than what I was looking for.

    WITH (AS PIVOT_DATA)

    SELECT * FROM)

    SELECT THE REGION, FCST_PERIOD, PRIME_PART, FINAL_FORECAST

    OF XYZ WHERE FCST_PERIOD > = last_day (trunc (sysdate)) + 1 and FCST_PERIOD < = last_day (add_months(sysdate,12)) AND PRIME_PART IN ('BLAH')

    )

    PIVOT XML (SUM (FINAL_FORECAST) FOR FCST_PERIOD IN (SELECT DISTINCT FCST_PERIOD OF XYZ))

    )

    SELECT PRIME_PART, REGION,

    EXTRACTVALUE(FCST_PERIOD_XML,'/PIVOTSET/ITEM[1]/COLUMN[2]') FCST_PERIOD1,

    EXTRACTVALUE(FCST_PERIOD_XML,'/PIVOTSET/ITEM[2]/COLUMN[2]') FCST_PERIOD2,

    EXTRACTVALUE(FCST_PERIOD_XML,'/PIVOTSET/ITEM[3]/COLUMN[2]') FCST_PERIOD3

    OF PIVOT_DATA;

    RESULTS IN:

    PRIME_PARTREGIONFCST_PERIOD1FCST_PERIOD2FCST_PERIOD3
    BLAMIDWEST(NULL)(NULL)(NULL)
    BLAWEST-NV(NULL)(NULL)(NULL)
    BLASOUTH-EAST(NULL)(NULL)(NULL)
    BLAWEST-CA(NULL)(NULL)(NULL)
    BLASOUTHWEST(NULL)(NULL)(NULL)
    BLAEAST(NULL)(NULL)(NULL)

    The second part of my question is how would I do a group when you use a pivot query.  When I finished, I've has several parts and would like to group by REGION.

    Thank you!

    Names of elements and attributes in XML are case-sensitive.

    Try with:

    EXTRACTVALUE (FCST_PERIOD_XML, ' / PivotSet/item [1] /column [2]') FCST_PERIOD1

    There is also a good chance that EXTRACTVALUE is frowned upon in your version. Instead, use XMLQuery or XMLTable.

    That being said, using XML PIVOT just to grind it later into a number known columns is pretty useless.

    The same can be achieved much more efficiently with regular PIVOT operator (and if necessary analytical function).

    Post some examples of data in the table of your database and your final result expected to get useful assistance.

  • BI Publisher data model / query question

    Hello

    I'm designing a report of BI Publisher where I need to show negative numbers in red. I'm perfectly fine with the help of the conditional formatting to do this (just using the default value is conditional formatting in the add-in in MS Word, that generates code like this:)

    <? If: number(Cost_-_MTD) < 0? > <? attribute@InContext:color;' Red '? > <? end if? >

    BUT...

    I have columns returning who sometimes have a NULL value in them, and when they have the value NULL, it causes the foregoing to the pipe upwards. So I thought, 'I'll just add IfNull() in queries defined in the model data, and who will take care of the problem... "

    that works - a little. Now, my problem is if I have to go back and change the query for some reason, I get an error "query cannot be parsed, please modify the query manually. I really don't want to do that, I wish that other developers do NOT have to manually change the queries.

    So my question is - is it possible to add in the IfNull() directly in the query designer, so it should not be changed manually from that moment?

    p.s. using IfNull OBIEE server as our data source.

    Thanks in advance,
    Scott

    I don't think there is a way to add the ifnull condition in the query designer. So, you will need to manually change the query...

    In your model so you can add additional control like this:
    <0?>...

    Thank you!

    Published by: BIPuser on Sep 17, 2010 09:20

  • SQL Query Question campaign

    I have a table that has at least 40 values that I need to use as variables in CCA. My question is. If I write the query as follows:

    SELECT AS $Var1 of the value1, value2 AS $Var2, ETC... I do for 40 fields. Would it work if I just do a query where I

    SELECT * FROM DBNAME WHERE CALLER = "$ANI."

    and then simply use the column as variables names?

    If you need 40 variables in your campaign to act on and use in logic, then you must list and assign all 40 as your first example.

  • PTC connector query questions

    I develop a connector and had some questions about the presentation of the petition. I tried to read the documentation and help, but saw no reference to these issues. I know that some of these things may not still have public API, but any help would be appreciated.

    (1) is it possible to disable the entry blank for a ComboBox and set one of the values? I am referring to when you click on the button '+' on a query and selecting a comboBox field. I tried the 'enableEmptyEntry' attribute but could do not seem to work.

    (2) is there a way to prevent several lines for the same domain? I'm trying to match a web interface that allows values separated by commas in certain areas and not others. Trying to decipher the intent of the user if they use multiple lines for the same field becomes confused.

    (3) is there a way to disable 'Match All' or 'match any '?

    Thank you

    After further review, the removal of the empty the box entry drop-down list on the query page is not possible.

    One feature that we've added in the last release to support the case where the user needs to find records with a null or empty value for this combobox field. For example, finding bugs without test status. We have generic for all drop-down list boxes.

    The 'enableEmptyEntry' attribute is intended to work with the attribute "emptyEntryValue" as a pair. The user can do something like this in def.xml:
    enableEmptyEntry = 'true '.
    "emptyEntryValue =""
    Our framework poster in the drop-down list instead of empty or the default value .

    We recorded a feature request for this for a future version. Currently, writer connector is not a way to customize our application page, including the MatchAll, MatchAny option.

  • SQL Query Question of multiple criteria

    Hi all

    I currently have a query that provides me with a count for a criterion (C), but I also want to include the number of criteria (A) and (E) within the same query if possible. Here's what I have:

    SELECT B.MDA_LEV3_DEPT_NAME AS "TEU Area", AS COUNT (Z.MDA_EPAF_STATUS) PROJECT

    PS_MDA_EPAF_RQST Z, PS_MDA_EMPLOYEES B, PS_MDA_EPAF_WFXREF T

    WHERE MDA_EPAF_STATUS = 'C '.

    AND T.ORIGINATORID = Z.USERID

    AND Z.USERID = B.EMPLID

    AND Z.TRANSACTION_NBR = T.TRANSACTION_NBR

    B.MDA_LEV3_DEPT_NAME GROUP

    ORDER BY B.MDA_LEV3_DEPT_NAME;

    Which produces:

    Area of EVPProject Manager
    Office of VP University Affairs Sr5
    Cancer medicine30
    Cancer medicine - research49
    Cancer Prev & Pop science3
    Cancer Prev & science-Res Pop1
    Diagnostic Imaging2
    Information services16
    Internal medicine5
    Pathology/laboratory medicine2
    Pathology/laboratory medicine - Resch1
    Pediatrics13
    Provost and EVP departments1
    Radio-Oncology26
    Radio-Oncology - search2
    Regulatory Affairs1
    Surgery4
    Vice Provost research clinical1
    Vice Provost Science42

    But I want to understand (A) approved County and (E) which is pending County so it would look like:

    Area of EVPProject ManagerCounty approvedCounty pending
    Office of VP University Affairs Sr5
    Cancer medicine30
    Cancer medicine - research49
    Cancer Prev & Pop science3
    Cancer Prev & science-Res Pop1
    Diagnostic Imaging2
    Information services16
    Internal medicine5
    Pathology/laboratory medicine2
    Pathology/laboratory medicine - Resch1
    Pediatrics13
    Provost and EVP departments1
    Radio-Oncology26
    Radio-Oncology - search2
    Regulatory Affairs1
    Surgery4
    Vice Provost research clinical1
    Vice Provost Science42

    Maybe (guessing)

    SELECT B.MDA_LEV3_DEPT_NAME AS 'TEU Area. "

    PROJECT COUNT(CASE Z.MDA_EPAF_STATUS WHEN 'C' THEN 1 END) AS,

    COUNT(CASE Z.MDA_EPAF_STATUS WHEN 'A' THEN 1 END) APPROVED,

    AS COUNT(CASE Z.MDA_EPAF_STATUS WHEN 'P' THEN 1 END) PENDING

    OF PS_MDA_EPAF_RQST Z.

    B PS_MDA_EMPLOYEES,

    PS_MDA_EPAF_WFXREF T

    WHERE MDA_EPAF_STATUS ('C', 'A', 'P')

    AND T.ORIGINATORID = Z.USERID

    AND Z.USERID = B.EMPLID

    AND Z.TRANSACTION_NBR = T.TRANSACTION_NBR

    B.MDA_LEV3_DEPT_NAME GROUP

    ORDER BY B.MDA_LEV3_DEPT_NAME

    Concerning

    Etbin

  • I upgraded lightroom 4 to 6 Lightroom and find collections does not because miss me the collections in lightroom 6 but in lightroom 4. I have installed the latest updates for lightroom 6 where the question is: "can I uninstall then reinstalling lig"

    I upgraded lightroom 4 to lightroom 6 and find collections does not because it lacks collections in lightroom 6 present but in lightroom 4 which is where I created them. I also have a missing bit of the last folders created, but scattered pictures but when I select all records for all the photos. I have installed the latest updates for lightroom 6 where is my question: ' can I uninstall Lightroom 6 followed by reinstall lightroom 6 to retrieve collections and put the pictures in the correct folders as they are in Lightroom 4? Given that I have updated online on my desktop windows 7, how to find my license if necessary? Thanks for your reply.

    See if this link helps:

    https://helpx.Adobe.com/Lightroom/KB/catalog-FAQ-Lightroom.html

  • Where paragraph question

    I need to watch the updates for 10 people. In Where clause I would write how the 10 people in it?


    SELECT last_update_by, last_update_date, sample_column

    TABLE

    WHERE last_update_date > = October 1, 2013 "and last_update_by ="person1"


    When I run it as above is very good and returns a result set. Once I added in other people in one of the ways below (more ways I tried, but didn't list here), whether errors or returns 0 results.


    Possibilities:


    WHERE last_update_date > = October 1, 2013 "and last_update_by =" person1 "person2" channels3 "etc."


    WHERE last_update_date > = October 1, 2013 "and last_update_by ="Person1, person2, channels3"etc."


    WHERE last_update_date > = October 1, 2013 "and last_update_by ="person1"and"person2"and"channels3"etc.


    WHERE last_update_date > = October 1, 2013 "and last_update_by ="person1"and"
    last_update_by = "person2" and

    last_update_by = "channels3".


    I'm sending this question like? Several _? ___ my Where clause? By (?) I am referring to multiple people.


    WARNING: fairly new to Oracle. Please focus on the solution to the issue rather than taking share how the question asked, unless the question was raised of how messed up it is not understandable. I am looking for constructive feedback that will help me I hope to find a solution. Thank you very much for the help.

    Hello

    Whenever you have a problem, please post a small example of data (CREATE TABLE and INSERT statements), so people who want to help you can recreate the problem and test their ideas.  Also post the results you want from this data, as well as an explanation of how you get these results from these data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    Without this information, people have to guess at what the problem really is, and guessing is not a very good way to solve the problems.

    My best guess is now that you want the operator IN, something like this:

    SELECT last_update_by, last_update_date, sample_column

    FROM table_x

    WHERE last_update_date > = TO_DATE (October 1, 2013 ', 'dd-mon-yyyy')

    AND last_update_by IN ("person1"

    , "person2".

    , "channels3".

    ...

    , "person10.

    )

    ;

    If last_update_date is a DATE column (what should be), so do not try to compare it to a string, such as October 1, 2013 "."  Compare the DATEs of other DATEs, such as the value returned by the TO_DATE function.

  • Query does not work on my iPad (was: media query question)

    I am a site for mobile/tablet/Office of coding and while my office and the iphone respond to the CSS, my ipad does not work. The changes that I do take the tablet in dreamweaver, but when they go live the ipad does not. Of course, my media query must be incorrect, but I can't understand the question. Any help is very appreciated.

    http://gbetza.mydomain.com/WebService2/test/KathrynFee/2014/profile.html

    Thank you.

    Yes.  It is inevitable because smart phones are getting bigger while tablets are smaller & more.  He's always going to be some crossover.   Think of it this way, when a Tablet is behaving as a mobile device, he takes over the mobile network.  When the shelf behaves more like a desktop computer, you need the layout of office.

    Similarly, a great smartphone in landscape mode is likely to resemble the layout of your tablet.

    See the FluidGrid example below:

    http://ALT-Web.com/FluidGrid/Fluid2.html

    Office = 4-col layout

    Tablet = 2-col layout

    Mobile = 1-col layout

    For purposes of illustration, I added a thick border of gold at the disposal of the Tablet only.

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) and (max-width: 768px) {}

    .gridContainer {width: 92%; border: 16px solid gold}

    }

    Nancy O.

  • Hierarchical query question (2)

    -Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production

    I'm putting together the two hierarchies. The first is the Center and the center of each parent to the top. The second attribute for each lower level is centre and it all the way to the top. Two hierarchies are in the same TABLE. An attribute if there is a Center in the ParentAttribId COLUMN (Conversely, the id COLUMN in this TABLE may be Centers.) Ultimately, the data will be listed record by record, with all parents in the form of columns.

    The query hierarchy Center works. The parent column records effort will be later, I worry about it right now. What I am struggling with is how to reach to get id from the Center in the attribute hierarchy. The fragment of the query (in the second ETC) trying to recover Center.Id, who is not in the scope, because it is included in the START WITH clause. But how to include in the FROM clause (to bring it within the scope), when it has nothing to do with the hierarchy (other than the starting point).

    < PRE >
    WITH
    Center_List_Hierarchy
    AS
    (
    SELECT
    -List 4) of the hierarchy of each Center, the level and the id.
    --
    -Note: by definition, CONNECT_BY_ROOT ModelId == ModelId ==: model.
    -ModelId returned to not use: model (in the outer query).
    CONNECT_BY_ROOT Id Center_Root,
    Center_Level LEVEL,
    ModelId model,
    ID
    Of
    ADMINEPO. PP_Respcenter
    CONNECT
    (--3) for each Center, go to (and understand) top, identified by Id = ParentId.
    ModelId = ModelId PRIOR
    AND Id = ParentId PRIOR
    AND PREREQUISITE Id & lt; & gt; ParentId PRIOR
    START BY
    (ModelId, Id)     IN
    (
    SELECT
    Attribute.ModelId,
    Attribute.Id
    Of
    ADMINEPO. PP_Respcenter_Name Center_Name,
    ADMINEPO. Attribute PP_AT_RespCenter
    WHERE
    (1) for this model, find the id of the list attribute.
    Center_Name.ModelId =: model
    AND Center_Name.LangId =: Name_Type_Default
    AND UPPER (Center_Name.NAME) = "LIST of CENTER.
    (--2) get all the centres associated with the attribute.
    AND Attribute.ModelId = Center_Name.ModelId
    AND Attribute.ParentAttribId = Center_Name.Id
    )
    ),
    Attribute_Hierarchy
    AS
    (
    SELECT
    (--4) for this Center, get each attribute with its hierarchy.
    Center.Id Center,
    CONNECT_BY_ROOT Id Attribute_Root,
    Attribute_Level LEVEL,
    ModelId model,
    ID
    Of
    ADMINEPO. PP_Respcenter
    CONNECT
    (--3) for each attribute, go to (and understand) top, identified by Id = ParentId.
    ModelId = ModelId PRIOR
    AND Id = ParentId PRIOR
    AND PREREQUISITE Id & lt; & gt; ParentId PRIOR
    START BY
    (ModelId, Id)     IN
    (
    SELECT
    Attribute.ModelId,
    Attribute.ParentAttribId
    Of
    Center_List_Hierarchy Center
    ADMINEPO. Attribute PP_AT_RespCenter
    WHERE
    (1) limit to the low level of the centres.
    Center.Center_Level = 1
    (--2) get his attributes.
    AND Attribute.ModelId = Center.Model
    AND Attribute.Id = Center.Id
    )
    )
    < / PRE >

    Hello

    Sorry, I don't understand.

    Whenever you have a problem, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all the tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    If you can show your problem using tables commonly available, such as scott.emp or hr.employees (which contains hierarcies) so you don't have to display the sample data; just results and explanations.

    Brian Tkatch wrote:
    ... What I am struggling with is how to reach to get id from the Center in the attribute hierarchy. The fragment of the query (in the second ETC) trying to recover Center.Id, who is not in the scope, because it is included in the START WITH clause.

    Isn't this Attribute_Root below?


    ...     Attribute_Hierarchy
    AS
    (
    SELECT
    (--4) for this Center, get each attribute with its hierarchy.
    Center.Id Center,
    CONNECT_BY_ROOT Id Attribute_Root,
    Attribute_Level LEVEL,
    ModelId model,
    ID
    Of...

  • Forms 6i update and query question

    Hello world
    I created a form in Forms 6i for the purpose of upgrading the existing data in my database and add data to empty columns in the same table. To create this form, I used the forms Assistant. In this form, I have 2 blocks of data that are associated as follows:
    BACK. SCHOOL_ID = UNO. SCHOOL_ID AND BACK. CLASS_ID = UNO. CLASS_ID. My first block is the main block called UNO and contains the following items: 1) teacher_id, grade 2), class_id) 3, 4) class_name. Teacher_id I bring when the user enters their credentials before entering the form. Class_id group has a record where I show all classes offered by this user. My second block called DOS is the retail block and have the following: 1) class_id,) 2 teacher_id, student_id) 3, 4.) grade_q1, 5) grade_q2, 6) semester_ex1, 7) grade_q3, 8) grade_q4, 9) semester_ex2, semester_1, 10)) 11 semester_2, 12) Final. Rules of forms to create a form that is used to update records in a table, says that the master block must be marked 'NO' in the option delete, insert and update. I have this as it should.
    My problem is that every user after the update a record, should continue to update other classes that belong to the same user, but when that user tries to go to class_id in the main block and run the search option by pressing F9, the user receives a message saying that this article is protected from editing, and the only way it works is that if you press on the button F7 to enter a query, then F8 to run this query, but the user must re-enter the new user.
    Is it possible to allow the user to find another class which belongs to the same user without having to retype your credentials again?

    Hello

    He or she has to do, is use the arrows keys to continue searching for the other classes.

    Why not use Lov...?

    Create KEY-LISTVAL trigger for the United Nations. CLASS_ID with code similar to the following:

    IF SHOW_LOV ('LOV_NAME') THEN  -- CLASS_LOV
            SET_BLOCK_PROPERTY ('DOS', DEFAULT_WHERE, 'CLASS_ID= ' || :UNO.CLASS_ID);
    
         GO_BLOCK ('DOS');
    
         EXECUTE_QUERY;
    
    ELSIF SHOW_LOV ('LOV_NAME') THEN  
    
    ......
    
    END IF;
     
    

    Re: Show_lov in Enter query mode does not.

    I hope this helps...

    Kind regards

    Abdetu...

  • Analytical query question

    Hi all
    I'm kinda new in the analytical work with query and have a moment difficult to achieve what I wanted.
    Here is the script to create the table and insert data.
    create table temp_ar1 (lkey NUMBER,
    amount NUMBER
    )
    ;
    Insert the Script-
    Insert into temp_ar1 values (1, -2.5);
    Insert into temp_ar1 values (1, -10);
    Insert into temp_ar1 values (1, 5);
    Insert into temp_ar1 values (2, 0);
    Insert into temp_ar1 values (2, -5);
    Insert into temp_ar1 values (2, 2);
    Insert into temp_ar1 values (2, -1);
    
    
    With main_table as 
    (
    select lkey,amount
          ,case when amount > 0 then
            'positive'
            else
            'negative'
            end col1
    from temp_ar1
    )
    ,Temp_A as
    (
    Select O.*
         ,Sum ( case when col1 = 'negative' then amount
                    else null
                    end ) Over (partition by col1,lkey) as sumcol1
                    
          ,Sum ( case when col1 = 'positive' then amount
                    else null
                    end ) Over (partition by col1,lkey) as sumcol2
                   
      from main_table  O
     )
      select  lkey,amount,col1,sumcol1,sumcol2
     from Temp_A order by lkey
    
          LKEY     AMOUNT COL1        SUMCOL1    SUMCOL2
    ---------- ---------- -------- ---------- ----------
             1          5 positive                     5
             1       -2.5 negative      -12.5
             1        -10 negative      -12.5
             2         -1 negative         -6
             2          2 positive                     2
             2          0 negative         -6
             2         -5 negative         -6
    
    7 rows selected.
    I'm trying to get the result that resembles
    lkey , sumcol1 , sumcol2 
    1       -12.5    5
    2       -6      2 
    So for each separate key, I should get only a line that has sumcol1 (which is the sum of a negative amount for this key) and
    sumcol2 (which is the sum of the positive amount for this key)

    Really appreciate your help on this matter.

    or, if you do not want to group by;

    SQL> with Temp_A as
      2  (
      3  select O.*
      4    ,sum ( case when amount < 0 then amount
      5                  else null
      6           end ) over (partition by lkey) as sumcol1
      7    ,sum ( case when amount > -1 then amount
      8                else null
      9           end ) over (partition by lkey) as sumcol2
     10    ,row_number() over (partition by lkey order by lkey) rn
     11    from temp_ar1  O
     12   )
     13  --
     14  select  lkey,sumcol1,sumcol2
     15  from Temp_A
     16  where rn = 1
     17  /
    
          LKEY    SUMCOL1    SUMCOL2
    ---------- ---------- ----------
             1      -12.5          5
             2         -6          2
    
  • Query question queries

    You can query a query created using queryNew()?

    When I try the following code, I get an error:

    "Query of queries syntax error.
    Meeting "qData. user. "Incorrect conditional expression, waiting for an a [as | null | between | in | comparison] condition."

    Code:

    < cfset qData = queryNew ("tool, user, community, fm01, fm02, fm03, fm04, fm05, fm06, fm07, fm08, fm09, fm10, fm11, fm12, fy") >
    < cfset temp = #queryAddRow (qData) # >
    < cfset temp = #querysetCell (qData, "tool", "empty") # >
    < cfset temp = #querysetCell (qData, "user", "Bob") # >

    < cfquery dbtype = "query" name = "chkQdata" >
    SELECT *.
    OF qData
    WHERE qData.user = 'Bob '.
    < / cfquery >

    I just tried the code you provided, adding two cfdump Tags (the first to empty the qData query and the second to empty the chkQdata query). Everything worked well exactly as you had it on Railo 3.1. It did not work (threw the error you got) on CF 8.0.1.

    If I deleted the WHERE clause of the query of chkQdata, it runs (no error) in CF 8.0.1.

    For that it works as you want in CF8, change the user column. This seems to be a keyword for CF8. While I didn't check exactly, if I change your original request to be 'empty' = tool, it runs. In addition, rename the column user usr generates the script runs correctly.

    Here is the code that I had to work in CF8 and Railo 3.1:

    SELECT *.

    OF qData

    WHERE the usr = "Bob."

Maybe you are looking for

  • need help with loading paper inkjet 4635

    I just bought a HP Office Jet 46635 and I can understand how to load the paper.   Can anyone help?

  • ASPIRE V5 - 571P touch screen replacement?

    Hello all, first post here but I have been a regular guest for a long time. This forum has been a great help! I searched through the forum for an answer, but the information was confusing and contradictory, so I thought I would ask here. The screen o

  • CHKDSK verifying indexes will not end

    When I start my computer, it says it needs check the drive for consistency. If I let him continue to get through files that controlled very well, but when he goes to a check of the index, it is about 12-15% and restarts the computer. I have read and

  • Sony EC310 USB OTG cable

    Quick simple question, is the above mentioned cable Z5c compatible? Thank you

  • Can I use regular telephone fax service?

    HP Photosmart 7510/eprintC311a Vista, 32-bit operating system Can I use my regular phone line to fax? I have comcast for e-mail and network service. Thank you