Need help for the conversion of the Date

Hi all

Your expert input is much appreciated.

Have a problem where it is my master table structure, whenever there is an update/delete/insert on the main table
There's a trigger that insert an entry in the Audit table.

SQL > cpp_Master Desc;
Number of Ent_id
Date of Ent_date

SQL > Desc Cpp_Master_Audit
Number of Ent_id
Date of Ent_date,
Insert_type varchar2 (1)

The problem is that when we insert the Sub record in the table, the ent_date column appears in this way.

SQL > INSERT INTO CED.cpp_Master (ENT_ID, Ent_date)
VALUES (6030902, TO_DATE (1 JANUARY 01 00:00:00 ', ' HH24: PUT DD/MM/YYYY "));

SQL > SELECT * FROM CED.cpp_Master;

6030902 01/01/0001

SQL > SELECT * FROM CDS. Cpp_Master_Audit;

6030902 01/01/0001

But when I update the date is coming up as below

SQL > update ced.cpp_Master set Ent_date = to_date (' 1 March 01', ' dd-mon-YYYY "") where ent_id = '6030902';
SQL > commit;

Tried under updates so

(

Update ced.cpp_Master set Ent_date = ' March 1 01' where ent_id = '6030902';

Update ced.cpp_Master set Ent_date = to_char (' 1 March 01', ' dd-mon-YYYY "") where ent_id = '6030902';

)

Whenever the output below always. (Insert has no problem, just update a problem)

I wonder why when there is an insertion of the date value is "01/01/01" in (Cpp_Master_Audit), but when I update the date value is "01/01/2001" ".

I need the value to insert as "01/01/01", as all that was updated in Master table (Cpp_Master)

SQL > SELECT * FROM CED.cpp_Master;

6030902 01/01/2001



My request to trigger:

CREATE OR REPLACE TRIGGER CDS. CPP_AUDT
AFTER INSERT OR UPDATE OR DELETE
ON CED.cpp_Master REFERENCING OLD AS OLD AGAIN AS NEW
FOR EACH LINE
DECLARE
l_action_code VARCHAR2 (1);
BEGIN

IF THE INSERTION
THEN
l_action_code: = 'I ';
ELSIF UPDATE
THEN
l_action_code: = 'U ';
ON THE OTHER
l_action_code: = ';
END IF;

IF (l_action_code = 'I'
OR l_action_code = '
OR (l_action_code = 'U'
AND (NVL (: OLD.)) ENT_ID, 0) NVL <>(: NEW.) ENT_ID, 0)
OR NVL (TO_CHAR (: OLD.)) Ent_date, ' mm/dd/yyyy'),
'X') <>
NVL (TO_CHAR (: NEW.)) Ent_date, ' mm/dd/yyyy'),
« X »)
)))
THEN
INSERT IN DEC. () Cpp_Master_Audit
ENT_ID, Ent_date, Insert_type
)
VALUES (DECODE (: OLD.ent_id, NULL,: NEW.ent_id,: OLD.ent_id),)
DECODE (l_action_code, 'I',: NEW.) Ent_date, 'd', NULL, 'U', DECODE (: NEW.) Ent_date,: OLD. Ent_date, NULL,: NEW. Ent_date)),
Insert_type l_action_code);

END IF;
END;
/

You wrote that ent_date is of type DATE

SQL > cpp_Master Desc;

Number of Ent_id

Date of Ent_date

so DO NOT fill with a chain, but with a date, and you have correct data in it.

This:

Update ced.cpp_Master set Ent_date = 1 March 01 ' where ent_id = '6030902';

is simply wrong that fill you your column DATE with a string and your NUMBER column with a string filter too.


Use

Update ced.cpp_Master

Set Ent_date = TO_DATE('01-MAR-0001','DD-MON-YYYY') where ent_id = 6030902;

and you will have no problems (as long as the NLS_DATE_LANGUAGE parameter is set correctly to support abbreviations English months)

HTH

Tags: Database

