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 Chris Miller 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. JFDELGES

    security issues with stored procedures on AS400

    GRANT CREATE PROCEDURE TO user .. ?? IN SHEMA_NAME ?? I dont know if that's possible... You can perhaps grant to create in a shema and not grant to create in another...
  2. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    We can do a simple test... Just take a simple JOIN querry like this: select table1.* from table1, table2 where table1.id = table2.id and table2.col3 = 'TEST'; And transform it like this: select * from table1 where table1.id IN ( SELECT id FROM table2 WHERE col3 = 'TEST')...
  3. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    Is somebody running on AS400 V5R2 / V5R3 ? If that's the case, could you test the same kind of querry? I think that's a strange probleme...
  4. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    EXISTS is faster than the "correlated-IN-sub-querry" because EXISTS stops as soon as possible: It don't read all the records of the subquerry (in oposite of corralated IN, that do it...) The problem is that the sub-querry is NON CORRALATED, and then, should be run once and not for each row...
  5. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    ddiamond, I also think that writing a stored procedure is the only solution... :-) PS: IBM, WAKE UP, what's that !?
  6. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    MarcLodge, - The interim result table contains 2 rows; - The non-corralated sub querry is executed for each row in the main querry! (Visual Explains helps me...) Thanks for your help, but i can't find any solution, the problem seems to come from DB2 :-( (and i'm on V5R3) PS: don't...
  7. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    Thank you for your responses. I agree with you, ddiamonde, the querry with EXISTS is faster... This is the prove that DB2 is executing my "IN querry" like if it was a correlative sub-querry... (EXISTS operator is more powerfull for correlative sub-querries) But this is not a correlative...
  8. JFDELGES

    [DB2- AS400] S F WHERE col1 IN (SELECT ...) very very very slow !

    Hi, I have a problem with a simple querry: select * from tmissdta.prr000f WHERE NRPOL in ( SELECT NRPOL from TMISSDTA.PRR130F where nrprs = 01545454 ) I think that the sub-querry is executed for each row ... ! :-S It take approximatively 150 secondes to be executed! (And this is not a...

Part and Inventory Search

Back
Top