Advertisement
Guest User

Untitled

a guest
Dec 15th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 2.93 KB | None | 0 0
  1. SELECT itemdelive0_.itemdeliverydetail_id AS itemdeli1_4_0_,
  2.        itemdelive0_.itemdelivery_id       AS itemdeli2_4_0_,
  3.        itemdelive0_.partitiondate         AS partitio3_4_0_,
  4.        itemdelive1_.itemdelivery_id       AS itemdeli1_3_1_,
  5.        itemdelive1_.delivery_date         AS delivery2_3_1_,
  6.        supplierin2_.supplierinvoice_id    AS supplier1_9_2_,
  7.        itemdelive0_.amount                AS amount4_0_,
  8.        itemdelive0_.processed_by_rem      AS processed5_4_0_,
  9.        itemdelive0_.single_item_price     AS single6_4_0_,
  10.        itemdelive0_.bookingaccount_id     AS bookinga7_4_0_,
  11.        itemdelive0_.supplierinvoice_id    AS supplier8_4_0_,
  12.        itemdelive1_.delivery_note         AS delivery3_3_1_,
  13.        itemdelive1_.we_number             AS we4_3_1_,
  14.        itemdelive1_.bcc_id                AS bcc5_3_1_,
  15.        itemdelive1_.item_id               AS item6_3_1_,
  16.        itemdelive1_.supplier_id           AS supplier7_3_1_,
  17.        supplierin2_.batchno               AS batchno9_2_,
  18.        supplierin2_.bookingno             AS bookingno9_2_,
  19.        supplierin2_.barcode               AS barcode9_2_,
  20.        supplierin2_.invoice_date          AS invoice5_9_2_,
  21.        supplierin2_.invoice_number        AS invoice6_9_2_,
  22.        supplierin2_.processed_by_rem      AS processed7_9_2_,
  23.        supplierin2_.service_date          AS service8_9_2_,
  24.        supplierin2_.supplier_id           AS supplier9_9_2_
  25. FROM   itemdeliverydetail itemdelive0_
  26.        inner join itemdelivery itemdelive1_
  27.          ON itemdelive0_.itemdelivery_id = itemdelive1_.itemdelivery_id
  28.             AND itemdelive0_.partitiondate = itemdelive1_.delivery_date
  29.        left outer join supplierinvoice supplierin2_
  30.          ON itemdelive0_.supplierinvoice_id = supplierin2_.supplierinvoice_id
  31. WHERE  itemdelive0_.itemdeliverydetail_id = 21931828;
  32.  
  33. SELECT specialcon0_.specialcondition_id AS specialc1_5_,
  34.        specialcon0_.itemdelivery_id     AS itemdeli2_5_,
  35.        specialcon0_.partitiondate       AS partitio3_5_,
  36.        specialcon0_.condition_value     AS condition4_5_,
  37.        specialcon0_.is_allowed          AS is5_5_,
  38.        specialcon0_.processed_by_rem    AS processed6_5_,
  39.        specialcon0_.spcondtype_id       AS spcondtype7_5_,
  40.        specialcon0_.bookingaccount_id   AS bookinga8_5_
  41. FROM   specialcondition specialcon0_
  42. WHERE  ( specialcon0_.itemdelivery_id, specialcon0_.partitiondate ) IN (SELECT
  43.        itemdelive1_.itemdelivery_id,
  44.               itemdelive1_.partitiondate
  45.                                                                         FROM
  46.               itemdeliverydetail itemdelive1_,
  47.               itemdelivery itemdelive2_
  48.                                                                         WHERE
  49.               itemdelive1_.itemdelivery_id = itemdelive2_.itemdelivery_id
  50.               AND itemdelive1_.partitiondate = itemdelive2_.delivery_date
  51.               AND itemdelive1_.itemdeliverydetail_id = 21931828)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement