Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. amortillaro

    analytic functions

    Oh! Here is my sql statement: Select EmKey, AttDate, ROW_NUMBER() OVER (PARTITION BY EmKey ORDER BY AttDate) LinkDiscretShadow From Att_view Where (AttDate >= To_Date('01/01/2004','MM/DD/YYYY')) Thanks again... Aishel
  2. amortillaro

    analytic functions

    Hi all, I have here the version 806 of oracle db. I need to know from which version of the database the analytics functions are implemented. I know that for versions 8xx the analytics functions are not implemented for the pl/sql ( http://www.quest-pipelines.com/newsletter-v3/0402_D.htm under...
  3. amortillaro

    Row Numbers

    Hi sem: I found the final answer in http://www.quest-pipelines.com/newsletter-v3/0402_D.htm and there can be read: ANALYTIC FUNCTIONS AND PL/SQL In 8i, the analytic functions cannot be used in PL/SQL (in 9i, this is overcome as the SQL and PL/SQL parsers are merged). To work around this...
  4. amortillaro

    Row Numbers

    Actually against 8i, but is this not included in the 8i version, if not I think this is the wrong forum, but how can I work around this with the 8i version? And yes, was in pl/sql window. Thanks.. Aishel
  5. amortillaro

    Row Numbers

    I'm trying to use the following sql statement and looks like the line with the row_number() is not right at all. What am I missing? Error: FROM keyword not found where expected. Select EmKey, AttDate1, ROW_NUMBER() OVER (PARTITION BY EmKey ORDER BY AttDate1) SeqTest, field4, field5...
  6. amortillaro

    Row Numbers

    Steph why the portion "(ORDER BY 1)" I didn't know about it. What is the difference with this one? Select rownum enumerator, decode(sign(rownum-11), -1, 'T', 'F') SLA, fld1, fld2, fld3, fld4 From Att_tbl_Test Aishel
  7. amortillaro

    few rows update too slowly if table is big

    Or even more short... UPDATE EachPercent SET (BlankPercentAlloc) = ( Select PercentAlloc From AllPercents WHERE (EachPercent.Lx_SeqNum = AllPercents.SeqNum) ) WHERE (EachPercent.Lx_Date >= To_Date('01/04/2004', 'MM/DD/YYYY')) And (EachPercent.Lx_Date <= To_Date('01/18/2004'...
  8. amortillaro

    few rows update too slowly if table is big

    Then the where part in the subquery does not play any role?. If I'm ok then the result query will be UPDATE EachPercent SET (BlankPercentAlloc) = ( Select PercentAlloc From AllPercents WHERE (EachPercent.Lx_SeqNum = AllPercents.SeqNum) ) WHERE (EachPercent.Lx_Date >=...
  9. amortillaro

    few rows update too slowly if table is big

    Hi guys: I have this query: UPDATE EachPercent SET (BlankPercentAlloc) = ( Select PercentAlloc From AllPercents WHERE (EachPercent.Lx_Date >= To_Date('01/04/2004', 'MM/DD/YYYY')) And (EachPercent.Lx_Date <= To_Date('01/18/2004', 'MM/DD/YYYY')) AND (EachPercent.Lx_SeqNum =...
  10. amortillaro

    Simple question.. Tables

    14 digits, where 3 of them are decimals ###########.###
  11. amortillaro

    How to declare a cursor ...?

    Hi all: I'm creatinga package, with a procedure. Inside that procedura I'm declaring the following cursor and a variable of it's rowType: CURSOR crEmOneDay(pcrEmKey varchar2, paramDate date) IS Select EmKey, AttDate1, ClockIn, ClockOut From Att_Employees Where ((EmKey = pcrEmKey)...
  12. amortillaro

    how do I import an access table to Oracle9i?

    Go http://otn.oracle.com/documentation/migration.html You have to download the Oracle Migration Workbench, then download the pluggin for Access, install and run. Let us know... Aishel
  13. amortillaro

    error inserting in master-detail

    As far as I have found, Access can insert in a master-detail view, it seems that it manage the workaround when the record already exist in the master part. Oracle does not take care of that, so if the relation is not one to one, an error is raised. Does somebody have more ideas about this...
  14. amortillaro

    error inserting in master-detail

    Hi guys: another fresh day, and a question.. I have this two tables: CREATE TABLE Att_Test (FLD1 NUMBER(7,0) NOT NULL, FLD2 VARCHAR2(10) NULL, FLD3 VARCHAR2(10) NULL, FLD4 VARCHAR2(10) NULL, CHECK (FLD1 IS NOT NULL), PRIMARY KEY (FLD1)) ; CREATE TABLE Att_TestChild (FLD1 NUMBER(7,0) NOT...
  15. amortillaro

    privilege by row?

    Thank all you for help me with this. I greatly appreciate it. Now everything is working great, but a lot slowly than I predicted, but that's other thread theme. Sincerely.. Aishel
  16. amortillaro

    privilege by row?

    And... how do I commit the insert ? I have multiple inserts in a procedure, how and where should I commit the insertions, I mean, after each insert statement or just one at the end?? Thanks.. Aishel
  17. amortillaro

    privilege by row?

    Hi all: I creted a table in oracle and added 1 record to it through SQLPlus Insert Into mytable (fld1, fld2) values (str1, str2). From within MsAccess I created a link to myTable, and no records were return, then I added 2 record from access in the linked table and works ok. Still just this 2...
  18. amortillaro

    How to do bitwise operations in Oracle

    here is an extension to Or and Xor function bitor(p_dec1 number, p_dec2 number) return number is begin return p_dec1-bitand(p_dec1,p_dec2)+p_dec2; end; function bitxor(p_dec1 number, p_dec2 number) return number is begin return bitor(p_dec1,p_dec2)-bitand(p_dec1,p_dec2); -- or you could...
  19. amortillaro

    How to do bitwise operations in Oracle

    another example... 5 - 0101 3 - 0011 ---------- and operation 1 - 0001 .
  20. amortillaro

    How to do bitwise operations in Oracle

    Hi guys: I didn't found any bitwise operators in oracle, so I suppouse I should build a function for this (let me know if I'm wrong). Then how can I convert a number to it's binary representation in oracle? byte=1: 0000 0001 byte=4: 0000 0100 result: 0000 0101 Thank's.. Aishel

Part and Inventory Search

Back
Top