Using as operator of attributes in the select command

Hello
I have an array with the attributes DID, PNO, AGE, DEPARTMENT, DATEOFADM, FRESH, ADDRESS, DOD

I want to display records with the DOD and DATEOFADM months even. How can I do so? I also want to do the same with the dates in the 2 attributes.

Thank you

Published by: 1004111 on May 23, 2013 01:51

I want to display records with the DOD and DATEOFADM months even. How can I do so?

You can use the EXTRACT to extract a column date day, month or year.

where extract(month from dateofadm) = extract(month from dod)

I also want to do the same with the dates in the 2 attributes.

Do you mean the DAY?

where extract(day from dateofadm) = extract(day from dod)

Tags: Database

Similar Questions

  • Insert variable/attribute in the SSH command?

    Does anyone know how to insert a variable/attribute in a SSH command for execution on a remote machine?

    Not directly with the workflow stock 'run SSH command '. If you look at the script of this workflow code, you will see that the string entered by the user entry control is passed directly to the run command.

    What you can try is to duplicate this workflow and add code to "twist" the input command string before passing it for execution. For example, you can consider a nice syntax placeholder for names of attribute such as % attr, you can replace it with the actual attribute name and then move the chain gave rise to eval().

    Therefore, if the user enters the following command string:

    some sample % attr1% command

    You need to convert to something like expression concatenating string to the following address (note the single quotes)

    "some examples" attr1 + "order."

    When you pass this expression to eval(), evaluate the real value of the string attribute attr1 and you'll get his command of actual string to run as SSH command.

  • drop-down list and using the selected command to select the fill element

    Hi I have a menu drop down being populated by a mysql table, the drop-down list works fine with reading and updating, but I wish I had the mysql stored id to select from the drop-down list on the edit page.

    I have the following code, but I can't point to be selected?  I think it is because I have not coded if statement properly.

    < select name = "stand_id" >
    <? PHP
    $stand_set = getall_stands();
    While ($stands = mysql_fetch_array ($stand_set)) {? >}
    <? PHP if (isset($_POST['stand_id']) == $url_show ['stand_id']) echo ' selected = "selected".
    « ' ; ? >
    "< option value =" <? PHP echo $stands ["stand_id"];? ' > '.

    > <? PHP echo $stands ["stand_descrip"];? > < / option >
    <? PHP}? > < / select >

    Any help would be really appreciated

    Horsemad Gilly wrote:

    the argument would be compared with $url_show ["stand_id"], ["stand_id"] $stands and then selecting the $stands ["stand_id"]

    selected = "selected".

  • Toggle the button toolbar on the selection of rows in table

    Hi all
    I have a problem with activation and deactivation of the toolbar button when the table row is selected... Here's the deal:

    I have a toolbar button named "activate" I want to activate only when the selected table line has say for example 'description' field is not empty. I'm looking for a solution so that I can say declaratively:

    < disabled af:commandToolbarButton = "#{I'M looking FOR THIS CASE =="} "/ >"

    I tried using #{bindings.activateAttributeFromSameIterator} thinking that when the selection on the row in the table is changed, the change is reflected also and I will get the result, but without success (that link was nothing)... I also updated partialTriggers this toolbar button.


    I would appreciate if anyone can shed some light on this...

    Thank you

    Hello

    create a binding of the attributeValue to the descriptor field using the "Bindings" tab in the Visual Editor. In the connections section, click the Green plus icon, choose generic and attributeValue Bindings are included. Select the iterator used by the table and select the attribute "descriptor" (the name of the attribute that you mentioned). Then change

    TO

    Frank

  • Multiple selection query to view the selected line

    Hi all

    I have a requirements make multiple selection of a region in the table and need to display the values of the selected line in the page.

    so I'm able to multiple selection of the table, but all when trying to print the values, it is still only printing selected values of line one not several.

    the code I use to print several rows below the selected values.

    for (int i = 0; i < fetchedRowCount; i ++) {}
    Rowi ABCEOViewRowImpl =
    (ABEOViewRowImpl) selectIter.getRowAtRangeIndex (i);

    If (rowi! = null) {}
    If (Y".equals (rowi.getReprint ())) {" "}
    for (int j = 0; j < fetchedRowCount; j ++) {}
    String srnum = rowi.getSerialNumber ();

    throw new OAException ("after Srno" +)
    srnum,
    OAException.INFORMATION);
    }
    }
    }
    }

    where fetchedrowcount - no lines in the region of the table
    Here srnum is printing only one value.

    Please guide me where to check this problem.

    Thank you
    Deb

    Hi Deb,

    Unable to get the requirement. Why the second for loop... ?

    Still, the OAException must be thrown exception during the first use that meets the condition.

    Please try to use "srnum" in tabular or use it to add all the required values in the for loop and finally throw the exception.

    Concerning
    Sanujeet

  • Action written in CS4 does not work properly in items 11 - contexts the 'selective' layer

    I created an action with the help of Adobe Photoshop CS4, and that it works in CS4.  When I save and load the action in 11 elements, there is a problem with the selective color layer.  The selective color layer is revealed in the stack of layers with the message whereas it cannot be edited b/c it was created in the full version of Photoshop. However, the layer itself has no changes in color/inside.

    In Photoshop, the selective color layer makes the photo look pink.  When I run the action in Elements11, selective color layer doing absolutely nothing to the photo.  I don't have the turned eye "on" to display the layer, and it is on the correct merge options & opacity (normal, 100%).

    If I run the action in Photoshop, save the file with all the layers created by the action and reopen the file in 11 elements, THEN the selective color layer shows its correct pink color.  But when I run the action as an autonomous action in Elements11, is not.

    Can anyone offer help as to why this is happening? Is there something special I need to do to make the action work in 11 elements? My understanding is that he must RUN and create the layers correctly, although some of them cannot be changed in Elements11. However, as it is, is not creating them with the appropriate color.

    Thank you in advance for your help!

    selective color layer is not supported in PSE11. So any stage to edit would result in the error message saying that the layer can not be displayed.

    For your case, I believe that the recorded action starts by creating a selective correction blank adjustment layer and then tries to change and thus translates into a mistake.

    Even the effort to apply the effect by using result of adjustments of image by mistake as the "selective" command is not available.

    I would try to find another way to apply the effect, but I don't know if there is a way to apply an adjustment layer that is not supported by PES

  • Referring to the selected value of a Radio of a Select

    Hi guys,.

    I know it's may be a relatively simple matter, but I have browsed this forum and other articles and so far have resulted in an approach to my questions, but it seems that a more simple method can exist.

    Problem:

    1. I want to use a switch to display a particular facet based on the selected value to select a Radio
    2. I have defined literals for each selected option.
    3. my research led me to believe that I would need to create a support bean to refer to the value. (I have a similar requirement of reference / evaluate the string of text in a text input).
    4. is there a simpler way? All the groovy expressions that I can see reference variables (links PageFlowScope or data).

    In summary, I think I can achieve with a carob gum support, however I'm looking for a simpler method.

    Can anyone offer please an alternative approach or the confirmation of my thought.

    See you soon,.

    Simo

    Sisor

    Here is the code snippet without using any medium bean to store the selected value:

    
    
        
        
    
    
        
         
             
         
         
             
         
         
             
         
        
    
    
    

    Jean Lou

  • Transient attribute based on the selected query by using a function call

    Hello

    Post version is 11.1.1.7.0 JDeveloper.

    I'm not able to get the following work properly;

    1. I have a scenario header / detail.
    2. Calculate a value for each row returned detail that I find. This calculation is done using an existing database to function.
    3. The function requires 3 input parameters.
    4. Two of these parameters can be retrieved in the detail row and one is a value which is on the header.
    5. I created a transient attribute on the object of the detail view and selected the following properties of the 2 attribute;
      1. Mapped to the column or SQL
      2. Selected in SQL
    6. I entered the following SQL Expression;
      1. function_name (DetailTableAlias.value1, DetailTableAlias.value2, ViewLinkName.value3)
    7. Running AOS that contains the objects of view header / detail, I encounter a SQL error which indicates that ViewLinkName.value3 is an invalid identifier.
      1. I can understand why this error occurs.
    8. If I change the ViewLinkName.value3 to a literal value, the error will not occur.

    So, my question is how can I pass the third parameter to the transitional attribute database function call as the value literal and not as a reference to one, missing attachments header table, column?

    Concerning

    Leon.

    Hi Leon

    Have you explored solve this by an inline SQL query to derive the 3rd parameter of the function? In other words, the problem in SQL instead of ADF.

    DMI

  • How to use between operator in Disqualification without using the script processor?

    Hello Experts,

    How to use between operator in Disqualification? for example phonenumberLength between 7 and 10. I don't want to use the script processor? Also how to reproduce the SWITCH statement Disqualification CASE?

    Thank you

    Konate

    1 Add a processor 'check the length.

    2. connect the transformer and open the configuration dialog box

    3. in the tab 'Attributes' select your attribute of telephone number as the "field Check.

    4. in the tab "Options", enter "7-15"in the option 'number of valid characters.

    5. run the process.

    a. accounts with [included] a character length 7-15 phone numbers out of the release of "valid".

    b. records with a length of character <7 or="">15 phone numbers out of the release of "Invalid character count.

    Note: the processor also adds a 'LengthValid' flag attribute which you may also branch on [with the values "Y" and "NC" for both scenarios above]. See Library of processor of the online help for more information.

    Thank you

    Nick

  • Selection of Inspection based on the attributes of the image

    I'm processing the stored images and must choose an inspection based on attributes of the image as the name and the size (length in pixels).

    Currently, I do all this in only one inspection, but since I'm inspecting several product families (differentiated my name of the image), and several sizes for each family, my inspection algorithm becomes very difficult to manage, so I would like to create a supervisor application that can determine which family of products and the size I'm looking, and then run the corresponding inspection and then do some data sharing and saving the image and loop back to the next image.

    I played with the ability to select Inspection in VBAI, but since I'm not on the material or communications to select the inspection, I can't seem to find a viable solution, ideally, I would like to go through the step of configuration once, then jump to the state diagram for the treatment of the initial image (determine the product family and size) then go to 'Select Inspection' and run the corresponding inspection.  This is where I'm stuck, IE., how to trigger the jump to select inspection in the state diagram?  Some people I have consulted so far say: you can't do that!  Anyone beg to differ?

    If I can't access select Inspection of state diagram, then plan B is to use the LabView API and make the principal contractor in LabView, it is where I need to go?

    Thank you

    Eric

    If you have the indicator Activate Product select enabled, select product State will run automatically after the State inspect goes to terminal completion. You can use a VI select LabVIEW Run in the State of product for your logic and move to the next round to load. With Vision Builder AI 2010, this path can be considered to be the real path to the inspection (inspection select dynamically run then) so you do not preconfigure a lookup table of inspections to run with values (it was the previous way of doing and it does not allow to dynamically load new inspections that weren't in the preconfigured table). Don't know how it works with your system, but using the LabVIEW API is an alternative that would give you better control and. You might even have a stage run a LV VI specify the control to use on an iteration in Prioduct selection state and inspection of logging of data/images to use later, but due to the opening and closing of the inspections overload new inspections may make having an inspection separate for logging of common data/images does not not your needs timing.

    Hope this helps,

    Brad

  • Do I have to select delete using Disk Clean-Up to correct the winsxs problem of scanning.

    I know this question was asked by many and I tried different patches. (File Checker system, the disk cleanup - but do not know what that should be deleted that it can fix) Do I have to select delete using Disk Clean-Up to correct the winsxs problem of scanning.

    The only thing I'm wondering: what is the cause of the accident of the Winsxs folder while scanning?
    As stated in other threads, winsxs folder causes the scan hangs any scanner is used. Is it because of the size of the folder? What is a particular problem in the folder?
    The file it crashes on changes each time and that makes it more difficult to identify the exact problem.

    If the problem is directly on the winsxs folder and not the compromised computer with virus, malware, etc... There will be a fix to it by Microsoft? Or if the problem is not related to the Microsoft Windows software?

    I just want to be sure that the crash of the scanner is not due to viruses, software, malware or any other infection.

    Hello

    No it resets just the Windows Components update, do not recharge updates.
    See the information on the links. Just to make sure that other resources
    as the registry are configured correctly to allow the update. It is '' possible. ''
    that an update can be reapplied after running but this is rare and not
    probably for more than a few. New click the link for more information.

    Personally I have not use the clean tool component if the choice is
    your. Run the reset and first of all to see these help.

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

    Windows component clean tool

    The component of Windows Cleanup tool (COMPCLN.exe) allows you to delete the files that are archived after Windows Vista SP2 or Windows Server 2008 SP2 is applied. It also removes the files that were archived after Windows Vista SP1 has been applied, if they are on the system. Running this tool is optional.

    Installation of service packs of Windows Vista increases the amount of disk space used by the operating system. This space is used to archive files so that the service pack can be uninstalled. As a general rule, you must run COMPCLN.exe if you want to recover this disk space after applying SP2, and you won't need to uninstall SP2. After you run this tool on an image, you cannot uninstall Windows Vista SP2 or Windows Server 2008 SP2.

    This tool can be used online or offline.

    Option Description

    /? or /h

    Displays this list of command-line options.

    cent: [chemin_repertoire_windows_hors_connexion]

    Specifies the path to the Windows directory of the Windows partition in offline mode.

    / quiet

    Runs in quiet mode. No console output is provided.

    / Hide

    Hides all packages (service pack) that are cleaned.

    verbose/Verbose:

    Provides additional diagnostic data in the log file.

    Important
    Once completed, you will not be able to remove Windows Vista SP2 or Windows Server 2008 SP2 from the computer online or offline.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • "missing the SELECT keyword" error during an insert into the temporary table using the blob value

    I'm trying to insert into an oracle temp table using select that retrieves data from a blob field but I get the error: "lack the SELECT keyword.

    How we store temporary in oracle result when we make this type of operation (extraction of data in fields and try to load them into a separate table on the fly.?)

    with cte as)

    Select user_id, utl_raw.cast_to_varchar2 (dbms_lob.substr (PREFERENCES)) as USER my_blob

    )

    create table new_table as

    SELECT user_id,EXTRACTvalue(xmltype(e.my_blob),'/preferences/locale') regional settings

    E ETC

    ----------------------------------------------------------------------------------

    BLOB data - value - which is

    <? XML version = "1.0" encoding = "ISO-8859-1" ?>

    - < Preferences >

    < time zone > America/New_York < / > zone

    < displayscheduleinusertimezone > Y < / displayscheduleinusertimezone >

    < local > Spanish < /locale >

    < DateFormat > JJ/mm/aaaa < / DateFormat >

    < timeFormat > hh: mm aaa < / timeFormat >

    < longformat > Long_01 < / longformat >

    < doubleformat > Double_01 < / doubleformat >

    < percentformat > Percentage_01 < / percentformat >

    < currencyformat > Currency_01 < / currencyformat >

    < / Preferences >

    A WITH clause that must immediately precede the SELECT keyword:

    SQL > create table t:

    2 with the o as (select double dummy)

    3 select * West longitude;

    Table created.

  • Where to add the transitional attribute at the level of the entities or view level? And where to use {return getTransientAttribute()} in the entity or view?

    Mr President

    JDev 12.2.1.

    Where to add the transitional attribute at the level of the entities or view level?

    And where to use {return getTransientAttribute()} in the entity or view?

    public Number getAmount()  
      {  
        return getTransientAttribute();  
        //return (Number) getAttributeInternal(AMOUNT);  
      }  
    
    

    Concerning

    A difference I could think: place a transient attribute on EO level will make transaction dirty (DBTransaction.isDirty returns true) when the field is changed.

    From a design point of view, I tend to place the transient fields at the level VO, because most of the time they are for the presentation of the data in the user interface.

    Only when the transient fields are involved in DML operations (for example when you call a stored procedure EntityImpl.doDML) I place the transitional area on EO.

  • Calculate the use of operating rooms

    I received this question in an e-mail.

    I will post it here, as well as my own answer-, so that other people with the same problem can find and learn, and that responses can be given (here there are smart people who might have alternative solutions of large .)

    Here's the post with the question:

    ------------------------------------------

    Hi Kim,

    I'm stuck in a SQL query.

    I want to calculate the use of operating rooms. follwing is my data structure

    create the table room_usage
    (in_time DATE,
    out_time DATE,
    mr_no VARCHAR2 (15).
    room_no, NUMBER (3));

    insert into room_usage
    values
    (to_date('11-Feb-15 8:33:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 10:17:00 AM', 'dd-mon-RR hh:mi:SS am'),
    '00052740',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 10:56:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 12:36:00', 'dd-mon-RR hh:mi:SS am'),
    '00111780',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 12:56:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 2:46:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00111777',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 3:02:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 6:12:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052713',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 6:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 7:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052760',
    733);
    insert into room_usage
    values
    (to_date('12-Feb-15 8:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('12-Feb-15 9:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00082760',
    733);

    Select IN_TIME, OUT_TIME, (OUT_TIME - IN_TIME) * 24 * 60 stay, MR_NO, ROOM_NO
    of room_usage
    When trunc (IN_TIME) between February 11, 15 'and 12 February 15'
    order of in_time


    in_time out_time stay_min mr_no room_no

    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    12 February 15 20:51 12 February 15 21:57 00082760 733

    But I also want to get time slots to USE NOT. This is the result I want

    in_time out_time stay_min mr_no room_no

    11 February 15 12:01:00 AM February 11, 15 08:32 511 no use of 733
    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:18 11 February 15 10:55 37 no use of 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:37 February 11, 15 12:55 18 no use of 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 14:47 11 February 15 15:01 14 no use of 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:13 February 11, 15 18:50 37 no use of 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    11 February 15 19:58 11 February 15 23:59 241 no use of 733

    How can I get that.

    A problem like this is easy to solve with the model clause:

    Select in_time, out_time, round ((out_time-in_time) * 24 * 60) stay_min, mr_no, room_no
    of room_usage
    model
    partition (room_no, trunc (in_time) d)
    dimension (row_number() on rn (partition room_no, trunc (in_time) order of in_time))
    measures (in_time, out_time, mr_no)
    rules iterate (1000) until (presentv (in_time [iteration_number + 1], 1, 2) = 2)
    (in_time [iteration_number + 0.5] = presentv (out_time [iteration_number], [iteration_number] out_time, trunc (in_time [iteration_number + 1])) + interval minute '1'
    , out_time [iteration_number + 0.5] = presentv (in_time [iteration_number + 1], in_time [iteration_number + 1], trunc (out_time [iteration_number] + 1))-'1' minute of interval
    , mr_no [iteration_number + 0.5] = 'no use '.
    )
    order of in_time

  • SELECT options (multiple), ignoring the selected attribute

    Hello, all,.

    I have the CF code that is used with a tag SELECT (multiple attribute), and it seems that the SELECT tag ignores the attribute selected for the options of the child.

    For example, I have the code that will generate the following HTML code:

    <select name="selectA" id="selectA" multiple>
        <option value="">ALL</option>
        <option value="Option 1" selected="selected">Option 1</option>
        <option value="Option 2">Option 2</option>
        <option value="Option 3" selected="selected">Option 3</option>
    </select>
    

    But when the page loads, none of these options are selected.  Any suggestions?  What do miss me here?

    V/r,

    ^_^

    There is no code javascript / jquery anywhere that interacts with this menu drop-down lists?

Maybe you are looking for