How to avoid using several golds?

I have a query that returns a number where I have to change some text if this number fits my criteria... the code looks like this (just an example)

< name cfquery = "getNumber" datasource = "#Application.dsn #" >
Select SomeNumber
Users
Where blah = blah
< / cfquery >

Is there a cleaner way to do this? (see code below)

Thanks for your help.

Set the values you want to add to a list, then do this:


Found!

Did not find it

Tags: ColdFusion

Similar Questions

  • How to avoid using MAX (CASE... WHEN) in a subquery

    Hi everyone, for all of you gurus plsql, I have a question:

    SELECT a.id,

    B.SID,

    b.Name,

    ....

    (CASE WHEN sub_c.value_c = '2015' AND a.code > = 1111 'output value is' | a.value_a ELSE 'Random value' END) output

    FROM table_a a,.

    Table_B b,

    ...

    (SELECT C.a_id

    MAX (CASE WHEN c.code <>'A'

    THEN c.value

    Value_c END)

    OF table_c

    GROUP BY c.a_id

    ) sub_c

    WHERE a.id = b.a_id

    AND a.id = sub_c.a_id (+)

    If they all want table_c a_id, and WHEN the condition is not convinced that they still want this allowance a_id even with null for value_c.

    I tried to outline the most important parts, so the question is: is there a way to avoid using this construction MAX - CASE somewhat expedite this request?

    Thanks for a ton to all those who have taken need to watch this!

    You can move the CASE WHEN c.code <> 'A' predicate in the where clause table_c. Index c.code, then use

    Max (c.value)...

    where c.code <> "A".

    If you have a lot of 'A' values that can speed things up.

  • How to avoid using fractions of EPUB available pixels fixed.

    Apple said to avoid the use of fractional pixels for letter spacing, font size and text placement. Since then, sometimes in the conversion to html and css formatting. Is there a way I can control this?

    Someone had their book rejected because of this?

    Thank you!

    It is perhaps not the droids you are looking for, but a way to check after the fact would be to create a copy of your epub, rename the epub to [epubnam] .zip (change .epub to .zip) and then find the .0px, .1px, .2px generated css file... (if you're handy with regular expressions, you could do a little better by looking for------.) ([0-9] * px, I checked it quickly to regexpal.com, but more robust tests may be in order)

    If you find a fractional value, you could "fix" no closest fractional value which is not trash your design and repackage the epub.

    FWIW, I did a quick scan through my epub css and can't find any decimal values.

  • How to avoid using oracle.jdbc.driver.OracleConnection

    I am new to Java, but recently, I have a project on support.

    Problem:

    solution worked on the 1.4 jvm, now on 1.7.

    Respectively, the oracle.jdbc.driver.OracleConnection class has been used.

    Now, I need class oracle.jdbc.OracleConnection to use CLOB.createTemporary (), but... I can't.

    According to the docs, just replace in the code and config files a declaration of the class on another. But I replaced all in all the files of configuration of no. and anyway, no there wasn't that oracle.jdbc.driver.OracleConnection was created. (there is no explicit declaration of the type of connection in the code, everything is configured in the config files)

    Project uses marven, mybatis - 3.1.1. Database: oracle 9

    Driver: ojdbc14 - 9.2.0.5.jar contains two classes: the oracle.jdbc.driver.OracleConnection (for backward compatibility) and oracle.jdbc.OracleConnection.

    The question is what do I need to use a second instead of the first.

    Maybe there are a few java cache? I do not know...

    Everyone knows?

    I solved the problem!

    This thread helped me: https://forums.oracle.com/thread/556426 ("I have to use classes12.zip for this work.")

    The main problem was the jdbc driver - I tried all the ones I found on the page of download of oracle and the only factor that does the job was classes12.jar (Oracle Database 10g Release 2 (10.2.0.1.0)). I replaced it in 'ORACLE_HOME\jdbc\lib\' and 'apache-tomcat\lib\.

    Each driver has its own bugs, and I also did different things, so I can't say that any replacement driver is enough. Te I changed the time zone database, run the tzupdater, vm set param - Duser.timezone = ""-07:00 ", may be something else."

    Thank you very much for the answer so detailed!

  • How to avoid using the library native ttJdbcCS when connecting to remote host?

    I'm testing the Java program with the product that limits the use of native libraries.
    I use the 'client' mode to connect to TimesTen DB (which is done by using the plug, not the shared memory).

    It seems that even in client mode TimesTen JDBC driver calls the library native ttJdbcCS when doing remote queries.
    Why it does not use Java sockets? What is necessary for the native library?
    Is it possible to eliminate the use of native libraries in client mode of the JDBC TimesTen driver somehow?

    I fear that it is not possible to eliminate the use of native code for TimesTen libraries. Both direct drivers and customer are drivers of type 1 (JDBC/ODBC bridge). In both cases the JDBC driver Java code called NYI optimization library ttJdbc/ttJdbcCS and that the library in the direct or client ODBC driver (also called native code).

    If you want to use TimesTen then you must be able to allow the use of these native code libraries. The only other alternative is to implement your own client/server mehcanism such that you can put your own component 'server' on the machine running TimesTen and then use pure Java to communicate with this component of the 'customer '. Generally, it is however a lot of work.

    Chris

  • How to avoid using the 'form' tag

    Hi all

    Is it possible to call a form of my FORMS_PATH site from the browser without using the format of tag in the URL?

    for example, this is my URL to call the form master.fmx--> http:// < machine >: < port >/forms/frmservlet? form = master.fmx, is what I want to call it without using the format of tag after the? in the URL.

    Thank you.

    You can configure your formsweb.cfg file to include a section for your application.

    Lets say you have a section called myApp in the formsweb.cfg file,
    Then you can use http:/.../forms/frmservlet?config=myApp to call the application

    Note: If ssoMode = true in the related section of the formsweb.cfg for the MyApp, then the signature will only kick in the first

    You can use a specific environment file (a copy of the default.env file to your app) and then specify this environment file in the section of the formsweb.cfg file MyApp.

    [myApp]
    envFile = myApp.env
    ssoMode = true
    form = MyAppFirstForm
    pageTitle = MyApp
    ...

    Hope this is useful

  • Re: Qosmio G50-10 t: How can I use the Quad - Core CPU Toshiba HD?

    Hello.

    And how you can use several Toshiba Quad Core HD processor with four RISC SIMD 128-bit processors in the Qosmio G50-10 t except that: enables support for H.264 encoders / HD / MPEG2 decoders, with functions for convert, transcode, navigate using the face (Face Navigation) detection and control actions. INJURY is not used!

    Maybe someone knows some software sales in which it could be used.

    Hello

    This Quad Core CPU is an additional processor that is not always in use.
    It was designed in the order using the main processor in some of the media process.
    For example, the Quad Core CPU works during the encoding or decoding of certain video standards. If you want to change it the standard of the video, the Quad Core CPU helps you complete this quick procedure.

    In addition, it improves the quality of the video (not HD). So, theoretically, you can view the videos in HD quality.
    Of course, you won't get the same quality as a film that has been recorded in full HD, but the Quad Core helps you improve the 576i pictures.

  • I downloaded Safari 10 and now every page that uses Java asks me to activate or not. How to avoid this new feature? I have problems to access my bank account.

    I downloaded Safari 10 and now every page that uses Java asks me to activate or not. How to avoid this new feature? I have problems to access my bank account.

    I think they mean JavaScript.

    In your Safari menu bar, click Safari > Preferences and then select the Security tab, and then select: Enable JavaScript

  • I bought an iphone used several years ago... hen his recently updated with the new iOS 7.1.2 it was locked with the previous owners account.how can I use my iphone is back with my apple and pass

    I bought an iphone used several years ago... When updating with the new iOS 7.1.2 recently, he was locked with previous apple owners account.

    its now useless. I didn't know all these crappy activation locks and all.now I have no idea

    How can I find my iphone is off and use my phone back

    iphone 4 32 gb

  • Print last page blank, how to avoid the last page to print, using NiReport

    Hi all

    I use NIReport to generate report/Print.

    I have problem

    I have a page to print,

    I wrote until the last line

    Problem is that NEITHER report adds a new, blank page, which is not necessary.

    This problem n, t occur when we write in the last row or left white.

    Note: I also have a header and footer details

    It will be printed on the blank page.

    When NIReport understand specific text is last line of the page, then NIReport automatically add the new page in the template.

    How to avoid printing the last white page in NIReport?

    Thank you

    Mukesh Kumar

    Just a guess: you use AppendLine? If so, you can try to move on AppendText to write the line, adding of newline as the first call when you need to start a new line. AppendLine adds a new line to the report after printing the line, and this can generate a blank page if you write to the last line on the page.

  • How can I find several duplicate files and remove the using Windows Explorer

    Somehow I see several duplicate on my computer files.  I can tell when they arrived as all the duplicate files ' _10-Mar-15_1. ' " However, I don't know how they arrived.  I think that Google Drive was the culprit, but I can't be sure.

    How we (me) use Windows Explorer to find all files with "_10-Mar-15_1." and delete them all?

    I am using Windows 7 64 bit

    Thank you!!!

    Windows Explorer can do no such thing. To remove recursively a certain file is easy - see below. To identify duplicates and remove some of them is much more difficult, because:

    • Are two files duplicates because
      -They have the same name?
      -They are the same size?
      -They have the same file date?
      -They have the same content?
      -Everything above?
    • When they are, which ones should be deleted?
      -The oldest?
      -The most recent?
      -The batch?

    Here's how to remove a certain file to recursively. Assume that they are in the folder "C:\Users\BHunter\Documents".

    1. Click the start planet.
    2. Type cmd. exe and press ENTER.
    3. Enter the following command and press ENTER:
      dir/s/b/p 'C:\Users\BHunter\Documents\_10-Mar-15_1 '.
      This will show you all the files whose name above.
    4. del /s /q "C:\Users\BHunter\Documents\_10-Mar-15_1."
      This will permanently delete all files with the name above. You cannot restore them.
  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • How OAM authentication custom plugins using several simultaneous requests

    Custom authentication plug-ins are loaded by the access server.
    I want to understand how they are used or how they work, when several concurrent application start flowing.

    Thank you.

    The access server is a multi-threaded application. The function 'Fn' of the plugin is executed in each of the thread of the access server.

  • How to avoid CMO reinstall by OPatch when you use EM Harvester?

    Running OEM Grid Control 11 g (11.1.0.1.1GC PSU) on a database of repository infrastructure (11.2.0.1.2). Previously the CMO had installed in every ORACLE_HOME in our environment. I removed all of the existing CMO facilities and Instrumentation of the CMO in each database.

    I then installed COM (10.3.3.2.2) in the OMS_HOME in order to start using the harvester EM for all the additions of configuration rather than several CMO installs. It went well, and I started to see targets MOS indicating GC as the source of data rather than the CMO. Good so far.

    I then installed PSU 11.2.0.1.3 to the database of repository infrastructure. During the installation of the hotfix, OPatch reinstalled CMO in the ORACLE_HOME without my knowledge database. This caused some targets to reappear in MOS with CMO as a data source. At this point, I had two sets of COM in running processes. I confirmed that the patch caused the CMO reinstall verifying opatch newspapers of $ORACLE_HOME/cfgtoollogs, where I can see the new CMO facility occur.

    I then installed patch 9431704 to the MW_HOME/oracle_common ORACLE_HOME to resolve the target "FMW Welcome Page Application" showing down in the matter of the grid control. The patch went well, but new OPatch reinstalled CMO, this time to MW_HOME/oracle_common and MW_HOME/utils. So at this point, I had four sets of COM in the process running, which caused several duplicate targets appear in MOS, with CMO as a data source. Confirmed once again that the session led to the new CMO OPatch installs by reviewing logs of.

    I want to exclusively use the EM Harvester to download details of MOS. configuration by the white paper in notes 848962.1 , "The only prerequisites for the use of a system EMGC collect and download configuration to Oracle Support data are the EMGC WHO must be at least version 10.2.0.5 and there must be a configured instance COM (and running in connected mode) home of the Oracle of SGO."

    This leads to my question. How can I continue to patch SGD, the repository database and databases target, while preventing the OPatch reinstall CMO in each ORACLE_HOME finds it?

    I understand the comment of this white paper to signify that I need only CMO in the OMS_HOME and should never run out of any other ORACLE_HOMEs in our environment. Should I simply allow OPatch install COM anywhere he wants, and then interrupt them by running "$ORACLE_HOME/bin/ccr/emCCR hold? Is there a flag I can include executing "applicable opatch" to tell it jump CMO facility?

    I don't think that ORO sends data to MOS if it is in offline mode. Doesn't seem logical to me.
    Note: how to create a COM file response to Installation in silent mode Opatch [966023.1 ID] how you can use a response CMO file.

    Eric

  • How can I remove the page options for my home pages when I use several home pages?

    I used several pages to my homepage with FireFox for a long time. I've recently updated my homepage as always - "use current pages" - now the firefox open the options page and which ones I want. It is not listed in the list of pages to open as home pages, but it nevertheless opens. I can't get rid of it because I have to open the options page to set the home pages.

    When you used the "use current pages" he adds all the tabs in the window that you were. Just remove the subject: preferences list in the box.

Maybe you are looking for