filtering "created the" date of the use of the SQL Expressions

Hello!

I want to build a filter for opportunities "created the" date.

I need to find out all the tender have been created at the point of lead more than 30 days ago.

I tried:

Created to date is not equal to, or is not:

(1) NOW()

(2) TimeStampAdd(SQL_TSI_DAY,-30,CURRENT_DATE NOW())



I get an error message.

Any help is appreciated.

smjohn had the correct idea.

If you use the historical subject of the Oppty box, use the following form:

TimeStampDiff (SQL_TSI_DAY, opportunity. "" Date of creation ", VALUEOF (NQ_SESSION. CURRENT_DT))<=>

If you can provide the exact error, it would be really useful.

Tags: Oracle

Similar Questions

  • create the SQL server programmatially data source

    Hello

    I would like to create a SQL server by programming in LabVIEW data source. The SQL server version that I used is from 2005. Can someone give some ideas? An example of code will be more favorable.

    Thank you

    Jane

    You can build the connection string you even.  The open function in the Toolbox of data base accepts a string as well (it's polymorphic) who can be the connection string.  This is the site I use to understand.  Is the most common things.  You may need to search Google more specific elements.

    http://www.ConnectionStrings.com/

    If you want to use the other option, someone has achieved a UDL editor in LabVIEW.  You can use this code to create your own UDL which can use the Open DB function:

    https://decibel.NI.com/content/docs/doc-18613

    I have used the above code, so can't comment on that.

  • Using a Variable to create the SQL query

    I need to create a "dynamic" update query I want to hold the meeting of the command in a variable and then refer to the query variable.

    Example:

    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    PBname = "Fred Flintstone",
    pbnumber = ' 555-555-1234. '
    pbage = 25
    where recnum = 24
    < / cfquery >

    I would like use this code:
    < cfset upst = "pbname ="Fred Flintstone", pbnumber =' 555-555-1234, pbage = 25" > ".
    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    #upst #.
    where recnum = 24
    < / cfquery >

    When I run the present, I get the following error message:
    Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] syntax error (missing operator) in query expression "Fred Flintstone".

    The SQL is:
    Update db_table_name set pbname = "Fred Flintstone", pbnumber = "555-555-1234", pbage = 25 where recnum = 24

    I know it's hard to see, but the "are 2' No 1". I have no idea why Coldfusion (or perhaps the ODBC driver?) puts the 2nd "in the command that causes the errors.

    Anyone can shed some light on this subject?

    While it is a simple example, my application is much more complex. I have over 50 fields in the update and based on changes to the values of the form, I may need to update all fields, some fields or NO fields.

    Can I use < cfif > test if all the fields have changed and if so, include them in the update command, but if NONE of the fields have changed, I update the command vacuum and therefore get an error. I want to avoid having to test changes twice (once to determine if I do the update and twice to perform the update).

    Thank you
    Mike.

    CF automatically escapes single quotes, he must preserve them


    Update db_table_name set
    #PreserveSingleQuotes (upst) #.
    where recnum = 24

    Ken

  • Cannot create the SQL query view object

    I'm having a lot of trouble to create a display of a SQL object.

    The query is as follows:

    Select CalBruker.BRUK_ID,
    CalBruker.EMAIL,
    CalBruker.ETTERNAVN,
    CalBruker.PASSORD,
    CalBruker.DATO_OPPRETTET,
    CalBruker.AKTIV,
    CalBruker.FORNAVN,
    CalBruker.ROLL_ROLL_ID,
    CalBruker.AVDE_AVDE_ID,
    CalRoller.NAVN,
    CalRoller.ROLL_ID,
    CalAvdelinger.NAVN AS NAVN1,
    CalAvdelinger.AVDE_ID,
    CalRoller.BESKRIVELSE,
    CalForlag.NAVN AS NAVN2,
    CalForlag.FORL_ID,
    CalAvdelinger.navn,
    CalForlag.navn AS BrukForlag,
    CalBruker.FRIEKS_PROSENT_GRENSE,
    CalBruker.LOGIN_NAVN
    Of CAL_BRUKER CalBruker, CAL_ROLLER CalRoller, CAL_AVDELINGER CalAvdelinger, CAL_FORLAG CalForlag
    Where CalBruker.ROLL_ROLL_ID = CalRoller.ROLL_ID AND CalBruker.AVDE_AVDE_ID = CalAvdelinger.AVDE_ID AND CalAvdelinger.FORL_FORL_ID = CalForlag.FORL_ID


    If I create a new view object and paste the SQL query in there, I get no automatic attribute mappings, and I can't understand how I'm supposed to map the attributes manually.

    Basically, I get a display without her attributes object.

    JDeveloper version 11.1.2.0

    Help if you give alias names in your columns?
    Something like:

    Select CalBruker.BRUK_ID BRUK_ID,
    EMAIL CalBruker.EMAIL,
    CalBruker.ETTERNAVN ETTERNAVN,
    ...

  • Is it necessary to keep the SQL Express database on vCenter?

    We have 6 guests, about 50 virtual machines, and SQL SERVER 2005 Express with two database databases: one for vCenter Update Manager.

    A few days ago, I have a problem with vSphere client, sometimes it works very slowly and sometimes it disconect vCenter.

    I have not found the reason for this behavior, but I suspect on sql. Sql databases has a low amount of space available, and the Task Manager sql service is about 900 MB (I guess that's the amount of RAM).

    I know that vmware would recommend max 5 guests and 50 virtual machines on sql express database, but I'm interesting what can do to increase the performance and space this database.

    I've already put the retention policy of database of 120 days and heard it is possible to purge old data, but I would like to hear some tips.

    Thank you

    You need not reinstall. Here (http://kb.vmware.com/kb/1028601) you have instructions in an example of migration of Enterprise Express - just point the DSN in the right place.

    Good luck!

    Marcelo Soares

  • How to create the SQL filter using XQuery FLWOR

    It is possible to create such a FLWOR expression that will be pushed down to SQL uses 'IN SQL"filtering?

    Assuming that the following function declaration:

    declare function tns:filterOnLevels($levels_as_xs:double+) {...

    I would like to create FLWOR expression that will be pushed down to this SQL:
    Select * from LEVELS where level IN ($levels)

    And tns:filterOnLevels (1,2,3) should run statement with ' where level IN (1,2,3). Type SQL filtering owe be lowered to SQL, because the execution of the query without constraint could train with too many records.

    This expression is possible to do in XQuery/XQSE or perhaps other extensions of fn - bea?

    I'm working on ODSI/Workshop 10.3 and Oracle 10 g.

    ODSI uses multiple GOLD instead of IN because optimizers (1) rewrite 'IN' as several GOLD anyway. and (2) OR is more general than 'IN,' since 'IN' can handle that (a) equal; and (b) a single multiple-column, while GOLD can also manipulate inequalities and several columns.

    In your example...

    declare function tns:filterOnLevels($levels_as_xs:double*) {(: use ' *' instead of '+' here, the optimizer will appreciate :))}

    for $l in $levels
    for $LEVELS in LEVELS()
    where $LEVELS/LEVEL = $l
    return
    $LEVEL

    If you look at the generated query plan, it should contain...

    SELECT = from LEVELS including LEVEL? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =? LEVEL or =?

    http://download.Oracle.com/docs/CD/E13162_01/ODSI/docs10gr3/XQuery/sql_pushdown.html#wp1134043

    Integrator of data services (the announcement of best practices).

  • Create the SQL DDL

    I need to transfer the table definition for tables of 10 with an average of 100 columns and indexes of one schema to another. What is the best way to generate the DDL for all these tables script?

    Thanks in advance!

    CREATE TABLE AS SELECT, however, will only get column definitions. He is going to get storage definitions, constraints, etc.

    Depending on the version of Oracle, you can use the DBMS_METADATA package to extract the DDL for the object and for all dependent objects (indexes, triggers, etc.). You also use import and export with FROMUSER and TOUSER and LINES clauses = N move only the definitions of one schema to another.

    Justin

  • Unable to create the SQL cluster shared disk

    I run two Dell Optiplex 360 ESXi 4.1 boxes in a test environment. Each has a sata drive installed. I also have another server running openfiler nas for iscsi. Two boxes of ESXi have Server 2008 32 bit installed. When I use initator iscsi on each box and plug the HDD I navigate to the cluster manager and add storage. It shows that it is very good, but as soon as I click ok I get the following error "unable to cluster 'Cluster 1 drive'. An error occurred when trying to set the resource 'disk 1' Cluster online. The cluster resource could not be brought online by the resource monitor. "Everyone knows this?


    Thank you

    Thomas

    Hello.

    The problem here is that Openfiler does not work with the Clustering of 2008.  You will need to find another solution to storage to use.  There is some info on this on the Openfiler forums and KB 1026596.

    Good luck!

  • Create the custom using elements of Page filter

    Hello

    I am trying to create a custom of sorts using page elements filter date picker.

    I want a report to have a where clause clause that says something like this:

    WHERE the table. Date >: P1_Date1

    AND the table. Date..: P1_Date2

    I need to do it this way because I need to have another area that displays the weighted average on the basis of 2 of the columns in this table set and I was unable to find a good way to make a weighted average using the interactive report options.

    The question just the other side is that I can not simply refer text buried user to a static source page element. I used radio groups before where the change they had an action "refresh and set the ' enabled me to make reference to them, but I don't see how to do something like this with the dates selectors.

    Any ideas on how I should go about it?

    EDIT:

    I've included an example of what I am trying to accomplish.

    Link- https://apex.oracle.com/pls/apex/f?p=30262:101:102700562633003:

    Username - TESTER

    PW - Tester

    JaReg wrote:

    Partitions tab person and date shows the page that I create. Currently the regional report and the Middle regions "Totaled" are implemented using the Radio top unit

    I want to do the same thing with the dates selectors, but previously I was unable to get the selectors of dates static to use in a sql requpete as I can with the Group of radio buttons.

    I created the page 586 as a copy of the original, with the following changes:

    1 has changed the Page Action sélection P586_PERSON point filter parameter of redirection and set the value None.

    2. added explicit Format mask to DD-MON-YYYY to filter items date picker.

    3. change the source of the region of results reports to:

    select
        *
    from
        scores s
    where
        s.person = :p586_person
    and s.scoredate between to_date(:p586_mindate, 'dd-mon-yyyy') and to_date(:p586_maxdate, 'dd-mon-yyyy')
    

    4. define the region of results reports the Items property of the Page to be sent to P586_PERSON, P586_MINDATE, P586_MAXDATE. What causes the values of these elements to present before a partial page refresh is performed on the region, making them available in session state when the content of the region is updated.

    5 created a dynamic change on the region of filter action:

    Event: Change

    Selection type: Region

    Region: Filters

    Action: Discount

    Fire on Page load: NO.

    Selection type: Region

    Region: Reports of results

    The region of IR report Score is now automatically updated each time that one of the elements in the region of filters are changed. That leaves the data region totaled. As a static content area may not be automatically updated by a dynamic action of PPR, and I'm not so sure as rules that must be used to apply filters to the values of the region. The same range filters in person and date should apply to the total values as are used in the report?

  • Cannot create the data store: the current licence or ESXi version prohibited the execution of the requested operation.

    using vicfg-nas I am unable to create/remove a datastore nfs on my lab running esxi 6 at home. Is this not supported? Listing them works well. I can create/delete data warehouses nfs using the client to vcenter very well, but it's a little embarrassing.

    I guess that the host is allowed with the free edition of hypervisor! One of the few restrictions of the free version of hypervisor is access to the API. In order to have "write access" (i.e. change things rather than the list of them) you must run the host in evaluation mode, or license (Essentials or better).

    André

  • How to skip the installation of SQL Express 2005 and using SQL Express 2008 instead?

    I have SQL Express 2008 is installed and you want to use instead of SQL Express 2005.

    How to configure the installation of Lookout as he ignores the installation of SQL Express 2005?

    Are there other measures that must be taken so that Lookout can work properly with SQL Express 2008?

    Thank you.

    OK - it worked.

    However, for 64-bit installations, I had to use the WOW of SQL Express 2008 versions, because, the Citadel is a 32-bit database and installation of 64-bit native versions would not allow an upgrade of the Citadel of Instance.

    Thank you.

  • Default presentation variable used in the SQL filter expression

    Hello
    I am trying to use a default value for a variable used in a sql expression in a filter presentation and could use assistance on why obiee stifles the syntax.

    I have a report prompted with a prompt on the name of the month (variable presentation framework - pres_month_name). The value read is used in a filter as an sql expression. The sql expression is a DEAL on the variable of presentation and its conversion to a number based on business rules.

    In the sql expression, I give you the presentation variable a default value for a variable of repository - rep_default_month_name. Repository variable is correct and no, based on business rules, returns an appropriate default month name.

    Now, if I hard code the value by default, there is no problem. Here is a sample of the filter:
    The month number less than or equal to * DEAL "{pres_month_name} {OCT}" WHEN "NOV" THEN 10 WHEN... END *.

    Notice that the variable of presentation is between single quotes, because this is an area of character. Once more, it works fine, but I don't want to hardcode the default, I want it based on the variable repository, therefore:

    The month number less than or equal to * DEAL '{pres_month_name} {ValueOf (rep_default_month_name)}' WHEN 'NOV' THEN 10 WHEN... END *.

    By having this syntax for default of the variable of the presentation, I receive a message from the incorrect values in a filter.

    This report is not only used on a dashboard, but used in a briefing book as well. Whenever a briefing book is updated, by default the presentation variable is used, because obviously, the presentation is not available in a briefing, and I don't want to use a hard-coded value.

    I could duplicate the report and adjust the sql to not use the presentation variable, but always use the repository variable that returns a month by default, but I would be duplication of effort and I have to do this on several requests.

    Thanks for the help!

    Try this syntax described in the blog of Shiva that follows...

    http://shivabizint.WordPress.com/2008/10/02/Oracle-BI-EE-variables-overview/

  • 8.5 PT new installtion, script ALTER was mistakenly created the Oracle 10 g.

    Greetings!

    I try to install HRMS 9.1 PT 5.0 on Oracle 10.2.0.1. I think I followed the detailed installation steps. As part of storeddl.dms, I performed only ddlora.dms only remaining related databases commented lines. The next step after that CHANGE tables after you import the PPLTLS84CUR project.

    When I created the SQL ALTER script... I chose option CHANGE BY the specified Table name. Problem in the script is the same for LONG columns it is also to create statement INSERT SELECT, which is not supported by ORACLE for columns LONG. in reality, it means create a snippet of PL/SQL, wherever he sees a table with a column LONG. On the contrary, it is creating simple INSERT SELECT. Thus the process of Alter generates errors, at the end I would have given in these tables with long columns BECZ the steps generation sequence...
    #1 create temp, #2 effective insertion in temp, real Drop #3, #4 Temp rename real. given that false #2 in the temp wouldn't #3 drops original that includes lines, lines, #4 renames the empty table to the original table...

    Is there any song that I missed... Thanks in advance...

    Published by: Rama R Dandana on June 11, 2010 12:26

    So can I ignore any task?

    Yeap.

    Nicolas.

  • After transfer from XP to Win7 I don't see on the Outlook Express folder

    I am convert Outlook Express on Windows XP running on Thunderbird running on Windows 7. I installed Thunderbird on my XP computer and took the import of Outlook Express which created the Outlook Express import file that does contain not all emails that I wanted to remember. I installed Thunderbird on my Windows 7 computer and copied the Windows XP profile folder. Because profile names were different, I changed the value in the profile.ini file as well as in the parameter settings in Thunderbird to match this copied value. However, I don't see the folder Outlook Express from Thunderbird. If I navigate under the profile folder structure I see the Outlook Express import records. Any help in accessing these data would be useful. Since I was still all the data on my XP machine I can if necessary reinstall Thunderbird.

    Eureka! I tried a finish and it worked. Tools > import. Then I selected mail only > next > Outlook Express and then I sailed to the Outlook Express folder already under the folder Thunderbird Mail and even if he says nothing has been imported the structure of this file and I can see and access emails from Outlook Express.

  • the sql XML query report conversion - sound the alarm

    Hi all

    I have a custom report based on an sql query (method-sql * more) I need to convert this report in XML. I followed these steps
    I have generated the xml file by opening this request in the rdf generator (file > > generate > > xml)
    I open this XML file in word and do the rest of the treatment
    Copy the original simultaneous program (copy to option in set the window)
    changed the short name and the type of output as XML (the same method and executable retention)
    Add newly build it program at thr group asks even the original program in conc
    now, if I run this program it will show a warning when I checked the journal (Journal of the conc program manager administer) it displays following error
    > > caused by: oracle.xdo.parser.v2.XMLParseException: beginning of the element root waited.

    When I checked the XML code (from diagnostics) I was following the text by giving parameters
    > > whitespace is not allowed at this location. Error processing resource
    > > Semi colon character was expected. Error processing resource

    I checked the preview while I was preparing the model in word, it was a weather display data
    by giving the same parameters for which I generated the XML code, it shows the same warning in apps
    The log file also has the data...

    I use reports 6i, XML 5.6.2 and apps 11.5.10.2

    kindly help me to solve this

    Thanks in advance

    Shivdeep Singh

    first question - did you just change the output format of your concurrent request (with the executable, type SQL * more) in XML format and add a template to it?

    If this is the case, I'm not surprised, you get an error. You must ensure that you generate actual XML output. If you run the query and then click on the "Diagnostics" button, you will see a button saying 'display XML '. Click on this to see what you get. If you get an error, then it is not correct XML.

    This is the case, you have several options:

    1. create a data model and use it to create the XML file
    2 use the XML features in your query to generate XML (never tried so cannot guarantee this will work)
    3. use file rdf reports to generate the XML file
    4 generate the XML of PL/SQL file

    I suggest that you try option 2 first of all it should be pretty fast & easy to test, then use option 1 as the best solution if it does not work.

    Good luck!

Maybe you are looking for

  • my iphone need help doesent work!

    my iphone need help doesent work! 5 minutes ago my iphone 4S felt on the ground and now it doesent start but I can still hear the sound of loading until I can do? PS: Sorry for my bad English, I'm from the Germany

  • Why would I install Thunderbird instead of Firefox?

    Currently using Win Live Mail on this computer - quite satisfied with its performance. Have used Thunderbird on another computer, which was installed by my Tech Guru without explanation as to why Thunderbird, Firefox no.

  • Where can I get the adapter for Satellite Pro A120

    Hello Anyone know where I can get a dc for a Satellite Pro A120 Jack.These seem to be quite rare models. I have spent hours searching if google and portions of websites, but just can't locate it. Anyone?

  • How to remove "carried out by" in imovie 10

    I created a movie in imovie 10 and the last picture is to put my name after "directed by."  I don't want any credit.  It is a film about my best friend who has just died and I'm going to play service.  credits are not wanted in any mode.  does anyone

  • Dell Support Center has stopped working

    I get up a pop window saying that my DellSupportCenter has stopped working. Search for recovery and then goes. I wonder if this is due to my warranty expiring and he did several months ago and this problem started recently.