Application must be modified to use only 1 Table

I would appreciate help in the evolution of this query to only use table "ain.impl_oh_order_header oh table."

SELECT oh1.partner 'Dealer,'
OD.sales_code 'merchant sales Code. "
OH1. external_order_number 'Original merchant order number. "
OH1. Region,
Cust. billing_account_number "BAN."
DSL.n_order 'DSL OrderNo. "
DSL.tn_or_ftn "TN DSL."
DSL.activation_date DSL"Activation", ".
Telco.TN "ACCESS_TN"
TO_CHAR (oh1.created_ts, "YYYY-MM-DD") "Date of the original order.
Pack1.display_name 'original Description of the order. "
Pack1.price 'Price Plan',
uname. USER_FIRST_NAME 'Agent First Name. "
uname. USER_LAST_NAME 'Agent Last Name',
uname.User_Name "Agent ID",
-to_char (dh.timestamp, ' yyyy-mm-dd hh: mi ') "USCS Button Pressed",
TO_CHAR (oh2.created_ts, 'YYYY-MM-DD') 'USCS Order Date. "
Pack2.display_name "USCS - order Description."
CASE
WHEN cd.state IN ('1 ', ' 15') THEN "RECEIVED".
WHEN cd.state IN ('2') THEN 'TRANSFORMATION '.
WHEN cd.state IN ('3', '8', ' 16', ' 18') THEN 'FINISH '.
WHEN cd.state IN ('4 ', '9', ' 17') THEN 'CANCELLED '.
WHEN cd.state ('6', '10', ' 13', ' 14') THEN 'PENDING '.
WHEN cd.state IN ('7') THEN 'INCOMPLETE '.
WHEN cd.state IN ('12', ' 19', ' 20') THEN 'PRESENTED '.
ANOTHER 'OTHER '.
END AS state_desc,
Pack2.price "USCS - Plan price."
Pack2.price - pack1.price "Net change"
INA.first_name,
INA.last_name,
INA.add_line_1,
Ina.City,
INA. STATE,
INA.zip

OF ain.impl_oh_order_header oh1
INNER JOIN ain.impl_oh_order_header ON oh1.external_order_number = oh2.external_order_number oh2
INNER JOIN ain.impl_order_data ON oh1.transaction_id = od.transaction_id od
INNER JOIN ain.impl_package ON oh1.transaction_id = pack1.transaction_id pack1
INNER JOIN ain.impl_package ON oh2.transaction_id = pack2.transaction_id pack2
INNER JOIN ain.impl_name_address ON oh1.transaction_id = ina.transaction_id ina
INNER JOIN ain.impl_customer ON oh2.transaction_id = cust.transaction_id cust
LEFT OUTER JOIN ain.impl_dsl ON oh2.transaction_id = dsl.transaction_id dsl
LEFT OUTER JOIN ain.impl_access ON oh2.transaction_id = telco.transaction_id telco
INNER JOIN ain.sncr_order_curr_disp ON cd.transaction_id = oh2.transaction_id cd
INNER JOIN AIN.sncr_order_disp_head ON oh1.transaction_id = dh.transaction_id dh
INNER JOIN ain.sncr_order_disposition ON dh.disp_transaction_id = disp.disp_transaction_id disp
INNER JOIN ain.sncr_ssm_principal ON uname.user_id = dh.user_id uname

WHERE the oh2.created_ts BETWEEN to_date (' 01/03/2012 00:00:00 "," mm/dd/yyyy hh24:mi:ss') AND to_date (' 31/03/2012 23:59 ',' dd/mm/yyyy hh24:mi:ss')
AND oh1.uscs = 0 AND oh2.uscs = 1
AND oh1.external_order_number NOT LIKE '% PROD_TEST % '.
AND oh2.external_order_number NOT LIKE '% PROD_TEST % '.
AND oh1.order_type = 'COMMAND '.
AND oh2.order_type = 'COMMAND '.
AND pack1.product_type = 'COMMAND '.
AND pack2.product_type = 'COMMAND '.
AND disp.category = 110 AND disp.state = 5
AND disp.trx_seq = (SELECT MAX (trx_seq)
Ain.sncr_order_disposition sod, ain.sncr_order_disp_head pink
WHERE sodh.disp_transaction_id = sod.disp_transaction_id
AND sodh.transaction_id = oh1.transaction_id
AND sod.category = 110 AND sod.state = 5)
AND pack1.offer_id IS NOT NULL
AND pack2.offer_id IS NOT NULL
AND ina.type = 'SERVICE '.
AND cd.category = 100

