Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. SELECT
  2. oc.id,
  3. caas.hydrant_from,
  4. caas.hydrant_without,
  5. pb.concrete_volume,
  6. pb.diameter_inner,
  7. pb.diameter_outer,
  8. pb.height,
  9. pb.name_product,
  10. pt.name_type,
  11. sn.name_schema,
  12. ht.name_hatch_height,
  13. ht.name_hatch_type,
  14. tt.throat_type_height,
  15. tt.name_throat_type,
  16. u.*,
  17. un.name_unit,
  18. un.hydrant
  19. FROM
  20. wk_cas_construction_and_assembly_scheme AS caas
  21. INNER JOIN productbrand_throattype AS temp
  22. INNER JOIN wk_cas_product_brand AS pb
  23. INNER JOIN wk_cas_product_type AS pt
  24. INNER JOIN wk_cas_schema_name AS sn
  25. INNER JOIN wk_other_hatch_type AS ht
  26. INNER JOIN wk_other_throat_type AS tt
  27. INNER JOIN wk_cas_unit AS u
  28. INNER JOIN wk_cas_unit_name AS un
  29. INNER JOIN wk_mainwork_object_composition AS oc
  30. INNER JOIN wk_mainwork_object AS o
  31. WHERE
  32. o.id = 77 AND
  33. pb.id = caas.product_brand_id AND
  34. pb.id = temp.productbrand_id AND
  35. pb.product_type_id = pt.id AND
  36. tt.id = temp.throattype_id AND
  37. tt.id = oc.throat_id AND
  38. tt.hatch_type_id = ht.id AND
  39. u.id = oc.unit_id AND
  40. u.unit_name_id = un.id AND
  41. u.schema_name_id = sn.id AND
  42. caas.schema_name_id = sn.id;
  43.  
  44. select new SomeClassName(a.fieldOne, a.fieldTwo) from AnotherClassName a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement