How to implement the logic below?

Hi friends,

Greeting of the day!

I have a table with the following columns

STUDY_NAME
COUNTRY
STUDY_SITE
DISCREPANCY_ID
REVIEW_STATUS
COMMENT_TEXT


I would like to implement the following logic on the table of the table


logic: I need to extract all the columns in the table above with the following condition,.

If the COMMENT_TEXT begins with 'CCRA Query' or 'ARC Central' and the REVIEW_STATUS is Review_Status 'ARC Review' = 'CCRA Review' if Review_Status = Review_Status.

Thanks in advance

Please give entered how implement the foregoing

Use CASES

case when (
                COMMENT_TEXT like 'cCRA Query%' or
                COMMENT_TEXT like   'Central CRA%'
            )  and  REVIEW_STATUS = 'CRA Review'
                then 'cCRA Review'
       else  Review_Status
end as  Review_Status

Tags: Database

Similar Questions

  • How to implement the ScreenUiEngineAttachedListener Interface?

    How to implement the ScreenUiEngineAttachedListener Interface? It is somewhat a mystery reading through the API.

    I have a class that implements ScreenUiEngineAttachedListener:

    public class UiListener implements ScreenUiEngineAttachedListener {
      public void onScreenUiEngineAttached(Screen screen, boolean attached) {
      }
    }
    

    Then I have a class MyScreen which extends from screen and has two methods:

    public void addScreenUiEngineAttachedListener(ScreenUiEngineAttachedListener listener) {
      super.addScreenUiEngineAttachedListener(listener);
    }
    
    private void removeScreenUiEngineAttachedListener() {
    
    }
    
    • What is the correct positioning of everything?
    • Can I define an instance of UiListener and pass in the addScreenUiEngineAttachedListener?
    • How to remove UiListener in removeScreenUiEngineAttachedListener?

    You will need:

    • an instance of your UiListener - probably a static member inside your UiApplication;
    • a method that allows to retrieve the reference to this instance of UiListener;
    • a call in your constructor for the screen at addScreenUiEngineAttachedListener (yourApplication.getUiListener ()) or similar;
    • potentially a call within your onScreenUiEngineAttached (attached screen, boolean) routine, the branch (attachment is false) : screen.removeScreenUiEngineAttachedListener (this);

    However, all this is too much work for no gain. Just override protected void onUiEngineAttached (boolean attached) in your screen class and make your logic there - all members of your class are accessible and all the code is placed where it belongs.

  • How to implement the AdSense code

    Hello

    I don't know how to implement the code.

    Can someone help me?

    Hello

    Please take a look on the link adobe form at the address below. This could help you.

    https://forums.Adobe.com/message/4325647

    Kind regards

    Nitin Kapila

  • How to implement the SOA 11 g limitation?

    Hi all

    Can someone tell me how to implement the limitation in SOA to create a repository for the history of the transactions?

    ARO

    Hari

    Hello

    By Greg Mally of Oracle message covers an approach to the limitation in SOA Suite

    https://blogs.Oracle.com/soacommunity/entry/throttling_in_soa_suite_via

  • How to get the logical tab in the main area of 4.1.2 Data Modeler?

    Data Modeler.jpgI just installed Oracle Developer Data Modeler: Version 4.1.2.895.

    I was following section 2.1 development of the logic model

    http://docs.Oracle.com/CD/E48219_01/doc.40/e48205/tut_data_modeling.htm#DMDUG36169

    I used the example of library. I added the areas.

    Then I tried to create the books.

    The document says:

    1. In the main area (right) of the Data Modeler window, click the logical tab.
    2. Click the icon of the new entity.

    But I don't see the logical TAB on the right side at all.

    I see the Start Page. On the far right is the browser window. Basically, I see Messages - Log.

    On the left side, I have the browser window.

    Can someone tell me please how to get the logical TAB in the main area?

    Thanks in advance.

    Hello!

    In the browser with the right button on the logic model and select view.

    I hope this helps!

    Heli

  • How to create the logical tables & how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • Is there anyone who knows how to implement the P3 Colorspace in first CC2014?


    Is there anyone who knows how to implement the P3 Colorspace in first CC2014?

    Hi RVBBernard,

    Sorry, there is currently not available in Premiere Pro. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • How to implement the process Train in Jdev 10.1.3

    Hello..
    Anyone know where to find a tutorial on how to implement the process train in jdev 10.3.1

    Thank you

    http://download-West.Oracle.com/docs/HTML/B25947_01/web_complex005.htm#CEGIGJID

  • How to implement the service as thread know app without a head?

    I want to implement some service such as GPS log app, SMS Firewall. I want just an expert to give some guidance on how to design app without head and how to interact without head with front UI thread?

    There is a documentation for it: here.

    Examples of applications: Collector Push and part of Xandroid UI/Xandroid part Headless

    Personally, I could not work from collector to push but the Xandroid works according to others.

    I tried to do a UI + app: separation logic and tried invoking the logical part on the system started but could not make it work too.

    If your application without head needs long running and is not triggered, you must submit a form to the https://developer.blackberry.com/jam/headless/

    I really hope that internal developers to release a simple beginning on the kind of Hello world system early in the example, two examples of applications are too complicated and are trying to squeeze too many different features together

  • How to format the data below


    Hi, I have the following data in the rows, but how can I format in below format using SQL or PL/SQL

    Examples of data


    create table test_temp (invoice_num varchar2 (20), gl_date date, amount, type_of_inv varchar2 (2));

    insert into test_temp values ('1000765', 30 June 2013 ", 800," DM");

    insert into test_temp values ('1001767', 1 July 2013 ', 1000, "DM");
    insert into test_temp values ('1001789', 3 July 2013 ', 1000, "DM");
    insert into test_temp values ('1001874', 10 July 2013 ', 500, "DM");
    insert into test_temp values ('1001876', 11 July 2013 ', 500, "DM");

    insert into test_temp values ('1001768', 1 July 2013 ', - 800, 'CM');
    insert into test_temp values ('1001769', 2 July 2013 ', - 1500, 'CM');
    insert into test_temp values ('1001783', 2 July 2013 ', - 1000, 'CM');

    insert into test_temp values ('1001875', 11 July 2013 ', - 500, 'CM');


    Select a.* from (select gl_date, invoice_num, type_of_inv, quantity of test_temp where type_of_inv = 'DM'
    Union
    Select invoice_num, gl_date, type_of_inv, amount of test_temp where type_of_inv = 'CM') a
    order of a.type_of_inv, a.gl_date, a.amount


    invoice_num gl_date amount type_of_inv
    1001768 1 JULY 13-800 CM
    1001769 2 JULY 13 CM-1500
    1001783 2 JULY 13-1000 CM
    1001875 11 JULY 13-500 CM
    1000765 30 JUNE 13 DM 800
    1001767 1 JULY 13 DM 1000
    1001789 3 JULY 13 DM 1000
    1001874 10 JULY 13 500 DM
    1001876 11 JULY 13 500 DM

    -output must be below the order by gl date

    Choose the cm and apply against DM order by gl date


    1001768 CM is applied on DM 1000765 amount - 800 + 800 = 0

    CM 1001769 is applied on DM 1001767 amount - 1500- + 1000 = 500

    CM 1001769 is applied on DM 1001789 amount - 500 + 1000 = 500

    CM 1001783 is applied on DM 1001789 amount-1000 + 500 = - 500

    CM 1001783 is applied on DM 1001874 amount - 500 + 500 = 0

    CM 1001875 is applied on DM 1001876 amount - 500 + 500 = 0

    The logic is less than

    In the test_temp table, I have my two CM and DM stored,

    I have to write a query, or a PL/sql program to get the below output.
    The logic to retrieve the output here is as follows

    Get the first CM and get the first DM to add the amount of CM with amount of DM up to its sum (amount of cm + size DM) = 0
    with less date GL

    who will give me the first production line

    1001768 CM is applied on DM 1000765 amount - 800 + 800 = 0, now I can take the next CM because its amount is zero


    get the next CM with less gl date to apply against the DM

    1001769 CM is applied against 1001767 with amounts - 1500- + 1000 = 500

    then my amount after worn here is still not zero if the same note of credit (on the left - ve amount of CM)
    must be applied on the next DM


    1001769 CM is applied against 1001789 with amount (-500 + 1000) = + 500

    so in this case (+ amount is from left to right on DM), get the new CM

    1001783 CM must be applied on DM even because always the amount was left with amounts DM 1001789 (-1000 + 500 = 500)

    now, in this case - ve amount is left cm

    so even CM must be applied on the next DM

    1001783 is applied on the next 1001874 DM with amounts-500 (to the left of the previous) + 500 (amount of this DM) = 0
    (In this case sum is zero, so I can choose new CM)

    get next CM 1001875 and applied on the next 1001876 DM with amounts-500 + 500 = 0

    Hope this is clear, or let me know please

    Thanks a ton of Frankkulash...

  • How to replace the logic board MacBook Pro mid-2010

    I have a MacBook Pro 13-inch mid-2010. About once a week, monitors (one who is part of the laptop) and an external will turn grey and freeze. When I turned off the computer, it brings back me to the login screen (I'm under 10.11.5), but I can't move the pointer (whether with my Apple Wireless Mouse or trackpad) to select the icon for my login. After a few reboots, the computer takes care of the password reset function. And there, I can reuse the mouse, select Restart the machine, and I'm back on my way.

    The genius of Apple and I suspect that the problem is with the logic board. Unfortunately, Apple has more parts for MacBook Pro mid-2010. I contacted a few service centers certified Apple the kind told me; None of them can help either.

    Any suggestions for how I have a fix for this problem? Thank you!

    You could contact a specialist to see what their requirement is to send you the

    computer while for a diagnosis appropriate; a specialist is the one who can do all the

    works internally and could actually fix the edge logic that the Mac came with.

    I know some who do this; they charge more than a parts Exchange hosting.

    You can see what a company such as wegenermedia can do. Or see what the

    iFixit guide for Mac (for your specific model) said repair and watch to see who

    part numbers are involved in replacement of the like-kind in refurbished or tested

    OK, from sources such as powerbookmedic.com and other sources used parts.

    The logic board may not be a problem; might be some on the Board of directors or of one which

    attached to, such as the graphics processor. These older models are not

    so difficult for a specialist expert set. While the Mac is able to do so, is a good time

    for they provide labour expertise to swap upgrade replacement parts.

    They can test the feature set and should provide a guarantee for employment.

    Some of these companies repairs also restored the supply of older computers they fixed.

    Good luck & happy computing!

  • How to stop the logic to automatically add events midi Volume/Pan

    Hello

    How can I prevent the Logic Pro X automatically add the volume/pan events whenever I cut a clip into two?

    I have a volume/pan at the beginning of each track event and sometimes I want to just insert new midi events existing in-between, so I cut the clip, the second part of move to the right and the record or paste my new events.

    The problem is that LPX is insert automatically the events of volume/pan at the beginning of the clip cut and then, when I join these clips, I have many events unwanted volume/pan

    How can I stop doing that?

    Version LPX is 10.2.1

    Thank you!

    Just figured it out myself

    "Go to Midi - project settings - file and uncheck the box 'Change of order 7/10...' under the ' send after loading project" section.

  • How to implement the reading of data from a matte file on a cRIO?

    Hi all!

    I'm still not sure, it is plausible, but I'll ask rather before you begin complicating. So far, I found no useful information on reading in the data to a device of RT from a file (type of a simulation test - data is simulated).

    I have the MatLab plugin that allows the storage of data read a MAT file, which has a number of columns that represent the different signals and lines representing the samples at a time (depending on the time of the sample - sample every time has its own line of signal data).

    I have no idea how to implement this at cRIO.

    The idea is:

    I have some algorithms running on the controller of RIO in a timed loop. As the entries of these algorithms I need to access each of the values of columns in the row, which is the time of the sample (sort of a time series - without written actual times).

    I am fairly new to RT and LV development, so any help would be appreciated.

    Thank you

    Luka

    Dear Luka!

    I think the reading of all the samples in a single channel is exactly what you need here, because reading the files may take some time and is not deterministic, so it is best to read all the data in memory (or if this is not feasible due to problems of size, fairly large pieces may be sufficient). The table read can be provided and then in the loop simulating outings, something like this:

    I used here separate channels so it's more graphic, but you can build all the channels in a 2D array and array index corresponding to the samples fom 1 who. You can also use for loops with indexing as tunnels are setup and then you won't need the index functions and the number of iterations is also set automatically, but you have to take care of synchronization settings.

    Best regards:

    Andrew Valko

    National Instruments

  • How to implement the wafer map using LabVIEW?

    Hello LabVIEW Masters!

    I have a project which includes control and searching for information on a PROBER. One of the difficulties I have now is how to implement a WAFER card using LabVIEW. According to the requirements of my client, the element of pads varies between 6 k and 23 k. I guess that do everything (a = a ctl/indicator led) will be a hell of a task, especially on how to effectively manipulate each elements. Does anyone have a better idea on the way whose that?

    Please, I seriously need your help...

    Thank you and best regards,

    Dennis DG

    Hi Dennis,

    This wafer GerdW post card appears to me as a sort of histogram (for example http://www.ni.com/white-paper/4158/en#toc3);

    Altenbach post well this example that shows how to use a plot of intensity to create a 2d histogram:

    http://forums.NI.com/T5/LabVIEW/overlay-plots-as-intensity-graph/m-p/211222#M119248

    Learn how it works and try to adapt it to your specific task.

    Alex

  • How to implement the management of the application users?

    I need to know how to add the possibility of application to create, modify, or delete user by user accounts manager [I count special wolud create in application]? I want to create the solution that includes 5 departments and each Department has few users. If the user is in Group would be pages prepared for the Group's engineers, tabset if user is in Group accountants would be a tabset prepared for accountants, etc. etc. Ability to create, modify, or delete user accounts must be implemented for manager who should be able to move users between groups if necessary.

    Duplicate thread: Manage users in the application

    Please close this message and continue the original discussion.

Maybe you are looking for