ORDER BY to_char (oh2.created_ts, ' YYYY-MM-DD "")

Remove the other tables in the query and all references to columns in other tables.

Tags: Database

Similar Questions

  • I buy cc suite, but in the desktop application I can look and use only trial version

    Schermata 2016-01-28 alle 11.12.59.pngI buy cc suite, but in the desktop application I can look and use only trial version

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • Frequent solicitation to update JAVA and Modzilla Firefox Proporting say these applications must be updated (but intruder only offers older versions)

    I used repeatedly "Site of block" to prevent intruders as their activities often cancel everything I try to do, but hackers still get through. Their addresses are:

    Java-Update - Now.com / ca

    Update-Browser.org/Firefox/

    browseupdate.com/Firefox/index.html?aff_sub=s0001311

    Also, my Firefox is frequently diverted the following sites without my permission or my choice:

    pressroomvip.com/Hunger-Games-Premiere-Jennifer-Lawrence/?utm_source=BRT & utm_medium = whtron & utm_campaign = hungerca & utm_nooverride = 1

    watch32.com/ads/movies-online/Captain-Phillips.html

    My version of the opera is not affected by these intruders and I plan to do not continue to use Firefox.

    Thank you for any assistance.

    Hello, this looks like a problem possibly caused by malicious software on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • Invalid launch image - your application contains a launch image with a size modifier which is only supported

    I use the latest Adobe AIR and SDK, 3.5. The app works on my iPhone 5 and displays the loading screen, but by doing an app store version and upload I get this:

    Dear developer,

    We found one or more problems with the delivery of your recent for "eat sleep skateboarding". To process your order, the following questions must be addressed:

    Invalid launch image - your application contains a launch image with a size modifier which is only supported for applications built with the iOS SDK 6.0 or later version.

    Once these issues have been fixed, go on the release Details page, then click on "Ready to Upload binary." Continue through the submission process until the status of the app is "Waiting for Upload. You can then deliver the binary has been fixed.

    So he complains on my [email protected] I think. If I delete it, he could accept the file, but I really want to a loading screen. So, how can I fix? I only find solutions for xcode developers

    You are probably not using the last available AIR SDK. Labs releases contained a bug leading to this issue.

    So, update your AIR SDK from http://www.adobe.com/devnet/air/air-sdk-download.html should solve the problem.

  • How can I configure my computer to run an application using only a specified quantity of my carrots?

    OK, I have a game called Star Wars: Knights of the Old Republic. The game does not use more than 2 cores, the problem is when I start the game without going through the Task Manager and manually set its priority to 2 hearts my usual game show on my screen, it will be black so I have to run the Task Manager to force the game to close. So what I'm saying is that whenever I want to play the game or launch the application, I have to open the Task Manager, find the game or application, and then right-click to set the number of cores in the processor to use and sound really get some tires. I was wondering if there was a way to instruct your computer to use only 2 cores at the launch of this game. I have Window 7 Home Premium, 8 GB of RAM and a graphics card in Asus R9 280.

    Some cpu overclocking tools have a basic framework of cpu, and you can make a profile for these games, which limits the number of cores. In the past I've used used AMD OC tool for this.

    -If your cpu is Hyper-threading, try disabling Hyper-threading technology.

    -J' saw a few messages about this game, but don't remember any specific game fixed and did not

    heard of him having a problem with quad core cpu.  I have no problem with a quad core cpu with AMD Phenom 965 or Intel 3570 KOTR.

    It is installed without using any sort of compatibility settings. I'm surprised I didn't even

    fixes, or patches. It seems to work without the CD, if you use the StarWars - KOTR.exe spot

    of the LaunchKOTR.exe as well.

    He has run correctly on GTX560ti, GTX770, HD7970 and Intel HD4000 chart, but I don't have

    reminder if she had a little problem with running in a window with pilots earlier or not. Probably not as

    the same happens when you use the Intel HD4000 graphics.

    I just found (rediscovered?) that the game always starts in windowed mode

    (there is no option of mode in the settings or .ini however), but if I change the resolution

    It goes full screen in one of the other options 1280 x 1024 (there are three of what appear to be the same resolution and refresh speed settings).

    When you use two Intel HD 4000 graphics the graphics settings are also not available.

    [EDIT: my machine with the PhenomII965/GTX560ti doesn't have this problem of windowed mode.]

    It is quite rare for games to have real issues with quad core cpu.  Fallout 3 is the most recent

    I met (Yes not nearly as old as KOTR), and it took a change in the configuration file

    in order to limit to two hearts.

    I also had a couple of games that are configured to run on a single core at the Phenom 965 CPU usage at the time.

    I used the AMD OC tool to create a profile with all but a core disabled, for each of these games.

    -I do not use a parameter core with any games ATM, but some games running on

    my machine with Intel processor and 770 a short while back only works on atm HD4000 Intel

    (Memory, they were OK with the HD7970, using the version of the driver 13.9 or 13.12?) ).

    Games that only work with Intel HD graphics card on the machine with the GTX770, always works on my machine with a PhenomII 965 and GTX560ti. Go figure...

    .

  • Can we use push notiofications into html5 applications? If yes how? My web application must receive push notifications

    Can we use push notiofications into html5 applications? If yes how? My web application must receive push notifications

    Hope this will help you http://pusher.com/tutorials/html5_realtime_push_notifications

  • Why do we have no choice to subscribe to a series of 22 application Adobe Suite CC, when as a professional graphic designer I can use only one third of them?

    Why do we have no choice that to to subscribe to a series of 22 application Adobe Suite CC, when as a professional graphic designer I can use only the more un tiers a third of them, why can we adhere to the Adobe Suites like they configured as they used to be?

    Why can't the updates, minor and non-Visual, is not limited to (at most) half-yearly, having to deal with the constant evolution of the interfaces in Dreamweaver is a waste of time for most professionals!

    You can buy only one app CC too or a beam of light & Photoshop.

    https://creative.Adobe.com/plans

    Concerning

    Stéphane

  • I try to connect to the creative cloud on my MacBook Desktop App and sees only a spinning wheel where the application must be open. On a related note, I'm signing CC because I thought that my Lightroom Develop module is disabled. Clues?

    I try to connect to the creative cloud on my MacBook Desktop App and sees only a spinning wheel where the application must be open. On a related note, I'm signing CC because I thought that my Lightroom Develop module is disabled. Clues?

    Mac https://forums.adobe.com/message/5470608 spinning wheel

  • I've been using Lightroom 5 about 1 &amp; 1/2 years and he lost everything last night, as I install it. I tried to use time machine and I get this message; 'Applications' cannot be modified or deleted because it is required by OS X. Any help or suggestion

    I've been using Lightroom 5 about 1 & 1/2 years and he lost everything last night, as I install it. I tried to use time machine and I get this message; 'Applications' cannot be modified or deleted because it is required by OS X. Any help or suggestion?

    Hey Mohit & John,

    I just restarted since a lightroom 5 top date & he got almost all of my files!

    Linda

  • How can I load bitmap/vector images in my application using only actionscript 3.0?

    I want to have the DisplayObject that will contain random images bitmap/vectors of a database. I want to implement this using only of the code. How?

    Use the loader class:

    var loader: Loader = new Loader();

    Loader.Load (new URLRequest ("image1.jpg"));

    addChild (loader);  or, yourdisplayobject.addChild (loader)

  • Prevents the application to be modified after being approved

    Hi all

    Senario:

    Prerequisites:
    There is a resource configured on IOM A and it is available to ask
    The approval process requires two levels of approval: 1 the User Manager and the 2nd the authorization object

    Manager1 is the Manager of User1
    Authorizer1 is the purpose of the authorization for resource A


    1 - User1 initiates a request access to resource A to itself.
    2 - User1 must enter information before submitting the request and we denunciations considers the level of access to his account on resources. He chooses the level of 'single user '.
    3 - Manager1 receives an approval task and approves it.
    4 - Authorizer1 receives a task approval, but, for some reason, takes any action. (It is not in the office today)
    5 - User1 goes back to the request and replaces its access level 'admin '.
    6 - Authorizer1 comes back the next day and approves the request.

    Problem: Only approved Manager1 because at the time he checked demand the access level is set to 'single user '. He would not grant admin access level.

    Questions (options):
    (a) is it possible to prevent the application to be modified after being approved by Manager1?
    or
    (b) is it possible to send the application for approval to Manager1 if there was no change once it has been approved?

    Thanks for an overview.
    Adriano.

    There are several solutions to this. See below:

    - Either remove editing permissions for ALL_USERS of the shape of the object. If your end user would not be able to update the details of the application once it is submitted. In case the desire of the user to change the data, then it can send an email to manager to do. But the end user cannot do itself. See tab the form designer to apply permissions to objects of. It must have an entry for ALL_USERS. It is an immediate solution to your question with 0 effort.

    - Or if you specifically want that after approval only, the form data should not be updated. Then create an adapter of the entity that verifies whether or not the request is currently underway with the Manager. If this request is not with the Manager then this entity adapter throws an error shows that the application has been approved by the Manager, so it can not be changed. This would require changes as follows.

    a. you must include 2 additional fields hidden in your application form which contains the requestId and UserID. Once the end user submitted the application, you must assign this form requestID requestId field generated at the time and the other IOM userID field. You can do this with a task in the approval process by using the API of IOM.

    b. now create this map of the entity. It will have 2 variable reqId and userID. You get these attributes and IOM API check is pending with the Manager of the user request. This adapter returns true or false. False, add an error handler task.

    c. attach this adapter on the event before update of your form in the object data manager.

    Now if after approval of level 1, the final user tries to update the form, it displays an error in the format of the IOM ' as the request was approved by the Manager, so it is not editable '

    This should solve your problem.

    Thank you

    Sunny

  • Use only a part of a track when adding music to a slideshow

    Is it possible, and if so, what are the steps to add only a part of music followed by a slide show? With the help of photographs. 1,5.

    Thank you!

    Hello mjfriedman,

    Please use the Apple Support communities to post your question. Photo slideshows are a great way to show these great pictures of your collection. To use only a part of the track in your project, you will need to use another application to cut and edit the track first, before add you it to the slide show. GarageBand is an excellent application which can be used to change the part of the track that you want to use with your slide show. Please see the links below for more help.

    GarageBand help

    GarageBand for Mac: divide the regions in the field of securities

    Share the songs on iTunes

    Photos for OS x: creating and working with slideshows

    These links should help you with the sharing and use of this track in your project. The end result is going to be great!

    Have a great day.

  • How to use only black ink on the Canon print app?

    I wonder if you can use only black ink with the soft print Canon. I have a Pixma MX420 and we do not buy ink color so if I print a document from the application, all in colour will not be displayed. I'd rather he appear in black and then not at all.

    Hello.

    Printing options are limited to mobile devices.  In order to take full advantage of printing and scanning capabilities, you would have to print from a compatible computer, Windows or Mac OS x using the real drivers.

    It has not responded to your question or problem? Find more help contact us.

  • Is it possible to order the right recovery disk set by using only the serial number?

    Hello

    I'm trying to order a set of recovery disc for what is customized for VAIO laptop. I would like to be able to put it back exactly the same way that they were shipped originally. For some strange reason, because I was not asked for S/N, I know that I will not ship the correct game.

    Since there is no return on the software, how can I be sure it's the correct game before ordering? Is their way to get the part number control myself using only S/N, if not, how about raising via serial number?

    I've already tried this https://servicesales.sel.sony.com/ecom/accessories/web/categorySearch.do?operation=subCategorySearch... but do not recover my particular model because it is Canadian model purchased.

    Your help is really appreciated.

    Thank you for your support.

    They are here:

    MODEL: PCG - 31112L

    MODEL NAME: VPCZ1390S (was a personal shopping via the online order of Sony of Canada with additional features and applications added - more than the Basic with the same model name model).

    Please consult this site raw and obsolete from where it was originally custom. Although it is more useful, but it can provide an idea of what I mean, the link is http://store.sony.ca/webapp/wcs/stores/servlet/SYCTOProcess?storeId=20153&langId=200&catalogId=10080...

    I think the specific set of recovery disks only who would be able to restore this address to his State of origin as the day, it was shipped via Sony, should be stopped by S/N and perhaps along the ST as well. If it is ordered using just the model and or the name of the template, the result would be a generic RDS used on all of the same model and would not now for his counterpart custom, with still the same exact model information.

    SERIAL NUMBER: J004DSU8

    SERIAL NUMBER: 54047221-0000247

  • How to insert Unicode characters (such as arrows) using only the keyboard in any app? EnableHexNumpad is always required in Windows 7?

    Windows Help explains how to use the character map to copy or drag special characters in Unicode-aware applications. In Vista, it was possible (but heavy) to insert special characters using the keyboard with the method known as Alt-plus, which has only first need to add EnableHexNumpad to the registry *.

    y at - it an easier way to insert Unicode characters using only the keyboard newly available in Windows 7? Adds EnableHexNumpad to the still of registry required to use the Alt-Plus mode? Other tips to quickly characters insert Unicode in taking applications support Unicode?

    * Register instructions: Add a new string [REG_SZ] named EnableHexNumpad and a value of 1 in HKEY_Current_User/Control Panel/Input Method

    Have you tried UnicodeInput? It is a small program that allows you to enter Windows Unicode characters via the keyboard. Works with practically all the applications that I tested. I use it on Vista, so I can't guarantee it will work also on 7...

    You can find it at http://www.fileformat.info/tool/unicodeinput/unicodeinput.zip .

    Kind regards

Maybe you are looking for

  • Satellite Pro A120 - impossible to get a PCMCIA card work

    OK, I have a problem with cardbus (xp SP2) of my Satellite Pro A120. I use the cardbus slot to add conections firewire via an IEEE 1394 cardbus card and have been doing this for a long time. The other night, my computer came into hibernation with the

  • Send the order through a time series?

    Hello everyone... I am trying to send commnad linux to my robot through labview... I connect it by VISA. Bluetooth via USB. I faced poroble 2. 1. it keep sending the same order everywhere in time. 2 - timeout problms. My attached VI... Please help me

  • iPod Touch leaves the .dat files in Favorites

    Whenever I plug my ipod touch into my computor it does an automatic synchronization and leaves a bunch of .dat files in all my favorite folders. This is a bread PITA to delete I seem to only be able to remove one at a time, and there seems to be hund

  • Vista boot, apparently due to the update

    Hello My laptop was working fine last night, but as I have turned on this morning, I am unable to boot. Windows will remain at a black screen and then give me the boot option repair or start normally. Startup Repair found a problem, that it cannot co

  • BlackBerry 10 new software update screwed up my Q5

    Last week my Q5 connected to my WiFi, only! and downloaded the new update. Many things have changed were not a big deal, BUT he also screwed up in my opinion. By that I mean is "everthing" needs to be resized to be able to read. If a text arrives, it