Similar Questions

  • Touch iPhone 5s does not not needing help for the data on it.

    iPhone 5 s (iOS 9) I have blue and red lines on the screen and the touch does not work at all, but the phone still works as usual outside the lines and contactless (voice on don't work/Siri as other items said worked, I do not have wifi for Siri). What I want is the data on the phone, I have a macbook pro (OS X 10.11) a fix would be better, but all I need is the data. I have icloud activated, but it was defective on my phone so don't know if I had a full backup and would like to know how to check. I have a form of computer backup about 2 months ago, but wanted all the pictures and data since then.

    At the back for up to my pc, I need is to unlock my phone, so any help will be appreciated.

    Thank you

    If connect to iTunes and perform a full backup

    And also connect on iCloud & see you backup recently

  • I need help for the upgrade of my current system.

    I need help for the upgrade of my current system.

    I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.

    I want to make the larger environment using the following:

    (1) apply Virtualization

    (2) apply to the failover process (clustering)

    "(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.

    Storage 4) that supports Raid (1 and 5)

    UTM excellent 6) that supports (SSL VPN, VPN Global)

    suitable backup solution 7)

    (8) good antivirus for clients

    my questions:

    (1) can you provide me with a good design for this environment

    (2) should I choose what operating system:

    Microsoft datacenter or company

    I know datacenter provide us the unlimited VM but needs per processor license

    so if I have two Grouped servers I want to buy 4 licenses

    and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?

    (3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?

    (4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?

    (5) what about win2k8 license for VM:

    lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?

    (6) can I use backExec license for SBS with windows 2008 standard

    (7) who better to virtualization AMD or INTEL

    (8) hyper V or VMware?

    (9) what of Microsoft data protection Manager... is this good?

    (10) what virtual machine manager? What are the benefites keys

    Thanks in advance

    Hello AnasAI,

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • Need help for the parent data!

    I and the application (app) that launches a window title and load a module (module1). In module1, I have a custom DateChooser component (dateChooser). I have stock introduced in dateChooser that needs to send the data back to module1, but instead it tries to send to app. I tried parent (which comes out wrong) & parentDocument but no luck. Can someone tell me how to get data in module1. Thank you!!

    He solved.

    Moved the event to module1 instead of dateChooser listeners and worked like a champ.

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Need help for the license

    Hi all

    I need help license the following environment:

    1 400 VDIs.

    2. associated VDI servers.

    3-8 non - VDI associated servers.

    This environment runs on 6 dual CPU servers.

    Concerning

    For this, but all these already include vSphere, ESX and vCenter licenses.

    Advanced also include VSAN.

    Advanced horizon is available as simultaneous user and username, so if you can choose what type of license would be the most suitable for you, in most cases, the concurrency model is best suited.

    So say you have 400 concurrent users, you need 400 advanced Horizon permits and are then all included vSphere licenses.

    Linjo

  • Need help with the date of Validation Urgent

    Hello

    We need help in the Validation Date.

    We have 2 fields of Date on the form the Start Date, End Date

    The requirement is: End Date (cannot be more than 30 years as of the start date).

    I wrote after the script on the exit eventof the End Date . But the problem is its calculation of 30 years from the current Date not from the Start Date

    var

    tDate = util.scand (' mm/dd/yyyy', new Date());

    var

    M = tDate.getMonth ();

    var

    D = tDate.getDate ();

    var

    Y = tDate.getFullYear ();

    var

    SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );

    App.Alert (SRes)

    If

    (SRes < = this.rawValue)

    {

    App.Alert ("cannot be greater than 30 years from the start date")

    () xfa.host.setFocus

    ce );

    }

    can someone help me please

    Kind regards

    Jay

    Hello

    You need to get the LCD field javascript and calculate & compare with the future date in date javascript.

    Try the following script.

    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand ("yyyy-mm-dd", sDate);

    nYear var = wkStartDate.getFullYear ();
    nMonth var = wkStartDate.getMonth ();
    nJour var = wkStartDate.getDate ();

    var wkFutureDate = new Date (+ 30 nYear, nMonth, nJour);

    sDate = EndDate.rawValue;
    var wkEndDate = util.scand ("yyyy-mm-dd", sDate);

    If (wkEndDate.getTime () > wkFutureDate.getTime ()) {}
    xfa.host.messageBox ("cannot be more than 30 years from the start date");
    xfa.host.setFocus (this);
    }

  • Need help for the structured data to SEO/Google webmaster section...

    I finished my Adobe Muse (www.redoaklegalpc.com) site and he has published on (online marketing) Business Catalyst and added the site on Google for webmasters... I downloaded my my sitemap.xml and had indexed pages. I've added the appropriate tags (H1, H2, H3, etc.), metadata, robot.txt and image assets. I edited the properties of page on all pages... but for some reason any Google still cannot read my pages. I use police Mako, which is listed as a 'web-safe' police When I shoot to the top of my site in the section of structured data, it contains no text and appears as images that are missing. (see image below) The text on the muse has no small image box in the corner, so it seems that I am using the html text and exporting is not the text as an image... So now I'm stuck. How can I do to make my text appears in Google so I can use the data marker to help Google to create site links, etc. ?

    google webmaster image not working.jpg

    Here's a similar thread which should clarify your doubts about Google Sitelinks - http://forums.adobe.com/message/5409377.

    Thank you

    Vinayak

  • Need help for the conversion of the lines in columns

    Hi all

    I have a table with 2 columns.
    colId value
    1 aaa
    2 bbb
    3 ccc
    1 ddd
    Eee 2
    3 fff

    I want to store the data in the table above in another table that has 3 columns.
    col1 col2 col3
    AAA bbb ccc
    DDD eee fff

    I am pivot query. But I don't get it properly. Help, please.

    I have Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production

    Thanks in advance,
    Girish G

    Published by: Girish G July 28, 2011 01:28

    Girish G wrote:
    Hey Tubby,

    Let me explain the real-world scenario.

    I'm the external source CLOB data in oracle stored procedure.

    The data are coming in the form below.

    col1 # | #col2 # | #col3 ~ | ~ col1 # | #col2 # | #col3 ~ | ~ col1 # | #col2 # | #col3

    # Here. #-> is the column delimiter.
    and ~ | ~-> is the line delimiter.

    I want to store these data in a table that has 3 columns.

    My approach was to extract the data for each column and store it in a temporary table in separate lines. Then move the data from the temporary table to the destination table.

    Are there other alternatives for my requirement? Please suggest.

    Thank you
    Girish G

    Much better when you show us the context like that.

    It's late and I have sleepiness in my bones, so it's not likely optimal.

    select
       regexp_substr(split, '[^@]+', 1, 1) as col1 ,
       regexp_substr(split, '[^@]+', 1, 2) as col2 ,
       regexp_substr(split, '[^@]+', 1, 3) as col3
    from
    (
       select
          replace(regexp_substr(source_str, '[^@]+', 1, level), '#|#', '@') as split
       from
       (
          select
             replace('val1#|#val2#|#val3~|~val4#|#val5#|#val6~|~val7#|#val8#|#val9', '~|~', '@') as source_str
          from dual
       )
       connect by level <= length(source_str) - length (replace(source_str, '@') )  + 1
    );
    

    I do not have an instance running (tested on XE) 11 so I can't use "magical" things like regexp_count and fun stuff. This should give you a basic idea of how to analyze data well.

    I decode your delimiters in something "more manageable" just because it's easier than worrying about the escaping of special characters and all that fun stuff I'm too asleep to try.

    Since you are dealing with a CLOB (you actually over 4,000 characters of data?) you have to give it up and look for a function in the pipeline as a suitable alternative.

  • Need help for the conversion of the nested loops to use the stream

    I'm trying to teach me how to effectively use the java stream, but finds it difficult to find the correct syntax for a problem of nested loop. I would like to convert the following code to use the Java 8 stream instead of nested loops.  Can anyone provide an example or a solution?

     /**
         * Return all members of stringListOne that begin with any of the strings in
         * stringListTwo
         *
         * @return all members of stringListOne that begin with any of the strings in
         * stringListTwo
         */
        Set<String> getFilteredStrings(Set<String> stringListOne, Set<String> stringListTwo) {
         
          Set<String> stringListOneFiltered = new HashSet<String>();
          for (String next : stringListOne) {
                for (String nextPrefix : stringListTwo) {
                    if (next.startsWith(nextPrefix)) {
                        stringListOneFiltered.add(next);
                    }
                }
            }
            return stringListOneFiltered;
        }
    

    Here's a test case for the above code:

    /**
         * Test method for {@link scratchpad.MyClass#getFilteredStrings(java.util.Set, java.util.Set)}.
         */
        @Test
        public final void testGetFilteredStrings() {
    
            MyClass uut = new MyClass();
            
            Set<String> stringListOne = new HashSet<String>();
            stringListOne.add("until");
            stringListOne.add("unite");
            stringListOne.add("under");
            stringListOne.add("prepare");
            stringListOne.add("pretend");
            stringListOne.add("prefix");
            stringListOne.add("prepend");
            stringListOne.add("post");
            stringListOne.add("positive");
            stringListOne.add("postgame");
            stringListOne.add("postpone");       
            
            Set<String> stringListTwo = new HashSet<String>();
            stringListTwo.add("post");
            stringListTwo.add("pre");
            stringListTwo.add("und");
            
            
            Set<String> result= uut.getFilteredStrings(stringListOne, stringListTwo);
            
            System.out.println(result);
            assertEquals(8, result.size());
        }
    

    Thanks for any help you can provide!  I get the hang of using the course of water, but this particular code was difficult.

    tmbc

    I found the following solution to my question:

    GetFilteredStrings (Set stringListOne, the value

    {Set stringListTwo)

    Predicate startsWith = p-> stringListTwo.stream () .anyMatch (prefix-> p.startsWith (prefix));

    Return stringListOne.stream () .filter (startsWith) .collect (Collectors.toSet ());

    }

  • What is the 'Live' page and need help with the data merge

    Hello

    Im very new to indesign naked with me. Im trying to merge data (need to create a fusion template?) and what I understand is that I need to be on the page 'Live '. Someone on the forum suggested this...

    There are two ways to set up the model of fusion. You can put your placholders on the master page or on the live page. If the placehlders are on the master page, only the frame (s) with placeholders, as well as other grouped objects, will be duplicated. On the live page, ID will try to duplictate EVERYTHING on the page, so you must be very careful about installation and sizing of objects.

    I want to be on the LIVE page... How can I do this? Got any other sort but can't get several records for the life of me to come.

    Thank you for your help adavance

    It is the opposite of multiple records per page. Make x copies of a single record on a page, put x sets of organized placeholders as you want on the page. A good way to do it is with Edit > step and repeat after you set up the left superior set. Now merge as one record per page.

  • Re: Need help for the restoration of the system

    Hi, I need help!

    I recently bought a Toshiba Satellite. I had some problems when trying to install some programs, some seem to fail. I wanted to clean the computer with system restore disc, only to find a record of 32-bit to a 64-bit computer.
    There is a repair of the setting system installed on the computer but it does not work, when I put it on disk, files, it cannot be opened.

    I can restore the system somehow repair; It must have been damaged by a virus. It should come with a big warning that the disk is not compatible!

    I have burned one day drive the first if I d just so you know! Any advice?

    Hello

    At first, I must say that you should tell us what model of laptop you have exactly.

    I put t know what cell phone you have and what you have with her, but in fact, it's that many laptops come with preinstalled OS 64-bit and 32-bit version on DVD.

    In this case, you must create own 64 bit preinstalled use Toshiba recovery media creator recovery DVDs. Alternatively, you can install 64-bit without DVD disk with HARD drive recovery option > http://aps2.toshiba-tro.de/kb0/HTD9102IR0000R01.htm
    Of course, this will not work if you didn't change the factory settings.
    Try if it will work for you.

    At the end I would say that what I wrote is detailed described in the document s user manuals but I presume that you didn t read it, right?

  • Need help for the particular case of selection

    Oracle DB 12 c, I think than 12.1.2

    drop table person_tests;

    create table person_tests)

    person_id number,

    test_type_id varchar2 (1).

    date of test_date

    );

    insert into person_tests (person_id, test_type_id, test_date) values (1, 'A', to_date('01012000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (1, 'A', to_date('01022000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (1, 'B', to_date('01032000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (1, 'B', to_date('01042000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (1,', to_date('01052000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (2,', to_date('01062000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (3, 'A', to_date('01072001','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (3, 'A', to_date('01082000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (3, 'B', to_date('01092000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (3, 'B', to_date('01102000','MMDDYYYY'));

    insert into person_tests (person_id, test_type_id, test_date) values (3,', to_date('01102000','MMDDYYYY'));

    People as a participant in some of the tests: A, B and C where each event is tagged with a date when finished.

    I need to get out of the only people who have done 2 tests of type A, 2 type tests B and 1 type C. I test have show the type of test and the date of the most recent of these tests. In the above example would output desired

    1 JANUARY 5 C 00

    3. A 7 JANUARY 01

    Hope that this definition of the logical problem

    Hello

    Sorry, I missed the obligation to show the most recent test_type_id.

    Assuming that the date to display is the date, that the minimum conditions were met (if not gratutitous trials came afterwrds), you can do something like this:

    WITH got_r_num AS

    (

    SELECT person_id, test_type_id, test_date

    , ROW_NUMBER () OVER (PARTITION BY person_id, test_type_id)

    ORDER BY test_date

    ) AS r_num

    OF person_tests

    WHERE test_type_id IN ('A', 'B', 'C')

    )

    SELECT person_id

    MIN (test_type_id) DUNGEON (DENSE_RANK LAST ORDER BY test_date) AS last_test_type

    MAX (test_date) AS last_test_date

    OF got_r_num

    WHERE r_num<= case ="">

    WHEN 'A' THEN 2

    WHEN 'B' THEN 2

    WHEN 'C' THEN 1

    END

    GROUP BY person_id

    HAVING COUNT (*) = 5-2 ' A + 2 ' B + 1 'C '.

    ;

    What test_type_id would you like to display tie for the final round?

    I just saw your post by saying that a person with 3 or more 'A' type tests should be excluded.  In this case, my original solution (with = in the WHERE clause) is what you want; only FINALLY used to get past test_type_id.  The solution in this post is for the situation where you don't care if there are 3 or more ' has, but you want to ignore all but the first 2.

  • Need help with the date

    Hi all

    I have a requirement where my table contains the values key1, Key2, and timestamp (example 24 January 2013 06:45:45)

    Now I have several values for the same key1, key2, and date with different stamps. I need to keep records only 2 with less output and max timestamp for key1 and key2.

    Can you please indicate how this can be done?

    Like this

    SQL > create table k (key1, key2 whole integer, date of ts);

    Table created.

    SQL > insert into k
    2. Select 1, 1, trunc (sysdate) + numtodsinterval (level, 'time')
    3 double
    4. connect by level<=>

    10 rows created.

    SQL > alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS ";

    Modified session.

    SQL > select * from k;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 02:00
    1 1 31 JANUARY 2014 03:00
    1 1 31 JANUARY 2014 04:00
    1 1 31 JANUARY 2014 05:00
    1 1 31 JANUARY 2014 06:00
    1 1 31 JANUARY 2014 07:00
    1 1 31 JANUARY 2014 08:00
    1 1 31 JANUARY 2014 09:00
    1 1 31 JANUARY 2014 10:00

    10 selected lines.

    SQL > select key1
    2, key2
    3, ts
    4 of)
    5. Select k.*
    6, min (ts) over (partition by key1, key2, trunc (ts)) min_ts
    7, max (ts) over (partition by key1, key2, trunc (ts)) max_ts
    8 k
    9         )
    10 where ts = ts or min_ts = max_ts;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 10:00

    SQL >

  • NEED HELP FOR THE RESOLUTION AND QUALITY?

    Hi guys

    I've done of these vector portraits type in photoshop for the past two weeks, we were all going well until, when someone sets up as a picture on facebook etc the quality is not as good as when I just display the image on my computer.

    I was from the new photoshop and using 800 x 800 pixels and the resolution to 72 pixels/inch, I wrong here somewhere? or is it the fact that I use photoshop to do this? im sure there are many people who will advise me to use illustrator, which I thought a lot to do. but I would like to know if this can be fixed in photoshop first.

    Thanks in advance for your help

    question.jpg

    It's a little pixel-ish in the areas...

    FAULTY zeth vector.jpg

    P.S. I also notice that it is working in the "defective" text box

    Once your support for a screen, you only need to worry about the pixel dimensions, the PPI is irrelevant. Facebook will tell you what's the resolution of each image. To my knowledge, Facebook does not support svg graphics in the opposite case, you could use Illustrator. Just make sure that when you don't create vector graphics in PhotoShop that you save a copy in a file buffer, as the jogging and png do not support vectors.

Maybe you are looking for