I NEED A FIRST 5 ROWS DATA

HI EXPORTS,
MY QURY IS
SELECT TOT.HTNO, TOT.RESULT_NAME, TOT.TOTALMARKS, TOT.TOTALRANK,
TOT.RESEXAMSLNO, TOT.RESACADEMICSLNO, TOT.RESGROUPSLNO,
TOT.RESCORPCOLLSLNO, TOT.DISTRICTSLNO
FROM RESULT_STUDENTMARKS_TOTALS TOT
WHERE TOT.RESEXAMSLNO = 1
AND TOT.RESGROUPSLNO = 1
AND TOT.RESACADEMICSLNO = 9
AND TOT.RESCORPCOLLSLNO IN (99)
AND TOT.DISTRICTSLNO IN (4)
AND ROWNUM <5
ORDER BY TOT.HTNO
I WANT FIRST 4 ROWS OF DATA BASED ON ASSENDING ORDER CAN U CHAGE IS QURY OR
GIVEN ANY EXAMPLE OF FIRST 4 ROWS OF DATA ORDER BY ONLY ONE FIELD IN THAT TABLE
THANX & REGARDS
ASHOK
Edited by: Ashok on Apr 28, 2011 11:01 PM

See
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:62364503028143
and
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:2853107469873
You have to filter the ROWNUM after the ORDER BY.
so :
select * from
SELECT TOT.HTNO, TOT.RESULT_NAME, TOT.TOTALMARKS, TOT.TOTALRANK,
TOT.RESEXAMSLNO, TOT.RESACADEMICSLNO, TOT.RESGROUPSLNO,
TOT.RESCORPCOLLSLNO, TOT.DISTRICTSLNO
FROM RESULT_STUDENTMARKS_TOTALS TOT
WHERE TOT.RESEXAMSLNO = 1
AND TOT.RESGROUPSLNO = 1
AND TOT.RESACADEMICSLNO = 9
AND TOT.RESCORPCOLLSLNO IN (99)
AND TOT.DISTRICTSLNO IN (4)
ORDER BY TOT.HTNO
where rownum < 6
order by 1Hemant K Chitale
Edited by: Hemant K Chitale on Apr 29, 2011 2:28 PM
Changed "rownum < 5" to "rownum < 6" to get 5 rows.

