What is the way to rigth to card CASE and NVL?

I have the following statement, I need the card. So, how did you would map it?

SELECT i.id, h.year, NVL (o.code, 39) code.
CASE
WHEN (h.reg AS im %')
THEN im.trader
Of OTHER ex.trader
Importer of END
CASE
WHEN (h.reg LIKE '% EX')
THEN ex.trader
Of OTHER im.trader
END AS exporter,
(SELECT exco.pk_ex_codes
Of exco exempt
WHERE i.ex_code_a = exco.ex_code
AND exco.ex_type = 'A') ex_a,.
(SELECT exco.pk_ex_codes
Of exco exempt
WHERE i.ex_code_b = exco.ex_code
AND exco.ex_type = 'B') ex_b,.
FROM the points i.
h head,
o offices,
(SELECT a.trader, b.id
MERCHANT has, head b
WHERE b.exporter = a.internal_key) ex.
(SELECT a.trader, b.id
MERCHANT has, head b
WHERE b.importer = a.internal_key) im
H.id = i.id WHERE
AND h.office = o.code (+)
AND h.id = ex.id (+)
AND h.id = im.id (+)

I would say it is the best way to do it.

See you soon
Katia

Published by: Nawneet_Aswal on August 10, 2010 08:30

Tags: Business Intelligence

Similar Questions

  • What is the use of RAS calling card?

    What is the use of RAS calling card? And how do I uninstall?

    Hello coco Amaravadi,

    Given that the problem is related to the RAS asynchronous card, it would be better suited on the TechNet support forum. I suggest you post your question on the following link.

    http://social.technet.Microsoft.com/forums/en/categories/

  • What is the way to find out which app is downloading data from the internet?

    Every time I connect to internet, I see that nearly 100 MB of data is is downloaded, without my consent. I did almost all the applications that I know to ask my permission before you download.

    Yet, some applications are downloading data without my consent.
    I would like to know what are the applications that do.

    What is the way to find out which app is downloading data from the internet?

    There is background applications that automatically transfer and receive data when the computer is connected to the internet. Try if there is active apps running.

    1. click Alt + Ctrl + Del to go to start Task Manager / Applications and end unnecessary tasks.

    2. go in Control Panel / programs / uninstall a program and uninstall unwanted programs.

    I hope this helps.

  • What is the way to apply the sequence ATG?

    What is the way to apply the sequence ATG?
    for example, if I want to order numbers to increment in order 1,2,3,4,... What is the way to do it?

    Best way to generate an ID field is by the use of an IDGenerator. It is not guaranteed to generate numbers which are contiguous.

    To get numbered contiguously order numbers, I guess you could add another field to the order and have a database trigger that will select the next value in a sequence in the database itself. In the application could get complicated if there are multiple instances ATG running the same application.

  • Can someone tell me what is the difference between a default playback device and a default communication device?

    original title: sound settings are very complex. Can someone tell me what is the difference between a default playback device and a default communication device?

    In fact, I use the recording software to record songs instead of downloading. Some recorders record their own drivers and they work fine. But sometimes, they do not respond. The DD Realtek Audio Manager is sick with something. People suffer a lot using this. My questions are endless. Some of them are:

    • What is "Realtek Digital Output?
    • Save devices-part of sound cards?
    • What are animals like 'Audio CD' and 'Stereo Mix' displayed on the DD Realtek Audio Manager?
    I'm sorry for not being specific, but I need a very good idea of how to deal with the settings of the sound in windows 7. And one thing, I have no microphone plugged but always Realtek HD Audio Manager detects? Why?

    Hi SandiKollol,

    A communication device can mean different things, but mostly it is used to allow voice communications on the internet.

    A playback device plays his return, such as your speakers or headphones.

    I hope this helps.

  • What is the difference between buying creative cloud membership and subscription purchase?

    What is the difference between buy creative cloud membership and purchase subscriptions (month to month/year)?

    If I'm not allowed to buy creative cloud in my country, can I still purchase subscription?

    Forward to your response.

    Thank you

    MM

    Those are two separate monthly subscriptions for individual applications allowing you to cancel at any time. It is the most expensive but the most flexible way of the subscription.

    Creative cloud is a collective term for a subscription to the Master Collection of apps all most all of the additional products and services that come with all members of the cloud. http://www.Adobe.com/UK/products/creativecloud/tools.html

    If you want only a soft then a stand-alone subscription is the way to go.

    If you want at least two applications, then an annual membership of cloud is cheaper overall.

    Which country are you? Cloud memberships are not available in all countries.

    http://www.Adobe.com/UK/products/creativecloud/FAQ.html#availability (In which countries can I buy a subscription to Creative cloud?)

  • What is the difference between a version of MAR and the software win7 INKL?

    * Original title: MAR v INKL

    What is the difference between a version of MAR and the software win7 INKL?

    Hello

    Thanks for posting your query in Microsoft Community.

    • What exactly you're talking about when you say, 'Version INKL of Windows 7?

    I'll be happy to answer your query, however, please explain more about abbreviation INKL. There is a version called Office of ink that is used in the Tablet PC.

    Here's the other version of Windows, you can make reference to:

    MAR - Microsoft Authorized Reacondicionador

    A new PC requires a version of windows with a new key license installed if purchased from a manufacturer.

    A refurbished PC is allowed to use an existing product key (2nd hand if you like) as long as it is always delivered with a certificate of authenticity (COA). This is referred to as MAR (Microsoft authorized Reacondicionador) which means that Microsoft allows to use existing keys/licenses products.

    Buy a version of windows means MAR technically you buy a second hand copy - being however, software, so it comes with COST, will make absolutely no difference at all.

    N and KN editions

    The features in N and KN Editions are the same full versions of their equivalent, but do not include Windows Media Player or other technologies related to Windows Media, such as Windows Media Center and Windows DVD Maker because of the limits set by the European Union and South Korea, respectively. The cost of n and KN Editions are the same as the full versions, as the Media Feature Pack for Windows 7 N and Windows 7 KN can be downloaded for free from Microsoft.

    Generations of VL

    VL builds work with VLK (volume license key). Volume license keys can be used to activate multiple installations of the software without a mechanism (for example, a product activation mechanism) controls the total number of facilities. The license for the software is going to impose restrictions on the use of the key. In general, the license will limit the key to a certain number of facilities which must be only the Organization of the licensee and also to place the holder under the obligation to keep a record of the number of facilities, hold confidential and perhaps even require that the holder organization makes available for a software license check check that his use of the key is in the terms of the license.

    Please let us know what exactly are you referring to when you say version INKL of Windows 7, so we can further research and answer.

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • What are the differences between pga memory max session and pga session in memory?

    Hi all

    What are the differences between pga memory max session and pga session in memory?

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga session in memory. "

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga memory max session ";



    Note that I have read the documentation. However, it is not clearly explained.


    Thank you

    John Stegeman wrote:

    I agree with the comments of the Ed, NightWing.

    You do not have a story to ask questions that are clearly answered in the documentation.

    Mind your own business. If you answer the question, so answer! Otherwise, please stop the thread engrossing.

  • What is the differece between a Standard report column and that is set to display text (escape special characters)?

    Hello friends,

    My requirement is

    I want to create a table. Presents some columns to display text.

    so my question is,

    What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    Hello friends,

    My requirement is

    I want to create a table. Presents some columns to display text.

    so my question is,

    What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?

    Kind regards

    Arianne.

    Here is the difference:

    • Standard report column: this is used when your column in the SQL query returns the HTML markup. For example the query SQL with APEX_ITEM API columns or columns where you have mixed data in the column with the markup. In short, APEX rendering engine treats the column as HTML markup and analysis accordingly to display the required HTML element.
    • Display text (escape special characters): this type analysis the column data in the form of data stored in the database (no HTML). During analysis if the data contains special characters then it escapes and displays the data.

    Yes, you can mix the manual in the form of built on APEX_ITEM with normal standard report (display text) columns.

    I hope this helps!

    Kind regards

    Kiran

  • What is the photo shop where I can add and remove people on an image/background?

    What is the photo shop where I can add and remove people on an image/background?

    You can use Photoshop to perform this task.

    There are tutorials online that can guide you like these

    Remove a person from the background with masking

    Extract an object from its background in Adobe Photoshop

  • What is the difference between a virtual machine cloning and v2v conversion to a virtual machine

    What is the difference between a virtual machine cloning and v2v conversion to a virtual machine

    Cloning process is to duplicate a VM. V2V is deploy vm on vsphere environment to another virtual machine format (example: the workstation, hyper-v).

  • What is the difference between DC of Acrobat Reader and Acrobat Standard DC? I'm looking for the function to extract pages of large documents.

    What is the difference between DC of Acrobat Reader and Acrobat Standard DC? I'm looking for the function to extract pages of large documents.

    Acrobat Reader is just a viewer/reader PDF; It cannot modify or create PDFs.

    You will need Acrobat Standard or Pro to extract pages from a PDF.

  • What is the cost of Flash builder 4.0 and the purchase of the license?

    1. What is the cost of Flash builder 4.0 and the purchase of the license?

    2. How to make the current test version of Flash builder 4.0 for run with the re - install?

    Hello

    you could have a look at the family Adobe Flash Builder or website to use amazon for example as Amazon.com: Adobe Flash Builder 4 Standard.

    Hans-Günter

  • What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    Hello world! I'm new to "VMware vSphere API", and I have a question to ask you to help:

    What is the difference between "vShpere SDK ro Perl"and "vSphere Web Services SDK (for Java or c#)"?

    -What are the different programming language? Is there another difference?

    I'm looking forward to your reply.

    Thank you!

    If you are new on the VMware API/SDK, highly recommend you take a look at the following: Getting Started with vSphere SDK - Update for SDK 4.1 release

    vSphere SDK for Perl is just one of the many client SDK for vSphere API that is flush with vcenter times and ESX (i) as a standard Web service.

    vSphere SDK for Java - SDK Java to vSphere API for Java developers

    vSphere SDK for Perl - Perl SDK for vSphere API for Perl developers

    vSphere SDK for c# - c# SDK for vSphere API for c# developers

    PowerCLI - PowerShell SDK for vSphere API for developers of Powershell

    I hope that makes a bit more sense

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

    William Lam

    VMware vExpert 2009,2010

    VMware VCP3, 4

    VMware VCAP4-DCA

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • What is the difference between 11.1.0.1 and 11.1.0.1.1

    What is the difference between 11.1.0.1 and 11.1.0.1.1

    11.1.0.1 is the basic version of Oracle installed on the system.

    11.1.0.1.1 is the version of the PSU (set of updated patches) applied to the basic version.

    Take a look at this http://docs.oracle.com/cd/B28359_01/server.111/b28310/dba004.htm

Maybe you are looking for

  • -Using SMALL NUMBERS and whether to exclude 0

    I'm trying to calculate the average of the 6 lowest numbers in a table.  I do not wish to register 0.  I tried a SMALL formula that works, but I can't rule out the zeros.  I tried IF and COUNT, but can not get to work.  Any advice welcome.

  • No sound - a1130e Pavilion

    Hi, I had to reinstall Windows XP in my Pavilion a1130e and I have 'No Sound'.  In Control Panel, it says "no Audio device".   I'm trying to find the correct driver.  In the "Device Manager", I "Yellow" in all "other devices"; Multimedia Audio Contro

  • How to install a new codec

    I don't have a codec installed on my computer to put songs on itunes in a movie that I do for a school project. How can I get the codec? original title: codec

  • 8600 all-in-One installation to replace 6500 all-in-One

    Should I uninstall before installing the replacement printer 8600 6500?

  • Windows 7 fingerprint "password required"

    On my Elitebook 2760p, I have given my fingerprints successfully in the console HP protect tools.  It recognizes my fingerprints and allows me to use them to change the forest of schooling of fingerprints for any other purpose. When it comes to loggi