Copy of data

Hi,
I have two tables.
The first one is DOSSIER :
create table dossier (
num_dossier varchar2(7) NOT NULL,
compagnie varchar2(20),
garage varchar2(20),
date_ouverture date ... );
the second one is BACKUP.
create table BACKUP (
num_dossier varchar2(7),
compagnie varchar2(20)
date_ouverture date);
I need to select all the NUM_DOSSIER, COMPAGNIE and DATE from dossier where the date is lower that the sysdate-90 days and copy the value in the BACKUP table.
How can I do that ?
Tx in advance,
Xavier.

Try this
insert into BACKUP
(select num_dossier
,compagnie
,date_ouverture
from DOSSIER
where date_ouverture < (sysdate - 90)
Hope this helps...

Similar Messages

  • Excel Spreadsheet as Data Source & Copying that Data to an Existing SharePoint List

    Hello,
    I have an Excel spreadsheet that I get daily and cut and paste into an existing SharePoint list. Is there a way to make that Excel spreadsheet a data source and copy the data to an existing SharePoint list with less manual involvement?
    Tools at my disposal include: SharePoint 2010 Designer, InfoPath, and Access.
    I thought there might be a REST method I could use via InfoPath but I'm not aware of any offhand.
    Goal is to have a method to upload/overwrite an Excel file (stored in a SharePoint library), every day, and then automate the process of copy it to a SharePoint list (actually overwriting the old data in the SharePoint list).
    Any help would be greatly appreciated.

    Hi,
    We can create a console application and use C# code to read the data from the Excel file and using SharePoint .Net Client Object Model to add the data into a SharePoint list, then create a windows job to execute the console application.
    The following articles for your reference:
    How to: Create a Console Application
    https://msdn.microsoft.com/en-us/library/office/ms438026(v=office.14).aspx
    C# How To Read .xlsx Excel File With 3 Lines of Code
    http://www.codeproject.com/Tips/801032/Csharp-How-To-Read-xlsx-Excel-File-With-Lines-of
    How to: Create, Update, and Delete List Items
    https://msdn.microsoft.com/en-us/library/office/ee539976%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Schedule a task
    http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • UCCX 10.1 - Linked Server - Copying HR data to external SQL Server for reporting

    I have a customer that is migrating from UCCX 7 to UCCX 10.  They currently have a 2008 SQL Server R2 that they use for custom reports.  They have a package that runs nightly to copy relevant data from UCCX 7 to the their server and then run reports daily against that database.   Pretty easy when everything is in MS SQL.  My plan was to set up a linked server in SQL 2008 to the UCCX server.  This would allow me to easily run a query against Informix and move the data over as before.  However, I am having problems adding the linked server.
    I have installed the Informix drivers (both 32 and 64 bit) during the troubleshooting.
    The DSN is created and connects to UCCX just fine.
    When I attempt to add the linked server using 64 bit driver DSN I get the following:
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "UCCX101".
    OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    OLE DB provider "MSDASQL" for linked server "UCCX101" returned message "[Informix][Informix ODBC Driver][-11302] Insufficient Connection information was supplied". (.Net SqlClient Data Provider)
    When I attempt to add the linked server using the 32 bit driver DSN I get the following:
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "32UCCX101".
    OLE DB provider "MSDASQL" for linked server "32UCCX101" returned message "[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application". (Microsoft SQL Server, Error: 7303)
    It appears to me there is a 32/64 bit conflict no matter route I go.
    Can anyone tell me what I am missing?
    Is there a better approach to take to achieve the ultimate goal?
    Any suggestions are greatly appreciated.
    TIA
    John

    I have created linked servers on an SQL2K box that points back to CCX. First off, you have to set the password for the UCCX HR user to some known value.
    exec sp_dropserver 'fonccx9_01', 'droplogins'
    EXEC sp_addlinkedserver
    @server='fonccx9_01', -- Name of the Linked Server, when it is created.
    @srvproduct='Microsoft OLE DB Provider for ODBC', -- OLE DB Provider.
    @provider='MSDASQL', -- Provider_name.
    @datasrc ='fonccx9-01', -- DSN Name of the ODBC Data Source.
    @provstr= -- ODBC Connection String.
    'Driver={IBM Informix ODBC};Server=fonccx9_01_uccx;Database=db_cra; Uid=uccxhruser; Pwd=Some-Password;'
    EXEC sp_addlinkedsrvlogin
        @rmtsrvname = 'fonccx9_01',
        @useself = 'FALSE',
        @rmtuser = 'uccxhruser',
        @rmtpassword = 'Some-Password'
    Note that the server name is "fonccx9-01", but the dash is an illegal character in the server name, so you have to change that to an underscore. You still have to manually build the ODBC data source on the box where you are trying to create the linked server.

  • How to copy the data in a cube to another cube

    Hi ,I created one cube by copying.Now I want the data available in earlier cube to Copied Cube.Plz can any one help in this.
    Thanx in Advacnce
    Vasu

    You can use the export datasource option to copy the data.
    Another option is:
    The steps for copying the contents of one cube to another:
    1. Go to Manage -> Recontruct of the new cube.
    2. Select the "selection button"(red , yellow, blue diamond button).
    3.In the selection screen you can give the technical name of the old cube, requests ids you want to load, from & to date.
    4.Execute and the new cube would be loaded.
    Its all that easy!!!!!!
    Refer this link:
    Copying the structure of an Infocube

  • Copying directory data from one server to another

    Hi friends,
    I maintain two directory server (ver. 5.2) with same domain (xxx.com) and i have to copy the entire data from one server.
    I tried to export from a one server and import it on another server, but it didn't get copied and it is getting object class violation error,
    Please give me some tips to copy the entire data along with password encryption, so the users should be able to login to the new server.
    Regards,
    Iqbal

    Before you copy the data, make sure the new server has all user-defned schema (objectclass, attribute) which reside on the first server. What you can do is to copy the schema over first. Then you can copy the data over.

  • Copy the data from first line while dynamically adding a new line in table

    Hi,
    1. There is a table
    2. An add button adds a new line to the table using 'AddInstance'
    3. A record is entered in the first line
    4. When the add button is clicked it adds a new line and along with it copies the data entered in the first line
    My question is how to copy the data from the first line and show it in the new line added. This is required so that user can use most of the common values in the first line.
    Thanks,
    Nikhil

    You can use the following Java Script in the Click event of the button.
    // Get the number of rows in the table
    var nrows = xfa.resolveNodes("page.table.DATA[*]").length;
    // Add a new instance(row) to the table
    page.table.addInstance.instanceManager(1);
    xfa.form.recalculate(1);
    // Copy the values from the first line to the newly created row
    page.table.DATA\[ nrows \].field1.rawValue = page.table.DATA\[ 0 \].field1.rawValue;
    ..........field2
    ..........field3
    Thanks,
    Chandra Indukuri

  • Help - "Cannot copy file: Data error (Cyclic Redundancy Check)"

    Hey there,
    I'm having problems with my Zen Mosaic EZ00. Up until a few weeks ago it has been working fine however, since then, has begun to show the error message? "Cannot copy file: Data error (Cyclic Redundancy Check)" whenever I try to copy files on to it. I have tried the recovery software available and it only updated the firmware. Some files do occasionally (and very occasionally) copy but usually it shows the error message and cancels the copy.
    I would really appreciate if anyone could help me with this?
    Many thanks :smileytongue:

    sorry for the double post!
    ive just realised that my ipod isnt actually charging, its just got the orange light blinking!
    not too sure what is going on now!
    lol

  • 2006 iMac running 10.4 OS. I copied files to ext. drive. Put in 10.6 disc and did a clean install (format) of 10.6. Copied data from ext. drive back to Mac. I didn't get all the files. CAN I REVERT BACK TO THE 10.4 OS SO I CAN COPY MY DATA PROPERLY?

    2006 iMac running 10.4 OS. I copied files to ext. drive. Put in 10.6 disc and did a clean install (format) of 10.6. Copied data from ext. drive back to Mac. I didn't get all the files. CAN I REVERT BACK TO THE 10.4 OS SO I CAN COPY MY DATA PROPERLY?

    How did you copy files to the external drive, and what files did you copy? Did you drag and drop in the Finder? Use a clone utility? What files did not successfully copy?
    If you reformatted the drive as part of your install, then you won't be able to recover any files from the drive. Reverting back to (reinstalling) 10.4 will not help you.
    Do you have a complete-drive backup of your old system?
    Matt

  • Want to copy/append data in one table to another

    Hi,
    I have two similar tables Alo_table and Alo_table_test with different indexes, partitions etc.
    Alo_table has some data. I want to copy/append this data in to Alo_table_test for further testing. How to copy/append data without changing the other settings from Alo_table to Alo_table_test?
    Thanks in advance,
    S

    May be you are Looking for MERGE statement
    It will Insert New Record if not Found to your Destinamtion table or Update if Record Found
    MERGE INTO bonuses B
    USING (
      SELECT employee_id, salary
      FROM employee
      WHERE dept_no =20) E
    ON (B.employee_id = E.employee_id)
    WHEN MATCHED THEN
      UPDATE SET B.bonus = E.salary * 0.1
    WHEN NOT MATCHED THEN
      INSERT (B.employee_id, B.bonus)
      VALUES (E.employee_id, E.salary * 0.05);

  • How to copy the Data From Oracle Table To SAP Table

    Hi Friends,
    We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
    I appreciate any suggestions regarding this.
    Regards
    CSM Reddy

    Hi,
    since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
    To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
    Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement. 
    Regards
             Frank

  • How can I copy the date and time of a received email in Mountain Lion?

    I recently installed the new Mountain Lion, however I am having a serious issue with the mail application. I use the mail application to download all of my emails and then I copy each one in to a Filemaker Database. I used to be able to copy the headers (from, to, subject, date, time) but now with the new mail in Mountain Lion it will not let me copy the date and time of the email. This is the most important part for me as I need to be able to track when the email was received once I have pasted it in to the Filemaker program. Anyone know if there us an option so that the date and time can be copied from the email?

    I suppose you could copy it from the Raw Source. View>Message>Raw Source

  • Copy Master Datas in FICo from 1 Company Code to Another   ---  Very Urgent

    Hi Peers
    I want to copy all the FI & CO master Data like G/L a/cs , Vendor Master, Customer Master, Cost Centers, Cost Elements, Commitment Items, Funds Center & Assets from one company code to another company code. Both the company codes will have same Chart of accounts. Is there any t.Code by which i can just extend these masters to my company code. Plz help. its very Urgent.
    Expecting a reply ASAP.
    Regards
    Rajaram

    Hi
    In customization,  Assign Chart of A/cs to company code there u will get the path for copying one company code to another company GL Masters.
    And also the CCtrs u already assign to the first company code.  Once u copy the data for one company to another automatically it will copy to another company code.
    Hope this is useful to u.
    Shammi

  • User exit to copy the data from sales order to billing document

    hi everyone,
    Is there an user exit to copy the data from sales order to billing document?
    Regards
    Prabudh

    hi
    copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
    http://www.planetsap.com/Userexit_List.htm
    User exits for Sales order
    1•USEREXIT_DELETE_DOCUMENT
    2•USEREXIT_FIELD_MODIFICATION
    3.•USEREXIT_MOVE_FIELD_TO_VBAK
    4.•USEREXIT_NUMBER_RANGE
    5.•USEREXIT_SAVE_DOCUMENT
    User exits for billing
    1.•USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    2.•USEREXIT_ACCOUNT_PREP_KOMPCV
    3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
    5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Reward if Useful
    Thanx & Regards..
    Naren..

  • Copying table data accross a dblink using dbms_datapump

    Hi Friends,
    I need to copy a table data accross a dblink into another table of same structure.
    There is a requirement to use 10g dbms_datapump package to copy the data.
    The problem is that I can export into a dump file and then import it into the other database, But we do not need the dump file. We need directly exportimg and simultaneously importing into the table through dblink without generating the intermediate dump file.
    If any one have a sample code or document link, Please do help.
    cheers

    But the application we have that uses the database cannot be changed to read from a CLOBWhy can't you change the application?
    Well, anyway you should point out to your superiors that Oracle documented years ago to not use LONGS anymore...
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm#sthref3806
    It clearly states:
    LONG Datatype
    Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases.
    How do I go from CLOB to LONG?I'm sorry, cannot help you on that one, I don't think you can do that at all (Oracle wants us to stop using LONGS, so, it's a one-way conversion...):
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1037232794454#15512131314505
    So: NO built_in, you'll need to write a program if the clob is ALWAYS LESS THAN 32k in size, you can use plsql..but is that the case in your case? Only you know that.
    I believe that question is still unanswered on this forum, but you might try searchin for answers on this forum, and
    the 'Database-General' forum: General Database Discussions
    Perhaps you can google a Q&D workaround...
    ( And consider convincing your collegues to just convert your LONGS to LOBS)
    Edited by: hoek on Apr 8, 2009 5:43 PM

  • What is the process to copy Master Data in Production to Development?

    Hi,
    we have an outdated master data in our BW development environment and we would like to bring it to the same level as our BW production environment.
    What is the process to copy Master Data in Production to Development?
    Thanks

    Hi,
    You can try system copy for this.
    Pls chk this document , might be useful
    Activity to be performed after client copy :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bff13df2-0c01-0010-6ba7-bc50346a6fd8
    BW system Copy :
    System Copy BW
    Re: bw system copy
    BDLS :
    Re: After R/3 Refresh
    BDLS on BW Q/A
    Check following OSS notes.
    Note 543715 - Projects for BW Migrations and System Copies
    Note 886102 - System Landscape Copy for SAP BW 2.X, 3.X and NW2004s BI
    Note 325525 - Copying and renaming systems in a BW environment
    Note 184754 - Procedure after BW database copy
    client copy
    http://help.sap.com/saphelp_nw04/helpdata/en/c2/17e73a86e99c77e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/69/c24cc34ba111d189750000e8322d00/frameset.htm
    Client Copy
    http://help.sap.com/saphelp_nw04/helpdata/en/ff/9be1817d811c41985662da25061f98/frameset.htm
    Thanks,
    JituK

  • How can I copy the date and time in Mail header?

    How can I copy the date and time in Mail header?
    I can copy everything else in the header for pasting in another application. 
    But not the date and time which is absolutely vital.
    It was ok in 10.6 

    I suppose you could copy it from the Raw Source. View>Message>Raw Source

Maybe you are looking for

  • How to print the BARCODEs in Oracle 6i Reports

    Hi, I want to print the barcodes in the report outputs. I am using Oracle Reports 6i and Oracle Applications 11.5.10.2 with 11g database. Please help me with the requirements. Thanks, Pavan

  • Mac Pro - Newly Updated to Leopard - No Longer Boots

    I upgraded my Mac Pro to Leopard yesterday and everything appeared to go smoothly. I was experiencing issues with left mouse clicks not registering but after running Software Update and getting the latest updates I was able to click again. I tried to

  • Using Font Folio in InDesign to export in PDF to app store

    Our customer is creating applications using In Design.    These applications are exported into PDF format for viewing on mobile devices.    Is there any additional licensing needed from Adobe in this scenario? Also, in the future (not now) if the cus

  • Develop Settings Adjustment

    I hope its OK to announce a new plugin here. I know its not OK in the Lightroom forum proper. I wouldn't even do it here if it wasn't taking 2+ *******' months to push it through the exchange. Please just let me know if you have an objection and I'll

  • Mac Mini Server for VPN routing

    Hi, my local internet provider does not provide static IP addresses. To nevertheless make the Server available in the internet I found a service that provides a vpn tunnel with a fixed ip address. To connect to this tunnel I shall use "tunnelblick".