Is it possible to get the updated table records based on date & time.

Is it possible to get the updated table records based on date & time in oracle.
Thanks in advance.

no, actually i am asking update records using 'UPDATE
or DELETE' statement, but not insert statement.
Is it possible?
I think we can do using trigger on table, but problem
is if i am having 20 tables means i have to write 20
trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
Niall Litchfield
http://www.orawin.info/

Similar Messages

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Different ways to get the last 5 records ordered by date

    I have a query no that returns the tickets ordered by moddt, modification date,
    I was thinking of adding a select on top, to get the last 5 records of that list the select already generates. An other way was to use that select to create a view,
    and get the 5 last records that way. I also though of a possibly impossible cursor with a sequence, but hmm well I consider that not a good solution.
    So I'm trying to find a way, using a select, the topmost select which is not completed yet, to get the last 5 records. Maybe I should just try the rownumber thing again or something likewise.
    Select * from(
    select * from(
    Select ticketid, appliecatiecd, categorieid, substr(titel,&,200)||' ...' "titel", klantproriteitid, interneprioriteitid,
    (select g.voornaam||' '||g.naam
    from gebruiker g
    Where g.gebruikerid = t.gebruikerid
    And t.applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd))"aangemaakt door",
    (select s.statusdefoms "status"
    From status s
    Where s.statusid = t.statusid
    And t.applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd)) "status",
    Versieid,
    Moddt,
    Row_number() over (order by ticketid desc) rn
    From ticket t
    Where applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd) )
    Order by moddt)
    Where --

    Hi Floris,
    You can also use RANK: http://www.dba-oracle.com/oracle_news/oracle_faq/faq_beg_sql_top_n_rows.htm
    Regards Pete

  • Get the master table value based on multiple fact tables

    I have an master table which has to filter data based on multiple fact tables
    In the below sample, i need to get the list of MasterTable SId in an single query for fetching data from all the fact tables with an criteria.
    Can u let me know the single query to handle the below situation
    Select count(1) from dbo.DimMaster where sid in
    (Select Master_sid from dbo.factsales where SalesDate < '20141231')
    Select count(1) from dbo.DimMaster where sid in
    (Select Master_sid from dbo.factPurchase where PurchaseDate < '20141231')
    Select count(1) from dbo.DimMaster where sid in
    (Select Master_sid from dbo.factSalary where SalaryDate < '20141231')
    Select count(1) from dbo.DimMaster where sid in
    (Select Master_sid from dbo.factMarket where MarketDate < '20141231')
    ShanmugaRaj

    Please try below:
    SELECT
    (SELECT count(1)
    FROM dbo.DimMaster
    WHERE sid IN (
    SELECT Master_sid
    FROM dbo.factsales
    WHERE SalesDate < '20141231'
    )) as C1,
    (SELECT count(1)
    FROM dbo.DimMaster
    WHERE sid IN (
    SELECT Master_sid
    FROM dbo.factPurchase
    WHERE PurchaseDate < '20141231'
    )) as C2,
    (SELECT count(1)
    FROM dbo.DimMaster
    WHERE sid IN (
    SELECT Master_sid
    FROM dbo.factSalary
    WHERE SalaryDate < '20141231'
    )) as C3 ,
    (SELECT count(1)
    FROM dbo.DimMaster
    WHERE sid IN (
    SELECT Master_sid
    FROM dbo.factMarket
    WHERE MarketDate < '20141231'
    )) as C4
    -Vaibhav Chaudhari

  • Get record based on date time

    HI
    Im creating a site that generates leads. When a lead is
    generated it will select a broker in the list based on certain
    criteria. The thing i need to do is to select that broker which was
    used the last.
    There is a datetime field in my database which is used with
    the createodbcdatetime function
    How can i do this
    Thanx
    Carly

    I am getting the following error
    ODBC Error Code = 07001 (Wrong number of parameters)
    [Microsoft][ODBC Microsoft Access Driver] Too few parameters.
    Expected 2.
    Hint: The cause of this error is usually that your query
    contains a reference to a field which does not exist. You should
    verify that the fields included in your query exist and that you
    have specified their names correctly.
    My code is
    SELECT b.brokerid, b.contactname
    FROM broker b
    WHERE b.dateandtimelastvisited = (SELECT
    MIN(b1.dateandtimelastvisited)
    FROM broker b
    WHERE b1.brokerid = b.brokerid)
    I have checked all the names and they are all correct

  • Is it possible to get the containing table name of a UDT with ToCustomObj?

    Hi,
    I got several UDTs that I use in various different tables, in order to update them I need to know which table they came from (I handle updates manually). I'm looking for a way to store the table name the UDT came from in the ToCustomObject method during mapping. Is it possible to do that?

    Acutally, i wanna make clear about the concept of a "Thread"
    Is it true that ..
    the main() method is a thread , once I create another thread in the program , both of (or all of them) will contains it owns stack exception information ?
    My english is poor, please try to understand it. Thx

  • Is it possible to get the update status of a PDF form through automation

    Hi All,
    I'm working on adding the ability to load PDF files in a panel control inside a Tab control. Each new load of a PDF file I add a new tabpage and load the file into the new tabpage. When closing one of the tabs I'd like to see if I could check to see if the PDF file has changed since it was loaded. Is this possible through automation? Thanks for any suggestions.

    It's not really a  Acrobat question.
    Attached a vbs, which can handle it.
    HTH, Reinhard
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.GetFile("my.pdf")
    msgbox(f.DateLastModified)  

  • Sorting the table records based on date (stored as string in the database)

    Iam storing the date as string(varchar2) in the database.
    Date format: DD-MMM-YYYY hh:mm:ss am/pm
    example: 12-MAY-1984 11:12:45 AM
    now i have to sort the records in such a way that recent records should be displayed first, then past records.
    i need help reagrding

    Step one: Select from the table
    Step two: Convert the string to a date
    Step three. Order on this converted date descending (= recenct records first)

  • How to get the update file without using Nokia Sof...

    The network connection is unreliable and downloading the firmware update using PC Suite for my Nokia E90 proves difficult. Does anyone know how I can get the firmware version 300.34.84?
    The trouble is Nokia's Software Updater does not accommodate any slight interruption to the connection during the update process. I will update this discussion with what version of PC Suite I have once I get that info.
    Any help is kindly appreciated

    In fact, it is not Possible to get the update file without using Nokia Software Updater or you should search the net to find the update files in another place and even you get them, you can not use them with NSU.
    You can Update your Device with:
    1 - NSU (Nokia Software Update)
    2 - FOTA (Firmware Over The Air) for FP2 devices ONLY.
    3 - Nokia Care Center
    there is not other way to upgrade.
    Hope useful for u.
    regards
    Nokia N79 4GB
    SW Version: 32.001 RM-348 MEA

  • I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • I have the I-pad 1 and was wondering if it is possible to get the 5.0 update. Many aps now require it. Thanks

    I have the I-pad 1and was wondering if it is possible to get the 5.0 update. Many aps now require it. Thanks

    Yes - via iTunes on your computer.
    Connect the iPad to your computer and launch iTunes. Click on your iPad name under devices. Click on the Summary Tab in the iTunes window on the right and then click on Check for Update.

  • HT1222 Is it possible to get the SSL fix without having to install ios7 (which I tried and hated) or jailbreaking the devices?

    I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6).
    I tried iOS7 for a while but hated both the appearance and some of the things that changed.
    My ipods have updated to a new version of iOS6 with the SSL fix.
    I can't seem to get this option for the ipads or iphones.
    Is it possible to get the important SSL update for iOS 6 for iPhone5, iPad3, ipad4 and ipad mini (not retina) without having to go to iOS7?
    (It seems that I can get a fix by jailbreaking but I really don't want to do that if there's another option since I have no need for it otherwise.)
    Thanks a lot.

    Thanks, that's helpful. I expected that answer, since I read a load of stuff about Apple pushing people to get iOS 7 despite it having people who disliked it, but was hopeful it was not the case
    Some of the changes, like to calendar were just frustrating.
    Not a big problem though - just means that the next phone and tablet hardware update I get won't be apple.
    Thanks a lot for the swift and helpful replies.

  • Is it possible to get the position of a charcter from a string ?

    Hi !
    Is it possible to get the position of a charcter from a string ?
    Example:
    @VAR contains the following text "ABCDEFGHIJKLM"
    I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
    How can I get these numbers 6 and 8 ?
    So, I can use them in the MID(text,start,len) function.
    Thanks!

    Hi Sooraj,
    I'll explain more in detail:
    From a web-service I get a variable called @Spec.
    This variable contains the following:
    "MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
    or
    "MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
    I need the values behind MOTORTYPE[CR] and behind PART[CR]
    But you’ll see that the positions of these values are different each time.
    If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
    then I could use the MID() function to get the correct values.
    The values will be displayed in a table view (between other fields).
    An ABAP-call/function won’t work . . . how should I invoke this within a table column/field object ? (system action ?)

  • How do i get the update on my phone to update

    how do i get the update on my phone to update

    If you an iPhone 3G as shown in your signature, you can not upgrade to iOS 5. The highest possible for that model is 4.2.1.
    Stedman 

  • Is it possible to customize the ARUN table (J_3ABDBS) and delivery creation program (transaction VL04) in SAP?

    I am a student, pursuing MBA and currently doing internship with a big fashion and lifestyle company in India. I am stuck at a place where i need help.
    We are planning to give customer the control over the time of delivery of their orders as per their convenience. For that I am exploring the possibility of modifying the ARUN table in such a way that an extra column is added into the ARUN table. this field will contain a flag value (1/0) where '0' will indicate that the customer wants to block delivery for the specific items.
    at the time of delivery creation, transaction VL04 should check this flag value for every item. So when we try to create delivery for a whole order in one go, the delivery for the items with '0' flag value shouldn't be created.
    basically, my whole purpose is to enable our SAP system to create delivery on item level instead of on order level.
    Ques:
    1. Is it at all possible to do what i am thinking of?
    2. has any company customised the ARUN table and delivery creation program before?
    3. If we go ahead with this customisation in-house, will the SAP pull back the maintenance support on account of tempering with base programs?
    4. Also, please suggest other ways to do what i am trying to do?

    you can use the Tables SRRELROLES and IDOCREL
    if it is inbound delivery the use the business object BUS2015(outbound use LIKP)
    first get the ROLEID using the Delivery number as Objectkey(business obecjt BUS2015/LIK) from the SRRELROLES,
    then pass the ROLEID to the table IDOCREL to ROLE_A , get the ROLE_B,
    use this ROLE_B supply to ROLEID of SRRELROLES table(business object as IDOC, )
    get the objkey which is nothing But IDOC.

Maybe you are looking for

  • How can i access the methods if i only got the java class file?

    just like what the topic said...i would like to ask if i only got the class file of java without API documentation. how can i know what method is included ? thanks a lot. my email address is : [email protected]

  • Receiver SOAP Communication Channel  Error

    Hi, I am trying to post a file to a WebService but facing the below error in the communication channel : Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPT

  • A question about ascii converssion

    hi everyone i wanna write a program to convert any file that has been input into its ascii representation so my issues are :- what are the file types tht can be given as input to this prgm? how is it possible to verify the output and wht are the clas

  • Question about FTP Adapter from Seeburger

    Hi, Somebody tell me please, if I can use the FTP Adapter Seeburger 1.6.5 to send documents to a FTP Server Test Environment, without using none of the VAN supported on the FTP Adapter?. Best regards. Hervey P.

  • Having trouble streaming NBA league pass from my MBP to my TV in full screen mode, help please.

    So i have the Moshi mini dp and the apple hdmi cable. I cannot stream from my MBP to my TV in FULL sceen mode cleanly with 720p resolution. When NOT hooked up to my TV the MBP has no problem going fullscreen perfectly, then, when I connect the mini d