Similar Messages

  • Query regarding inserting a new row at first row data table

    hi all,
    I have a doubt regarding the insertion of new row in data table.I am now using the following code
    if (skillDataProvider.canAppendRow()){
    RowKey rowkey = skillDataProvider.appendRow();
    skillDataProvider.setCursorRow(rowkey);
    String skillID=getSkilID();
    skillDataProvider.setValue("Skill.SkillID", rowkey, skillID);
    int rowID=Integer.parseInt(rowkey.getRowId());
    tableRowGroup1.setFirst(rowID);
    Its working fine.But this code gives me provision to add the data at the last of the table.I need it to be at the first row.I tried
    RowKey rowkey=skillDataProvider.insertRow(skillDataProvider.getRowKey(String.valueOf(0)));
    but it shows some null pointer exception.Can anyone help me?
    Thanks in advance
    Sree

    I think AChervov has the right idea here.
    CachedRowSetDataProvider.canInsertRow(beforeRow) returns false, so you cannot insertRow().
    Therefore, you'll need to control the sort order yourself. I'd add a sort field to the database. Then use TableRowGroup.setSortCrtieria() to control the table display order. Or commit the append to the database immediately and reselect (refresh) the provider (assuming the provider has the desired "order by").

  • Second row data -  First row data of other column?

    Hi All,
    I have a requirement to show the second row data of the column1 as first row in column2. Please see the example below, where month is filtered <= 05.
    Month    Sales    Sales_New
    01         500      600
    02         600      700
    03         700      800
    04         800      900
    05         900      NULLIn the above example for month 05, column Sales_New should show NULL because it is the last row of the query.
    Thanks in advance.

    Something gone wrong with your config....!!
    How about
    "In Criteria tab use Month descending order and in Pivot table use ascending order"
    This is mandatory to achieve this..
    FYI: I've tested this in my local.
    If you need will send screenshot
    I appreciate if you mark as correct ;) else let me know

  • Date Controls in repeating table of Infopath 2013 only showing Calendar in first row date controls

    I am using SharePoint 2013 and InfoPath 2013.
    and using form library which uploaded at server.
    I am using repeating table over section . and place Date Controls.
    At the run time it is showing first row with START and END
    date controls.
    when I click INSERT Item it is showing second row with
    Date Controls.
    It is opening and showing calendar only on first row.
    But when I click Date Control button at second row it is not showing or opening calendar.
    Yesterday it was working. but today is not working at site.
    Although it is working on InfoPath 2013 Preview.

    Hi John,
    Based on your description, my understanding is that the Date Control cannot work correctly in the InfoPath form.
    I recommend to re-publish the form to SharePoint and then compare the results.
    Please go to the Library setting page of the library where the form is published > click Advanced Settings > click Edit Template in the Document Template > now the form will be opened in InfoPath Designer and then click Quick Publish button in the
    top of the menu tab.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to create a first row in crystal report as opening balance which contains two columns with debit and credit

    I have created a crystal report with credit and debit column. Balance column created on the report. Report running with cummulative balance. THis report contain an option for date range. If i filtered this report its not showing the actual balance. I need
    a first row to indicate previous balance as opening balance in this report.  And following is the formula for balance column.
    Whileprintingrecords;
    Shared Numbervar balance;
    Shared Numbervar display;
    balance:={@debit}-{@credit};
    display:=display+balance;
    display

    As this question is out of the T-SQL queue, thus I would suggest you consult Crystal Report questions to the correct forums.
    C#
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    VB
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    people there have more knowledge on Crystal Report.

  • Re:colors in Excel sheet (first row should be completely filled with yellow

    I am using the type pools OLE2 to put colors in the Excel sheet.
    What is the property to fill color in the Excel sheet cell.
    i got the text in colors but not the background...
    for example:
    i need the first row ie..the heading to be in yellow.
    Can some one send me some sample code .plz its urgent..........

    Hi,
    Check to see the following code:
     Sub Find_match()
        Dim Range1 As Range
        Dim Range2 As Range
        Set Range1 = Application.InputBox("Select the range on the first sheet to Compare", Type:=8)
        Set Range2 = Application.InputBox("Select the range on the second sheet to Compare", Type:=8)
    Dim range_row1 As Integer
    Dim range_row2 As Integer
    Dim loop_row1 As Integer
    Dim loop_row2 As Integer
    Dim find_value As String
    range_row1 = Range1.Rows.Count
    range_row2 = Range2.Rows.Count
    For loop_row1 = 1 To range_row1
        find_value = Range1.Cells(loop_row1, 1)
        For loop_row2 = 1 To range_row2
            If Range2.Cells(loop_row2, 1) = find_value Then
                If Range1.Cells(loop_row1, 2) = Range2.Cells(loop_row2, 2) Then
                    Range1.Rows(loop_row1).Interior.Color = vbYellow
                End If
            End If
        Next
    Next
    End Sub
    When the macro run, it will prompt to select the range in both sheet, the range is where the cells contain the data, it contains two columns.
    Jaynet Zhang
    TechNet Community Support
    Jaynet,
    Thank you so much. This is exactly how I wanted it to work. The only thing I wanted to know which I will try and figure out while I await your answer is if I can make this work between workbooks instead of worksheets? Currently, it does not allow me to switch
    workbooks when running the macro to select the second range. Thank you.

  • Not displaying first row in the table

    Hi
    I created web dynpro application. In that table,,
    Cardinality -
    0 to n
    Selection -
    0 to n
    public void wdDoInit()
        //@@begin wdDoInit()
         wdContext.currentLeaveElement().setLocation("1");
         for (int i = 0; i < EMP.length; i++)
                      IPrivateEtrecLeaveEligView.ILeaveElement element = wdContext. createLeaveElement();
                    element.setDepartment(EMP<i>[0]);
                    element.setLeaveType(EMP<i>[1]);
                          element.setYear(EMP<i>[2]);
                      element.setTimeSpan(EMP<i>[3]);
                      element.setNumofdays(EMP<i>[4]);
                   element.setLevel(EMP<i>[5]);
              wdContext.nodeLeave().addElement(element);
        //@@end
    In tha last declaration,,,,,,
    private static final String EMP[][] =
          { "Supply Chain", "Annual Leave", "2008", "Yearly", "20", "JC-16 Manager grade"},
         { "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-2A"},
         { "Brands & Development", "Monthly Leave", "2008", "Monthly", "23", "WL-4A"},
         { "Supply Chain", "Annual Leave", "2008", "Yearly", "23", "WL-5A"},
         { "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-6A"}
    But its not taking first row data in the table....
    will any one please help me where i did mistake.
    Regards
    Sushma

    Hi Sushma,
                     there is no problem in the below code :
    for (int i = 0; i < EMP.length; i++)
    IPrivateEtrecLeaveEligView.ILeaveElement element = wdContext. createLeaveElement();
    element.setDepartment(EMP[0]);
    element.setLeaveType(EMP[1]);
    element.setYear(EMP[2]);
    element.setTimeSpan(EMP[3]);
    element.setNumofdays(EMP[4]);
    element.setLevel(EMP[5]);
    wdContext.nodeLeave().addElement(element);
    //@@end
    but in the doinit method u have written this line  :
    wdContext.currentLeaveElement().setLocation("1");
    which means that , u have create a LeaveElement some where before this line and thats the reason the first row of ur table is empty.
    if the location value is same for all rows(for all leave element) then in the for loop set the value of the location as shown below:
    element.setLocation("1");
    Hope it helps
    Thanks and Regards

  • Get only the first row for duplicate data

    Hello,
    I have the following situation...
    I have a table called employees with column (re, name, function) where "re" is the primary key.
    I have to import data inside this table using an xml file, the problem is that some employees can be repeated inside this xml, that means, I'll have repeated "re"'s, and this columns is primary key of my table.
    To workaround, I've created a table called employees_tmp that has the same structed as employees, but without the constraint of primary key, on this way I can import the xml data inside the table employees_tmp.
    What I need now is copy the data from employees_tmp to employess, but for the cases where "re" is repeated, I just want to copy the first row found.
    Just an example:
    EMPLOYEES_TMP
    RE NAME FUNCTION
    0987 GABRIEL ANALYST
    0987 GABRIEL MANAGER
    0978 RANIERI ANALYST
    0875 RICHARD VICE-PRESIDENT
    I want to copy the data to make employees looks like
    EMPLOYEES
    RE NAME FUNCTION
    0987 GABRIEL ANALYST
    0978 RANIERI ANALYST
    0875 RICHARD VICE-PRESIDENT
    How could I do this?
    I really appreciate any help.
    Thanks

    Try,
    SELECT re, NAME, FUNCTION
      FROM (SELECT re,
                   NAME,
                   FUNCTION,
                   ROW_NUMBER () OVER (PARTITION BY re ORDER BY NAME) rn
              FROM employees_tmp)
    WHERE rn = 1G.

  • In table  rows , i need to check the date validation of perivous ent'd rows

    Hi All,
    I'm using adf 11g.
    I have a table with add and delete button in jsff. In jsff page , i mean table row have one lov column and date column and enterable inputtext fields .
    Conditions 1.lov value , date column and inputext value should be unique . this can be handled by alternate key.
    2. if user enters value like
    lov value date inputtext
    v1 01/02/2011 ipt1
    v2 01/02/2011 ipt2
    v1 01/01/2011 ipt3 here , lov selected v1 is already selected in first row, i want to validate dat second occurance of v1 with combination date and inputtext should be
    unique --- it makes unique with compare to first row .but i have to check second v1 date should be always greater than the first v1's date .
    User can add n number of records of keeping date variance , but the same lov value having record , the date should be always less than the perivouse entered row date (same lov value ).
    how can i handle this date check . business rules / validation .
    thanks in advance .
    Edited by: user9010551 on Jun 16, 2011 9:23 PM
    Edited by: user9010551 on Jun 16, 2011 11:25 PM

    you have to make use of this technique - in memeory filtering
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#CEGBEICF

  • Return first row entered based on date column

    I'm trying to select the first entered row in a table, as judged by the datetime column. If more than one row has the same date and time, then only one row should be returned (any row having that datetime is fine). Some processing will occur on that row and then it will be deleted. The select statement is used thereafter to select the next (first) entered row in the table, etc. This way, the rows are processed first-in first-out (FIFO) style. Here's my example table:
    create table my_table
    datetime date,
    firstname varchar2(50)
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'ken');
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'john');
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'sue');
    commit;
    Here's my example select statement, which returns simply one row of the above, since all are the same date and time:
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 1;
    My question is, if I use the following
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table );
    It returns all 3 rows:
    DATETIME FIRSTNAME
    02-APR-12 11:00:00 ken
    02-APR-12 11:00:00 john
    02-APR-12 11:00:00 sue
    So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 2;
    return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.
    Edited by: tem on Apr 2, 2012 2:06 PM

    Hi,
    tem wrote:
    ... So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,, ROWNUM
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 2;
    return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.ROWNUM is assigned as rows are fetched and considered for inclusion in the result set. If the row is not chosen for any reason, the same ROWNUM will be reused with the next row fetched. ROWNUM=2 will not be assigned until a row with ROWNUM=1 has been included in hte result set.
    So, in your example:
    SELECT  *
    FROM    my_table
    WHERE   datetime = ( select min(datetime) from my_table )
    AND     rownum = 2;Say the first row that happens to be fetched has firstname='ken'. It is assigned ROWNUM=1, and fails the WHERE clause condition "WHERE rownum = 2".
    Say the next row fetched has firstname='john'. ROWNUM=1 hasn't been used yet, so this row is also assigned ROWNUM=1, and it fails the WHERE clause for the same reason. Likewise with the next row; it also is assigned ROWNUM=1, and it also fails.
    When using ROWNUM in a WHERE clause, you almost always want to say "ROWNUM = 1" or "ROWNUM <= n".
    You could also use the analytic ROW_NUMBER function:
    WITH     got_r_num     AS
         SELECT     datetime, firstname
         ,     ROW_NUMBER () OVER (ORDER BY  datetime)     AS r_num
         FROM     my_table
    SELECT     datetime, firstname
    FROM     got_r_num
    WHERE     r_num     = 1
    ;Here, all values of r_num are available, so it would make sense to say things like "WHERE r_num = 2" or "WHERE r_num >= 2".
    Edited by: Frank Kulash on Apr 2, 2012 5:31 PM
    Added to explanation.

  • CTL(control file) need help to load column data in test file  as row data

    Dear Experts,
    My data file having data like
    COMPANY1 SUPP1 SUPPTYP1 SUPPDISTANCE1...SUPP100 SUPPTYP100 SUPPDISTANCE100
    COMPANY2 SUPP1 SUPPTYP1 SUPPDISTANCE1...SUPP100 SUPPTYP100 SUPPDISTANCE100
    i am trying to load in to oralc table desc as bellow and trying to load this into row data how can i do?
    this ctl will load only for first suppliler only how can i load rest 99 supplier
    LOAD DATA
    INFILE '/data/Supplier.dat'
    INSERT
    INTO SUPPLIERDETAIL
    COMP_CD position(1:8) char(8),
    SUPPLR_ID position(9:15) char(7),
    LOC_ID position(16:20) char(5),
    SUPPLR_DIST position(21:24) char(4),
    SUPPLR_TYP position(25:) char(1)
    Many thanks
    Kalinga

    I take it that you are running the process on UNIX box based on '/data/Supplier.dat'.
    Try to –
    1. Break the records into multiple lines > Try using awk/ or perl
    COMPANY1 SUPP1 SUPPTYP1 SUPPDISTANCE1...SUPP100 SUPPTYP100 SUPPDISTANCE100
    COMPANY2 SUPP1 SUPPTYP1 SUPPDISTANCE1...SUPP100 SUPPTYP100 SUPPDISTANCE100
    Should appear in your output file as –
    COMPANY1 SUPP1 SUPPTYP1 SUPPDISTANCE1
    COMPANY1 SUPP100UPPTYP100 SUPPDISTANCE100
    COMPANY2 SUPP1 SUPPTYP1 SUPPDISTANCE1
    COMPANY2 SUPP100UPPTYP100 SUPPDISTANCE100
    2. Output from 1 -> Save it to a file
    3. Pass the output (point 2) as the Input file for the CTL to read
    Etbin’s Solution is fine but don’t forget you have for each row 100 occurrences of Supplier information – so that makes 100 INTO Table’s code to put into your CTL file.
    Shailender Mehta

  • We can able to load master data through manually FIRST ROW IS EMPTY

    Hi,
        we can able to load master data through manually without loading but in that screen where we we type the data FIRST ROW IS EMPTY.PLZ tell me why that is empty

    Becasue SAP BW already creates a Blank Line, it cannot create a new one again for you.
    So, when you loaded the Blank like with description, it uses the existing blank line and creates test for it.
    Each row in the table will have a SID.
    e.g.,
    12345 text1
    23446 text2
    You cannot have
    12345 text1
    12345 text2
    If you load the above, you will have "12345 text2" in the table.
    Same way, you cannot have two SIDs for the same key, so your new text is used for the existing Blank Key value.
    SAP creates this:
    Key, Description
    when you loaded the Master Data, you have:
    " ", "whatever you loaded".
    Edited by: Ananda Theerthan on Apr 27, 2010 7:03 AM

  • Preview not displaying List View Data past first row

    I guess this is a simple question.  I have my Excel model working the way I wish it to.  The components before preview are functioning accordingly.  When Preview is run, the data in the two spreadheet tables is not displayed past the first row.
    Basically, is there some gremlin within Flash that is ignoring or deleting the functions (VLOOKUP) in the targeted display area?  By all rights, this should be working, and I am kind of surprised that it isn't

    If the data is static, it will display.  My research turned up that VLOOKUP and HLOOKUP functions will not display after the first row of data.
    Source:  Xcelsius 2008 Dashboard best Practices by Loren Abdulezer, pages 407-408
    My problem is that in making the data dynamically selectable, and using multiple functions to bring results to the top of the spreadsheet instead of their respective locations; it has created a situation where I have an Excel model that works, but an Xcelsius model that does not.
    Doesn't look like there really is a solution to what I am trying to do, short of completely rebuilding the model, which I do not have the ability to replicate.

  • Pie Chart Only Displays the Data of the First Row of the Table

    Hi Experts,
    I have a problem that the pie chart will not change when click on a second row or other rows on the table. It only displays the data of the first row of the table. How can I set up to make it reflect on any rows when I click the table? Please help, and I would very appreciate that.
    Thanks,
    -Don

    Thanks a lot for your response. I have realized that the pie chart behaves that way, so I just use the filter to see the specific data that I want. Also, you can drag the row and drop it right at the first row to see the data in the pie chart.

  • Showing data for the first row only

    Oracle Experts ,
    Below is my table in oracle.I wnat show Company ID only for the first row of each company. Table 2 is my output .
    Company Country Company ID
    BARCALAYS UK 1
    BARCALAYS USA 1
    BARCALAYS Australia 1
    Kingfisher UK 2
    Kingfisher INDIA 2
    Kingfisher INDIA 2
    Output Table 2 :
    Company Country Company ID
    BARCALAYS UK 1
    BARCALAYS USA Null
    BARCALAYS Australia Null
    Kingfisher UK 2
    Kingfisher INDIA Null
    Kingfisher INDIA Null
    Please give me a sql query.
    Many thanks in advance .
    Regards,
    Dirasa

    based on if a particular country is appearing twice for the same company and company_id wether to show the company_id for that country or not you may use any of the below queries :)
    /* Will show compan_ID twice if the country is repeated */
      with x as (
          select 'Foo' company_name, 'UK' country, 1 company_id from dual
          union all
          select 'Foo', 'USA', 1 from dual
          union ALL
           select 'Foo', 'USA', 1 from dual
           UNION ALL
          select 'Foo', 'AUS', 1 from dual
          union ALL
        select 'Foo', 'AUS', 1 from dual
          union all     
          select 'Bar', 'UK', 2 from dual
          union all
         select 'Bar', 'USA', 2 from dual
         union all
         select 'Bar', 'India', 2 from dual
    SELECT company_name,country,CASE WHEN rn=1 THEN company_id ELSE NULL END company_id
       FROM (SELECT
       company_name,company_id,country,rank()over(PARTITION BY company_name,company_id ORDER BY country) rn
        FROM x)
    /* Will NOT show compan_ID twice even if the country is repeated */   
      with x as (
          select 'Foo' company_name, 'UK' country, 1 company_id from dual
          union all
          select 'Foo', 'USA', 1 from dual
          union all
          select 'Foo', 'AUS', 1 from dual
          union ALL
        select 'Foo', 'AUS', 1 from dual
          union all     
                 select 'Foo', 'USA', 1 from dual
           UNION ALL
          select 'Bar', 'UK', 2 from dual
          union all
         select 'Bar', 'USA', 2 from dual
         union all
         select 'Bar', 'India', 2 from dual
    SELECT company_name,country,CASE WHEN rn=1 THEN company_id ELSE NULL END company_id
       FROM (SELECT
       company_name,company_id,country,row_number()over(PARTITION BY company_name,company_id ORDER BY country) rn
        FROM x)
    /* Will show compan_ID twice if the country is repeated */
      with x as (
          select 'Foo' company_name, 'UK' country, 1 company_id from dual
          union all
          select 'Foo', 'USA', 1 from dual
          union ALL
           select 'Foo', 'USA', 1 from dual
           UNION ALL     
          select 'Foo', 'AUS', 1 from dual
          union ALL
        select 'Foo', 'AUS', 1 from dual
          union all     
          select 'Bar', 'UK', 2 from dual
          union all
         select 'Bar', 'USA', 2 from dual
         union all
         select 'Bar', 'India', 2 from dual
    SELECT company_name,country,CASE WHEN rn=1 THEN company_id ELSE NULL END company_id
       FROM (SELECT
       company_name,company_id,country,dense_rank()over(PARTITION BY company_name,company_id ORDER BY country) rn
        FROM x)
                    Cheers!!!
    Bhushan

  • How to skip the first row in Text file (in Sql Loader)

    Hi All,
    How to say the control file to skip the first row of the text file..
    i just going this example
    this is my text file:
    01308201222455038130820122245503813082012224550382
    1090358 474661834012245503813082012 0075 0 00000000000 000000000 00000130820120000000000000000 136.84 -833.3911082012 000000 000 009035847466183 090358 47466183 0015007514300000970001430000097700BH1150274792012081320120811201208122012-08-11-22.45.50.38369899999.0075LIQJGL17
    Control file:
    OPTIONS
    DIRECT = TRUE ,
    PARALLEL = FALSE ,
    SKIP = 1,
    ERRORS = 0
    UNRECOVERABLE
    LOAD DATA
    INFILE      <"FILE_DIR">
    BADFILE <"FILE_DIR">
    INSERT
    INTO TABLE DAILY_TRANSACTION
    WHEN (1:1)='D'
    TRAILING NULLCOLS
    Above the Eaxmple text file i need to Skip the first row which is
    01308201222455038130820122245503813082012224550382
    please can anyone suggest me is this correct?
    if not please correct me please
    since two days i been serching but i didn't get any thing
    Thank's
    Edited by: Lavanya on 24-Sep-2012 00:51

    Lavanya wrote:
    Hi Jeneesh,
    Thank you for your prompt replay
    I didn't try to load this control file
    And i need one more question
    I have Text file in my Machine which Contains very huge data so i was wrote one control file for that, and i got FTP connection also as well as.
    My question is firstly I need to PUT the Text file Into Unix Server isn't?
    so when i trying to put the text file into unix it's giving an error
    ftp>put c:/abc.txt
    Not connectedYou haven't succesfully made your FTP connection to the server.
    e.g.
    c:\>ftp
    ftp> o testserver
    Connected to testserver.mycompany.com.
    220 testserver FTP server ready.
    User (testserver.mycompany.com:(none)): myuser
    331 Password required for myuser.
    Password:
    230 User myuser logged in.
    ftp>then you can use FTP to put your data to the server. Remember, if you are transferring a text file from a windows based operating system to a unix server you need to put it in ASCII mode...
    ftp> ascii
    200 Type set to A.
    ftp>which will automatically convert the windows CR/LF pairs to the single LF character used by unix.

Maybe you are looking for

  • Strange characters in report .csv export

    Hello, When I enable .csv export in my report, a name like Chiràc Jaqués apears as Chirèc Jaqués in the csv. I understand it has to do with charactersets but I don't know how to solve it. Cheers Jacob

  • Startdoc fails on Adobe PDF printer

    I am doing an hdc.startdoc on the Adobe PDF printer. It fails with a pop up message that asks me to repair the installation or not. Previously, I had several other adobe products (Acrobat Reader 7, Photoshop Elements 5.0, and Flash) on my system and

  • Report for 18 months------ really urgent

    Hi All, we are using FR 11.1.2V here I have a different requirement from my client He want to see the report for 18 months and that also to be automated, here the problem starts we are allowing user to selelct only one start periode and one start yea

  • Clipping a video clip...how???

    hi, I was wondering how i clip an mp4. It is a very long clip, (a couple hours) and i'm trying to figure out how to do it. I know Quicktime Pro does it, but isn't that program like 30 bucks? are there any other programs that are free that I can clip

  • Where to paste my old (default) profile

    windows xp I have located my backed up profile and can do a "copy" when I reopen firefox and go to basic application open containing folder quit a few files with different extensions open up...which one do I paste to?