Captured to eliminate "double" lines

Hello

I have this script that does give me the output I need, can you help me how I can change this script!

Thanc you much.

Script
SELECT DISTINCT
s.system_id "SYSTEM_ID".
, decode(CONTRACT_TYPE_ID,104,'RPC',204,'RPC',1204,'RPC',10032,'RPC',null) 'CPP '.
Of s system_view
client c
contract ct
where s.bo_cust_id = c.bo_cust_id
and s.OPCO_ID = c.OPCO_ID
and c.CUSTOMER_ID = ct. CUSTOMER_ID
and ct.status = '1'
order by 1

So he gives
SQL & gt; /

SYSTEM_ID CPP

10000
10000 CPP
10001
10001 CPP
10002
10002 CPP
100022
10003

8 line (s) s & oacute; selected & eacute; e (s).

The result I need

SYSTEM_ID CPP

10000 CPP
10001 CPP
10002 CPP
100022
10003

Published by: vittel on November 18, 2008 12:31

Published by: vittel on November 18, 2008 12:32

Try...

select s.system_id "SYSTEM_ID"
,max(decode(CONTRACT_TYPE_ID,104,'RPC',204,'RPC',1204,'RPC',10032,'RPC',null)) "RPC"
From system_view s
,customer c
,contract ct
where s.bo_cust_id=c.BO_CUST_ID
and s.OPCO_ID=c.OPCO_ID
and c.CUSTOMER_ID=ct.CUSTOMER_ID
and ct.status='1'
group by s.system_id
order by 1

Tags: Database

Similar Questions

  • How can I disable the function where my mouse over the double line that then creates a pop-up window?

    When I hover over a word or an expression that has a double line below, a suggestion box comes with a link that takes me to a site that is in regards to the word or phrase that I flew over.

    Hello kayjay76, this looks like a problem caused by some sort of adware 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

  • Aeromy computer has keywords with a double line under them, how can I get rid of them

    my computer has keywords with a double line under them, how can I get rid of them

    Hi Pete McDowell,.

    Glad to know that the problem is solved. Let us know if face you any problems with Windows in the future.

  • How to draw and edit double lines with Adobe Illustrator?

    I need tot draw road maps. This should be easy with the pen tool, but my problem is that I can't find a way to draw a double line with this tool. I've seen a lot of models and fancy border styles. Some do not have the lines double or even quadruple, but the problem is that they have an offset from the vector line and the space between the two lines (the edges of the road) cannot be filled. Somewere I also found a few pens called "Double line 1.1' to ' Double line 1.6' but they also had an offset from the vector and I could chance not regardless of the size of the lines and the interval between them."

    I'm looking for is a way to draw two lines in parallel and have tot option fill out the space between the two with a color or even a model.

    The color and the size of the lines should be variable to distinguish between several types of road.

    Y at - it a game's existing pencils for this? It would be nice to be able to attract not only the roads, but also railways and rivers!

    I'm certainly not the first person who needs to do that?

    I use HAVE version 6

    Here is a picture. You can adjust the color of each stroke by selecting the line in the appearance Panel, and then change the color in the little box. Your best bet is to save the appearance as a graphic Style, so you can apply it to any line in the future. Not necessary for a brush and easier to change.

  • Double line

    Hi all

    I'm using fireworks 8. I would like to explain a rectangle with double contour or double line. I can't find this type of stroke under 'stroke options' on the property Panel. Any help in this matter is much appreciated.

    thozhayan;
    Edit/change extension/path Strokes? -Tom Unger

  • How to make the double line things go away when I read web pages, that what happens in front of him just some words that are double line under the word and then you will see an announcement when the cursor passes through the word.

    He double blue line under a word like POWER or Medicare, etc.

    It is contextual advertising. You should be able to eliminate one of the following. I suggest you have a file hosts and Adblock Plus with EasyList filter subscription.

    Extension "Adblock more."

    You also need the filters as "Easylist" subscription so after installation of
    with the right button on the icon of the status bar and choose 'Préférences'
    then on the filters menu-> Add-> EasyList subscription
    https://addons.mozilla.org/firefox/addon/adblock-plus/ (608,3 KB)

    Blocking unwanted Parasites with a Hosts file

    Blocking is at the level of the system
    http://www.MVPs.org/winhelp2002/hosts.htm
    View/use the HOSTS offered above as a plain text file
    http://www.mvps.org/winhelp2002/hosts.txt (596KO)
    If you add one of your own you will have to keep in mind
      and manually include the online hosts.txt file below your own.
    

    Hosts file is more oriented to protect your system against the really bad
    or things spread by its host name. Do not confuse with no antivirus protection more.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

    BLOCKED TOO - with Adblock Plus - no problem:

    With the ease of blocking items in Adblock Plus occasionally, you can be too aggressive and suddenly disappear all over the page. Adblock Plus provides functionality to help you know more precisely what you block with on a page.

    As seen in the Preferences ("Ctrl + Shift + F"), ABP maintains separate groups
    -The filters that you created yourself (rules of Exception, blocking rules, element hiding rules)
    -Separate groups for each subscription filter

    The report of blockable items ("Ctrl + Shift + V"), it's where you go to see what is blockable, what is blocked and if blocked what the rule is on the line with the mouse hovering. It would also enable the source, so you can see if it was your rule. The right mouse button opens a context menu with options. I show the columns are {address, filter, type, State} selected to the right of the headings. I have sort by State so block appear in red at the top.

    You can use the report to make the changes you need.
    We'll see changes you make in the preferences.

  • How to eliminate double what I in music

    How to eliminate the double of what I have in my music in Windows Media Player.

    Hi Larry gordon (Thumper),.

    I suggest you to rebuild the database of windows media player.

    Follow the steps in the article in the Microsoft Knowledge Base:

    You cannot view, add, or delete items in the library of Windows Media Player 11

    http://support.Microsoft.com/kb/925718

    See also article for more information:

    http://www.Microsoft.com/windows/windowsmedia/player/Webhelp/default.aspx?&mpver=11.0.5721.5260&ID=C00D10BA&ContextId=89&OriginalID=C00D10BA

    I hope this helps.

  • Double line objectlistfield

    I have an objectlistfield which shows a bunch of selectable items that can be selected. The problem with this is that each text is very long and needs at least two lines and the objectlistfield seems not to support this feature. It cuts just text.

    I tried increasing the height of each line, but the text does not change its format. I read that possible solutions would be to replace the "drawListRow" of the objectlistfield but I can't figure out how to do it properly.

    I'll appreciate any type of help.

    First, you must set the line height. Usually, I take double the font size and add 2 for good measure.

    Now you can adjust the drawListRow. You get a parameter which determines where you are in your current line. drawText takes x and y as input. You can draw the first line by using drawText(5,y,text) and the second using drawText (5, y + listField.getRowHeight / 2, Text2). You must take care of a linebreak correct etc, I usually do with a StringTokenizer.

  • eliminate duplicate lines

    Hello

    I have a report that shows some of the duplicate records and need to eliminate duplicate rows on the report. How to hide the lines duplicated on the presentation of the report so that only 1 row appears on the report instead of having the same line appearing more than once? I use BI Publisher 11.1.1.7. Thank you.

    It is advisable to eliminate duplicate rows to the data model, however, if you do not want to do it on the model please see below

    Whereas you use RTF model

    Change your for each tag to something like this

    If you don't succeed; Thanks for posting your model and an example of xml data

  • How to eliminate blank lines in addresses mailing label?

    I'm merging the address fields in an Excel 2007 spreadsheet to labels in Word 2007.  Not all labels to use all the fields of the address of the spreadsheet, if I want to be able to ignore a blank in this field entry so that there is not a blank line to the address on the label.  I remember in earlier versions this was done automatically.  How can I remove the blank lines in the merged label?

    Thank you for visiting the Microsoft answers community.

    The question you have posted is related to Microsoft Office, and would be better suited in the Group Discussion of Microsoft Excel. Please visit this link to find a community that will provide the support you want.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Double line, need to remove?

    Hello to everyone!

    I have a problem, I've created a style, but the text in this style removes a line...

    I add a page to, to make things more clear,

    the first line is a style that I created that deletes a line,

    the second line is another style that does not drop a line, and this is my goal,

    any suggestions?

    Thank you!

    Both are defined to align to baselinegrid. In order to work the baselinegrid both need to have the same ad leader. If a style has a leader more than the baselinegrid he will skip a line.

  • Compatible double line corrugated in Illustrator

    I'm trying to recreate the image attached in Illustrator by using the effect of zig zag, but I fight. What I'm trying to achieve is two distinct forms wavy line that I can fill with two different colors so that they look like the attached image, but the space between the lines is a solid color. I hope this makes sense.

    wavy lines.JPG

    Hi Drina,

    How about something like this:

    Edit: By following this video and you get to the end of direct selection tool make sure you do not select the end points, otherwise you will not be able to create corners properly.

  • eliminate the line duplicated with condition

    SQL query

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

    Select * from)

    SELECT

    OPTION_ID,

    INSTALLATION_DATE,

    ROW_NUMBER() on rownumber (option_type CSA control)

    Of

    v_device_options_details vdod

    WHERE vdod. EQUIPMENT_ID = 1604 AND vdod. Type_equipement = 'module' AND vdod. TYPE = "static".

    ) where rownumber between 0 AND 24.

    Result:

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

    OPTION_ID INSTALLATION_DATE ROWNUMBER

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

    1009 1.4E + 18 1

    1009                                                   2

    1015 1.4E + 3 18

    1015                                                   4

    3921 1.4E + 18 5

    The SQL above give me the result for both line or installation_date is null or not null. I am looking if installation date back two rows, and a line is set to zero and the other is not null, then it should display a rank only which is not null installation date. But if there is that one line whatever it is null or is not null then it should return this line only

    for example:

    Result:

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

    OPTION_ID INSTALLATION_DATE ROWNUMBER

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

    1009 1.4E + 18 1

    1015 1.4E + 2 18

    3921 1.4E + 3 18

    Thank you

    user12983407 wrote:

    Hello

    It is a single row only.

    expected result:

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

    OPTION_ID INSTALLATION_DATE ROWNUMBER

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

    1009 1.4E + 18 1

    1015 1.4E + 2 18

    3921 1.4E + 3 18

    Thank you

    OK, try this please:

    Select *.

    (OPTION_ID select,

    INSTALLATION_DATE,

    ROW_NUMBER() on rownumber (option_type CSA control),

    ROW_NUMBER() on rn ( OPTION_ID INSTALLATION_DATE order partition)

    OF v_device_options_details vdod

    WHERE vdod. EQUIPMENT_ID = 1604

    AND vdod. Type_equipement = "module".

    AND vdod. TYPE = 'Static')

    where rownumber between 0 AND 24

    and rn = 1



  • Double line with aggrigate function problem

    I want to see in my DB duplicate rows
    This query works fine

    SELECT COUNT (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate, fk_visit
    OF sch_events1
    Description of GROUP BY, fk_patprot, isconfirmed, actual_schdate, fk_visit having count (*) > 1


    But the thing is
    I want to see the event_id between the result column, event_id is not null and unique
    If I execute this query then output will be empty, said 0 selected lines.
    SELECT event_id,
    Count (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate,
    fk_visit
    OF sch_events1
    GROUP BY description, event_id, fk_patprot, isconfirmed, actual_schdate, fk_visit
    Having count (*) > 1


    What is the alternative for this request? I want these column in a query.

    EVENT_ID | DESCRIPTION | FK_PATPROT | ISCONFERMED | ACTUAL_SCHDATE
    1. AA | BB | CC | DD
    2. AA | BB | CC | DD
    3. QQ | QQ | QQ | QQ
    4. QQ | QQ | QQ | QQ
    5. QQ | QQ | QQ | QQ

    Thanks in advance

    Published by: Navneet Singh on July 22, 2011 08:34

    Hello

    One way to solve this problem is to use the function SUMMARY, rather than the aggregate COUNT:

    WITH     got_cnt          AS
    (
         SELECT     event_id
         ,      description
         ,     fk_patprot
         ,     isconfirmed
         ,     actural_schdate
         ,     fk_visit
         ,     COUNT (*) OVER ( PARTITION BY   description
                         ,            fk_patprot
                         ,          isconfirmed
                         ,          actural_schdate
                         ,          fk_visit
                          )     AS cnt
         FROM     sch_events1
    )
    SELECT     *
    FROM     got_cnt
    WHERE     cnt     > 1
    ;
    

    Most of the functions of aggregation (including COUNT) have analytical equivalents, which can produce the same results without causing the disintegration of all results in one line per group. The PARTITION BY clause from analytical functions corresponds to the GROUP BY clause in the aggregation queries.

  • Include styles double line in libraries?

    Is it possible to add a line style, consisting of a both a base and a top layer in a library, or must include the two lines in the library individually?  (see attachment)DoubleLineStyle.JPG

    You have the trunking and no appearance of 'group' applied.

    Graphic Styles are actually 2 States - objects and groups. Unfortunately there is no way of knowing, looking at the Panel, what styles are which.

    You don't need two lines, one line with an applied appearance.

    Drag that to the graphic Styles Panel and it will work very well.

    If you really want to use two lines, and then do a brush model out of them instead.

Maybe you are looking for