Request removal

Hello world...

I want to write a query suppression for a situation like below

Table: DBG. PUBS

the columns are CODE, PRICE, DATE1, DATE2

001-50 JANUARY 5, 11 FEBRUARY 5, 11
002 100 1 JANUARY 11 6 MARCH 11
003 40 5 APRIL 11 MAY 6, 11


I want to remove all lines except the line that has the oldest DATE1...
In the above case to remove all lines except 002...
This table has more lines than this, and not in the correct order according to the DATE1

Thank you!!

Pascale

Hello

DELETE FROM DBG.PUBS
WHERE date1 != (SELECT MIN(date1)
                FROM DBG.PUBS);

Keep in mind that if you have multiple records with the same date all those with the date min will be preserved...

See you soon

Ben

Published by: Munky on June 17, 2011 10:24 - didn't read the question properly and got mixed up with MIN - changed MAX

Tags: Database

Similar Questions

  • Feature Request: Remove advertising from Adobe first Clip video with paid subscription?

    Pay the subscription to Adobe CC every month. I don't know why you add the additional advertising at the end of my Youtube video when exporting Adobe Premiere clip, but I would appreciate not having this announcement at the end. I am registered when using the app.

    How can I remove this?

    -Cara

    Hello Cara,

    You can remove the bumper of Clip by going to the settings of the application (button at the top left of the screen) > preferences > off Toggle 'Add bumper '.

    You good to go!

    Best,

    Peter Garaway

  • How to remove the password of BIOS on Satellite M40

    I'm looking for the password Bios or how can I reset the password for Bios of Satellite M-40.
    I forgot my Bios password and I can't used my laptop more.
    Please I need help

    I have bad news for you...:(le mot de passe dele de BIOS ne peut être enlevé facilement.)
    As far as I know that the ASP (Toshiba authorized service provider) can remove unknown BIOS password...

    Therefore, I see no other solution as to contact the local ASP and request removal of the password.

    Goodbye & good luck

  • Satellite Pro A100 request BIOS password which was never put

    Hiya

    Have had my Satellite Pro A100 for almost 2 years and that all this time have never even heard of a password system, but all of a sudden, I turned on the laptop this morning and it does not load. I tried pressing F12 (can't remember why, it seemed the thing to do to read the instructions at the bottom of the screen), but nothing happened so I just turned off the power. Put on again, he asked the system password. (A black screen with a blue box, with the old text base BACK type fonts).

    I have no idea what it could be, I tried the word system and tried just pressing on enter without text in there but it says incorrect password. I removed the battery and left 10 hours but put it back in the machine there is no difference, it will not always go through this screen.

    I am the only user on this machine, have no idea what caused it. I am aware of security, have installed on complete McAfee AV and did not have anything odd happen at all. Didn't last changes made to the configuration, no new software etc. so I have no idea what prompted it.

    Can anyone help please?

    Thanks in advance
    Rachel

    This password seems to be a BIOS password, but I have no idea why this password is displayed if you have never defined it.
    Unfortunately, there is not a lot to see the BIOS password can be removed without the help of an ASP.

    Then, contact the service provider allowed in your country and request removal of the password.

    I also recommend updating the BIOS after the technician removed the password.

    Do you know how to find the ASP closest?

    Here is a site with all FSA worldwide:
    http://EU.computers.Toshiba-Europe.com/-> support download &-> find an authorized service provider

    See you soon

  • Satellite A200: I can't access the BIOS - get for password request

    I lost access to my laptop.

    1. I spend on the portable computer to sleep to wake up.
    2 error appeared when the bios loading (TRX error or something like that).
    3. I restart the laptop
    4. I get error BIOS checksum with suggesstion press f2 for bios Setup or f12 for load default settings
    5. I try to press f2 and get dialogue with password request.
    6. I restart the laptop again.
    Now computer laptop view to load OS and bios access password request.
    How can I solve my problem?

    PS. I've not set the password for laptop before. Pwd and pwd startup BIOS was empty.

    This seems really strange!
    I put t know what is happening or what you were doing with you laptop or BIOS, but it seems the BIOS password is necessary.

    Cannot remove this BIOS password by yourself! You will need help from the partner of service authorized in your country!

    Just contact the guy and request removal of the BIOS password

    Good luck

  • Must be logged in as an administrator to remove startup programs

    Why can't request removal of startup programs.  Message application for registration as an administrator.  How do I do that?

    Original title: removal of startups

    You should be able to remove the startup items by using the msconfig tool.  This can be done by clicking Start-> Run-> msconfig and press ENTER.  From there, go to the Startup tab and uncheck any programs you do not want to run at startup.  Be careful on what you uncheck the box and not just uncheck an item if you don't know what it is.

  • How can I clear the CMOS/BIOS on Satellite L10 password

    HOW can I clear the CMOS/BIOS password?

    Hello

    Sorry to say this, but it of not possible to remove the BIOS password without help from the Toshiba authorised service provider.
    The special procedure is required to remove this password.

    Therefore, you have only one way out. Contact the ASP in your country and request removal of the BIOS

  • Satellite A210 how to reset the BIOS password unknown?

    Hey guys

    I have a BIOS password on my Toshiba Satellite A210, I have no idea what it can be. One day, when I turned on my laptop, it came with a black screen with a blue rectangle in the Middle says "Enter password". I tried to enter my Windows login password, but it did not work.

    After 3 times to try the laptop password puts himself off the coast. No member of my house using my pc, and even if they did, they don't know how to do something like that anyway. Also, I have seen on other forums that it occurred to people for no reason.

    Another thing, I would like to try one of the programs of resetting the BIOS as KeyDisk or CmosPWD but if I put a CD, DVD, Flash drive, etc, in my pc and press F12 for the boot menu, nothing happens so I can't do that!

    Please help, I can't use my PC and I am currently on my sisters pc!

    Hello

    It's very strange?  :|
    Never heard of passwords that appear automatically without any action

    In any case, let's talk about proposals of solution;
    The only real solution is to remove the BIOS password and this can be done ONLY by an authorized service partner.

    I recommend to get in touch with ASP in your country and request removal of the BIOS password.

  • Microsoft Blacklist radiation

    Hello

    We have a problem where MIcrosoft has decided to blacklist our exchange - for no reason at all.

    When we try to send someone on a Microsoft domain, note that this is not necessarily outlook, hotmail or Live, we are seeing this message:

    DB3FFO11FD055.mail.protection.Outlook.com gives this error:
    Service unavailable; Client host [xxxx] blocked using FBLW15; To request removal from this list, please forward this message to * address email is removed from the privacy *.

    We have reported this and received a reply that it was registered. As a public sector body, we can afford to blacklist you randomly we.

    I tried to get hold of someone to speak about this to DATE.
    I need help with this ASAP.

    Please complete one of the forms
  • ORA-00904 invalid IDENTIFIER IS to COME WHEN you RUN THE AVERAGE SCALAR

    SELECT (SELECT tran_descn FROM TRANCODEINFO WHERE a.txn_type = tran_code

    ) As txn_type, a.tot,.
    *(*

    SELECT COUNT () OF (* _)
    _ SELECT f.txn_auth_id FROM FINGERTXNLOG WHERE f.bank_id = '515' f AND f.txn_date_time BETWEEN
    TO_DATE (' ' 2011-03-01 00:00:00 ', ' DD/MM/YY HH24:MI:SS') AND TO_DATE (' ' 2011-11-17 23:59:59 ', ' DD/MM/YY HH24:MI:SS')_
    _ AND f.txn_status = 'C' AND f.txn_type = 'BV' AND f.txn_type = a.txn_type AND f.terminal_id = NVL('',f.terminal_id)

    *) a*

    )
    AS (OF) succ_records

    SELECT f.txn_type, COUNTY of f (f.txn_auth_id) AS total FROM FINGERTXNLOG WHERE f.bank_id = '515' AND f.txn_date_time BETWEEN
    TO_DATE (' ' 2011-03-01 00:00:00 ', ' DD/MM/YY HH24:MI:SS') AND TO_DATE (' ' 2011-11-17 23:59:59 ', ' DD/MM/YY HH24:MI:SS')
    AND f.txn_type = 'BV' AND f.terminal_id = NVL('',f.terminal_id) GROUP BY f.txn_type

    ) a

    the format of the request, removed some features of underscores and commented on some useless *.
    This is what you want?

    SELECT
         (
              SELECT
                   tran_descn
              FROM
                   TRANCODEINFO
              WHERE
                   tran_code = a.txn_type
         ) AS txn_type,
         a.tot,
         ( --*
              SELECT
                   COUNT (*)
              FROM
                   (--*
                        SELECT
                             f.txn_auth_id
                        FROM
                             FINGERTXNLOG f
                        WHERE
                             f.bank_id = '515'
                        AND f.txn_date_time BETWEEN TO_DATE ('2011-03-01 00:00:00','YY/MM/DD HH24:MI:SS') AND TO_DATE ('2011-11-17 23:59:59','YY/MM/DD HH24:MI:SS')
                        AND f.txn_status  = 'C'
                        AND f.txn_type    = 'BV'
                        AND f.txn_type    = a.txn_type
                        AND f.terminal_id = NVL('',f.terminal_id)
                   )
                   a
         ) AS succ_records
    FROM
         (
              SELECT
                   f.txn_type ,
                   COUNT (f.txn_auth_id) AS tot
              FROM
                   FINGERTXNLOG f
              WHERE
                   f.bank_id = '515'
              AND f.txn_date_time BETWEEN TO_DATE ('2011-03-01 00:00:00','YY/MM/DD HH24:MI:SS') AND TO_DATE ('2011-11-17 23:59:59','YY/MM/DD HH24:MI:SS')
              AND f.txn_type    = 'BV'
              AND f.terminal_id = NVL('',f.terminal_id)
              GROUP BY
                   f.txn_type
         )
         a
    
  • Problem of object strange intrusion via cfmail

    Now later in my adventures of coldfusion!

    I have a variable field that I put in my subject line of the email:

    < cfset objet_message = ' apply for leave has been deleted by #User_Name #-FYI only "/ >

    < intrusion via cfmail

    to =[email protected]

    object = "" # objet_message # "type ="html">"

    Dumping User_Name watch what it is: 'Bob Marley', with only 1 space between the first and last name.

    Dumping the objet_message filed prior to sending the email says: "Leave request deleted by Bob Marley - FYI Only"

    However, when the mail arrives, 17 additional seats have been added between the names!

    "Leave request removed by Bob Marley - FYI only"

    I even tried Trim without result.  And the type = "text", "plain" and simply omitted, make no difference in the subject line.

    Any suggestions?

    Do what Adam has suggested.  Put the output of the var between a pair of delimiters such as [] so that you can visually see what is in the var.  Try out its length as well, just in case there are all nonprinting characters in it - the length is what you see visually on the screen?  Also try to view this result by VIEW SOURCE.  Finally, what happens if you include the content of the var even in the body of the email?  As someone has pointed out, the SUBJECT line is not HTML formatted.

    -reed

  • Need help to remove a request to track my location on my Mac

    After visiting the company's Web site to learn more about their products, I suddenly received an ad box asking permission to "follow my position." After a little research I found a reference to a request similar Apple, describing how his location service use diagnostics and data use for improving service, as well as directions for "opting" out Although I followed instructions when I reached the place designated, the company named as the originator of the request was not displayed.

    The only option in the ad is a box to give permission to use the data for one day. I have no interest in giving them permission to use my data for a reason, but still can't remove the ad. In fact, the effort to remove it manually just produce extra copies of the announcement.

    Any ideas on how to get rid of it?

    Safari, I guess?

    Safari-> Preferences-> Privacy: Set "Location Services" 'decline without asking for confirmation.

    If the window is always displayed, or you can not pass the notification to access preferences and then treat it as a popup scam: quit and restart it by pressing the 'shift' for a clean start without any of the pages Web previously automatically active the reopening.

  • How can I remove a contact request blocked since the recent contacts?

    Hi, here's the scenario: I receive an unwanted contact request that I block, but he then goes on to appear in recent contacts. Been here for a month now, and it's boring!

    Easy to remove on the iPhone, but on iPad with it has limited functionality, can it be done? Thank you: happy:

    Well there you go; I just answered the question to play whist.

    Bring up the faulty contact in "recent" and drag your finger on the name of the contact, from left to right. This will bring up an option "Clear" to the right of the contact name. Touch it, and the contact disappeared. Bliss! y):

  • Some how my email was requested to be removed and the link to verify that I DON'T want be removed takes me to some site randomly, please help.

    Some how my email was requested to be removed and the link to verify that I DON'T want be removed takes me to some site randomly, please help.

    Your post is a little vague, but I fear that you may have received a phishing e-mail. Please tell us all about this request but do not follow any links or give any information at this stage.

  • My HP Photosmart C4100Series printer will not remove a previously requested printing package, and is now stop printing of other things. How to rectify it please?

    I was printing a document from page 52, and then discovered that I was not necessary. After printing, the printer will not remove the print request, therefore it prevents me to print other documents. How can I correct this?
    I turned off the printer, but nothing helped.

    Thank you for your help. Very useful, but I had already found the doctor of scan HP printer on the internet and it was so simple to use and also corrected the fault in a few seconds.

    However, once more, I thank very you much.

Maybe you are looking for

  • There is a red phone at the top of the screen icon where notifications dot is usually.  What does that mean?

    There is a red phone at the top of the screen icon where notifications dot is usually.  What does that mean?

  • Lenovo Service bridge security warning

    I have a D20 (Win7PRO) I have tried to install Lenovo Service bridge on. I thought it was installed but the attached image keeps popping up on every reboot. This D20 is a workstation on an Active Directory System. Yes, I've logged as administrator bu

  • Manipulation of the gray stars

    If iTunes will assign ratings to my podcast episodes when I have NOT assigned a side (grey stars), why in the world can't the smart playlists include the ability to filter based on whether the star is grey or black?  Essentially, this change in iTune

  • Counters

    Hello world I'm doing two separate meters on a structure of true and false case. I want to count every time the true and false cases occurs and then make sense to charges outside of the structure. I did some research and saw that you can put a loop r

  • Deselect the program to open a file

    I left the tick inadvertently in the "always use this program" when you try to open a file that is not compatible with my computer. How can I change this?