- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
SELECT region_key AS region
,NAME(containedobjectsbasement_key) AS building
,container_node_id
,containedobjectsexchange_key
,object_name AS ats
,number_ranges AS diapazon
,exchange_type_name AS tip_ats
,exchange_mount_capacity AS emkost
,operator_licence_number AS license
,trace_line_relay_type_name AS tip_sl
,COUNT(trace_line_id) AS count5
,otkuda_nax AS otkuda_ats
,kuda_blya AS kuda_ats
,seven_nation_army
,ROWNUM
,cable_type_name
,logical_cable_length
,ATS_NAME
FROM (SELECT DISTINCT r.object_id AS region_key
,n.node_id AS containedobjectsbasement_key
,n1.container_node_id AS container_node_id
,e.node_id AS containedobjectsexchange_key
,CAST(name2(e.node_id, e.exchange_class_id) AS VARCHAR2(128) ) AS object_name
,e.exchange_mount_capacity AS exchange_mount_capacity
,CAST( (SELECT stragg(first_number || '-' || last_number || '
' )
FROM number_interval
WHERE exchange_id = e.node_id) AS VARCHAR2(1024) ) AS number_ranges
,(SELECT e1.exchange_type_name
FROM exchange_tl e1
WHERE e1.exchange_type_id = e.exchange_type_id) AS exchange_type_name
,CAST( (SELECT s3.licence_number
FROM service_operator_type s3
WHERE s3.service_operator_type_id = e.operator_id) AS VARCHAR2(64) ) AS operator_licence_number
,(SELECT t.trace_line_relay_type_name
FROM trace_line_relay_type t
WHERE t.trace_line_relay_type_id = s.trace_line_relay_type_id) AS trace_line_relay_type_name
,s.object_id trace_line_id
,NAME(s1.exchange_id) otkuda_nax
,NAME(trace_line.exchange_id) kuda_blya
,(SELECT SUM(TO_NUMBER(n.last_number) - TO_NUMBER(n.first_number) + 1) AS s
FROM number_interval n, region_l r
WHERE LENGTH(r.region_add_code || n.last_number) = 10
AND LENGTH(r.region_add_code || n.first_number) = 10
AND n.region_id = r.object_id
AND n.exchange_id = e.node_id) AS seven_nation_army
,ROWNUM
FROM region_l r, node n, exchange_l e, node n1, service_trace_line s, trace_line, service_l s1, node n2, OBJECT o
WHERE s.object_id = s1.object_id
AND s1.exchange_id = e.node_id
AND trace_line.service_id = s1.object_id
AND e.node_id = n1.node_id
AND n1.container_node_id = n.node_id
AND e.exchange_class_id = 100
AND n2.container_node_id = n.node_id
AND n2.entity_id = 108
AND n.region_id = r.object_id
AND n.node_type_id = 115
AND r.object_id = :region_key
AND n1.node_id = o.object_id
AND o.object_owner_type_id = 3) sel
,(SELECT r.object_id AS region_key2
,c.node_id AS containedcoppercross_key
,s2.linkedobjectsinterexchange_key AS linkedobjectsinterexchange_key
,s2.logical_cable_length AS logical_cable_length
,s2.cable_type_name AS cable_type_name
,NAME(sl.exchange_id) AS ATS_NAME
,NAME(el.node_id) AS el
FROM region_l r
,CROSS c
,exchange_l el
,node n2
,service_l sl
,trace_line tl
,(SELECT l.node_id AS node_id
,l.logical_cable_id AS linkedobjectsinterexchange_key
,l.logical_cable_length AS logical_cable_length
,(SELECT c.type_name
FROM cable_type_name c
WHERE c.cable_type_name_id = l.cable_type_id) AS cable_type_name
FROM logical_cable l
WHERE l.logical_cable_type_id = 455) s2
WHERE s2.node_id(+) = c.node_id
AND c.node_id = n2.node_id
AND n2.entity_id = 108
AND c.node_id = el.cross_id
AND sl.exchange_id = el.node_id
AND tl.exchange_id = el.node_id
AND sl.entity_id = 156
AND r.object_id = :region_key) sel2
WHERE NAME(kuda_blya) = ATS_NAME
GROUP BY region_key, containedobjectsbasement_key, container_node_id, containedobjectsexchange_key, number_ranges, object_name, exchange_type_name, operator_licence_number, trace_line_relay_type_name, otkuda_nax, kuda_blya, exchange_mount_capacity
,operator_licence_number, seven_nation_army, ROWNUM, cable_type_name, logical_cable_length,ATS_NAME
ORDER BY otkuda_ats
guest 03.12.2008 11:47 # 0
лёхо и тима тру! я помню это)
с уважением, Я!)
guest 03.12.2008 17:19 # 0
Жесть, сильное видимо что-то курили =)
guest 12.12.2008 16:16 # 0
выражения типа *_id=455 - конечно смущают, но нормальный, рабочий запрос
guest 07.02.2009 23:27 # 0
guest 03.07.2009 01:31 # 0
Это ты на багу напоролся. Исправляется в версии 10.2.4
guest 11.08.2009 12:23 # 0
очень полезно...
guest 28.10.2009 21:09 # 0
Oleg_quadro 24.08.2009 19:08 # 0
SemaReal 26.10.2017 11:54 # +2
Stallman 26.10.2017 13:06 # 0
guest 06.04.2011 12:30 # 0
SemaReal 25.10.2017 03:42 # 0
inho 25.10.2017 09:46 # +2
roman-kashitsyn 25.10.2017 11:05 # +3
CONTAINED OBJECT SEX CHANGE
inkanus-gray 25.10.2017 20:45 # +1
Во времена Чехова специальным ключом зубы рвали...
bormand 25.10.2017 22:13 # 0
j123123 26.10.2017 02:00 # 0
inkanus-gray 26.10.2017 07:06 # 0
inkanus-gray 26.10.2017 07:26 # 0
guest8 21.09.2019 15:05 # −999
guest8 21.09.2019 15:10 # −999
guest8 24.09.2019 14:23 # −999
guest8 24.09.2019 23:19 # −999
guest8 25.09.2019 16:12 # −999
guest8 25.09.2019 22:38 # −999
guest8 25.09.2019 22:40 # −999
guest8 26.09.2019 16:51 # −999
guest8 31.05.2020 20:28 # −999
guest8 11.07.2020 03:30 # −999