How to post test data
Hi All
I have a set of 492 records is there any way other than INSERT to post the data on this forum?
Thanks
Thanks GVR, I have a source table with three fields. Each field is at a different level of heirarchy , there are total of 6 levels and i have to flaten the table. Atotal of 492 records
OWNER_ID PARENT_ID LEVEL_ID
200 7000 4
622 1000 4
623 2000 4
624 3000 4
625 4000 4
626 5000 4
627 6000 4
1000 9000 3
1020 7000 4
1040 7000 4
1051 1070 6
1052 1070 6
1053 1070 6
1054 1070 6
1055 1070 6
1056 1070 6
1060 7000 4
1070 1080 5
1071 1080 5
1080 1000 4
1081 1071 6
1082 1071 6
1083 1071 6
1084 1071 6
1085 1071 6
1086 1071 6
1087 1071 6
1091 1070 6
1092 1070 6
1093 1070 6
1100 1000 4
1101 1100 5
1102 1100 5
1103 1100 5
1104 1100 5
1170 7000 4
1200 1000 4
1201 1200 5
1202 1200 5
1203 1200 5
1204 1200 5
1300 1000 4
1301 1300 5
1302 1300 5
1303 1300 5
1304 1300 5
1317 1
1400 1000 4
1401 1400 5
1402 1400 5
1403 1400 5
1411 1000 4
1412 622 5
1413 622 5
1414 622 5
1415 622 5
1418 622 5
1500 1000 4
1501 1500 5
1502 1500 5
1503 1500 5
1504 1500 5
2000 9000 3
2070 2080 5
2071 2080 5
2080 2000 4
2081 2070 6
2082 2070 6
2083 2070 6
2084 2070 6
2085 2070 6
2086 2070 6
2088 2070 6
2091 2071 6
2092 2071 6
2093 2071 6
2094 2071 6
2095 2071 6
2096 2071 6
2097 2071 6
2100 2000 4
2101 2100 5
2102 2100 5
2103 2100 5
2200 2000 4
2201 2200 5
2202 2200 5
2203 2200 5
2204 2200 5
2220 7000 4
2240 7000 4
2270 7000 4
2280 7000 4
2300 2000 4
2301 2300 5
2302 2300 5
2303 2300 5
2304 2300 5
2360 7000 4
2370 7000 5
2400 2000 4
2401 2400 5
2402 2400 5
2403 2400 5
2404 2400 5
2410 8000 5
2420 8000 5
2421 2000 4
2422 623 5
2423 623 5
2424 623 5
2425 623 5
2428 623 5
2460 8000 5
2500 2000 4
2501 2500 5
2502 2500 5
2503 2500 5
2504 2500 5
2505 2500 5
2590 7000 4
2591 7000 4
2600 2000 4
2601 2600 5
2602 2600 5
2603 2600 5
2604 2600 5
3000 9000 3
3010 7000 4
3040 7000 4
3070 3080 5
3071 3080 5
3080 3000 4
3081 3070 6
3082 3070 6
3083 3070 6
3084 3070 6
3085 3070 6
3086 3070 6
3091 3070 6
3092 3070 6
3093 3070 6
3094 3070 6
3100 3000 4
3101 3100 5
3102 3100 5
3103 3100 5
3104 3100 5
3105 3100 5
3106 3100 5
3200 3000 4
3201 3200 5
3202 3200 5
3203 3200 5
3204 3200 5
3300 3000 4
3301 3300 5
3302 3300 5
3303 3300 5
3304 3300 5
3431 3000 4
3432 624 5
3433 624 5
3434 624 5
3435 624 5
3438 624 5
3500 3000 4
3501 3500 5
3502 3500 5
3503 3500 5
3504 3500 5
3600 3000 4
3601 3600 5
3602 3600 5
3603 3600 5
3604 3600 5
3605 3600 5
4000 9000 3
4070 4080 5
4071 4080 5
4080 4000 4
4081 4070 6
4082 4070 6
4083 4070 6
4084 4070 6
4085 4070 6
4086 4070 6
4087 4070 6
4088 4070 6
4089 4070 6
4090 4070 6
4091 4070 6
4092 4070 6
4093 4070 6
4094 4071 6
4095 4071 6
4096 4071 6
4097 4071 6
4098 4071 6
4099 4071 6
4100 4000 4
4101 4100 5
4102 4100 5
4103 4100 5
4104 4100 5
4105 4100 5
4106 4100 5
4160 622 5
4161 622 5
4200 4000 4
4201 4200 5
4202 4200 5
4203 4200 5
4260 623 5
4261 623 5
4300 4000 4
4301 4300 5
4302 4300 5
4360 624 5
4361 624 5
4400 4000 4
4401 4400 5
4402 4400 5
4403 4400 5
4441 4000 4
4442 625 5
4443 625 5
4444 625 5
4445 625 5
4448 625 5
4460 625 5
4461 625 5
4560 626 5
4561 626 5
4600 4000 4
4601 4600 5
4602 4600 5
4603 4600 5
4660 627 5
4661 627 5
4700 4000 4
4701 4700 5
4702 4700 5
4703 4700 5
4704 4700 5
5000 9000 3
5014 7000 4
5070 5080 5
5071 5080 5
5079 5070 6
5080 5000 4
5081 5070 6
5082 5070 6
5083 5070 6
5084 5070 6
5085 5070 6
5086 5070 6
5087 5070 6
5088 5070 6
5089 5070 6
5090 5071 6
5091 5071 6
5092 5071 6
5093 5071 6
5094 5071 6
5095 5071 6
5096 5071 6
5097 5071 6
5100 5000 4
5101 5100 5
5102 5100 5
5103 5100 5
5104 5100 5
5133 7000 4
5178 7000 4
5200 5000 4
5201 5200 5
5202 5200 5
5203 5200 5
5204 5200 5
5250 8000 5
5251 7000 4
5252 7000 4
5253 7000 4
5300 5000 4
5301 5300 5
5302 5300 5
5303 5300 5
5304 5300 5
5365 7000 4
5366 7000 4
5400 5000 4
5401 5400 5
5402 5400 5
5403 5400 5
5404 5400 5
5451 5000 4
5452 626 5
5453 626 5
5454 626 5
5455 626 5
5458 626 5
5500 5000 4
5501 5500 5
5502 5500 5
5503 5500 5
5504 5500 5
6000 9000 3
6070 6080 5
6071 6080 5
6080 6000 4
6081 6070 6
6082 6070 6
6083 6070 6
6084 6070 6
6085 6070 6
6086 6070 6
6100 6000 4
6101 6100 5
6102 6100 5
6103 6100 5
6300 6000 4
6301 6300 5
6302 6300 5
6303 6300 5
6304 6300 5
6305 6300 5
6400 6000 4
6401 6400 5
6402 6400 5
6403 6400 5
6404 6400 5
6461 6000 4
6462 627 5
6463 627 5
6464 627 5
6465 627 5
6468 627 5
6500 6000 4
6501 6500 5
6502 6500 5
6503 6500 5
6504 6500 5
6505 6500 5
6600 6000 4
6601 6600 5
6602 6600 5
6603 6600 5
6604 6600 5
7000 1317 3
7085 7000 4
7086 7000 4
7087 7000 4
8000 7000 4
8070 7000 4
9000 1317 2
9001 6071 6
9002 6071 6
9003 6071 6
9004 6071 6
9005 6071 6
9006 1071 6
9008 2070 6
9009 2070 6
9010 2070 6
9011 3071 6
9012 3070 6
9013 3071 6
9014 3071 6
9015 3071 6
9016 3071 6
9017 3071 6
9018 3071 6
9019 3071 6
9020 3071 6
9021 9142 5
9022 9142 5
9023 9142 5
9025 7000 4
9026 9142 5
9027 7000 4
9028 7000 4
9031 7000 4
9032 9031 5
9033 9142 5
9034 9142 5
9036 7000 4
9037 9031 5
9038 7000 4
9039 7000 4
9040 7000 4
9041 7000 4
9042 7000 4
9043 9142 5
9044 7000 4
9045 627 5
9048 626 5
9050 625 5
9052 624 5
9053 623 5
9054 623 5
9056 622 5
9057 9142 5
9058 6070 6
9059 6070 6
9060 6070 6
9061 9142 5
9062 9142 5
9063 9142 5
9064 1000 4
9065 2000 4
9066 3000 4
9067 4000 4
9068 5000 4
9069 6000 4
9070 1070 6
9071 7000 4
9072 7000 4
9075 9142 5
9076 9142 5
9077 9142 5
9078 9142 5
9079 9142 4
9080 7000 4
9081 5100 5
9082 5200 5
9084 1317 2
9085 9084 3
9086 9085 4
9087 9085 4
9088 9085 4
9089 9085 4
9090 9085 4
9091 9085 4
9092 7000 4
9093 7000 4
9094 7000 4
9095 7000 4
9096 7000 4
9097 7000 4
9098 7000 4
9099 7000 4
9100 7000 4
9101 7000 4
9102 7000 4
9103 7000 4
9104 7000 4
9105 7000 4
9106 7000 4
9107 7000 4
9108 7000 4
9109 7000 4
9110 7000 4
9111 7000 4
9112 7000 4
9113 7000 4
9114 7000 4
9115 7000 4
9116 7000 4
9117 7000 4
9118 7000 4
9119 7000 4
9120 7000 4
9121 7000 4
9122 7000 4
9123 7000 4
9124 7000 4
9125 7000 4
9126 7000 4
9127 7000 4
9128 7000 4
9129 7000 4
9130 7000 4
9131 7000 4
9132 7000 4
9133 7000 4
9134 9133 4
9135 9133 5
9136 9133 5
9137 9133 5
9138 9133 5
9139 7000 4
9140 5500 5
9141 9142 5
9142 1317 2
9143 9142 3
9144 9142 3
9145 9142 3
9146 9142 3
9147 9142 3
9148 9142 3
9149 9142 3I have a query
SELECT COALESCE (owner_level_6,
owner_level5,
owner_level4,
owner_level3,
owner_level2,
owner_level1
) AS owner_id,
k.*
FROM (SELECT t1.owner_id AS owner_level1, t2.owner_id AS owner_level2,
t3.owner_id AS owner_level3, t4.owner_id AS owner_level4,
t5.owner_id AS owner_level5, t6.owner_id AS owner_level_6
FROM stg_wms_setup_owner t1,
setup_owner t2,
setup_owner t3,
setup_owner t4,
setup_owner t5,
setup_owner t6
WHERE t1.owner_id = t2.parent_id(+)
AND t2.owner_id = t3.parent_id(+)
AND t3.owner_id = t4.parent_id(+)
AND t4.owner_id = t5.parent_id(+)
AND t5.owner_id = t6.parent_id(+)
AND t1.parent_id IS NULL) k
ORDER BY owner_idand its giving me the expected output BUT i'm missing 71 records at level 4
Resultant dataset
OWNER_ID OWNER_LEVEL1 OWNER_LEVEL2 OWNER_LEVEL3 OWNER_LEVEL4 OWNER_LEVEL5 OWNER_LEVEL_6
200 1317 7000 200
1020 1317 7000 1020
1040 1317 7000 1040
1051 1317 9000 1000 1080 1070 1051
1052 1317 9000 1000 1080 1070 1052
1053 1317 9000 1000 1080 1070 1053
1054 1317 9000 1000 1080 1070 1054
1055 1317 9000 1000 1080 1070 1055
1056 1317 9000 1000 1080 1070 1056
1060 1317 7000 1060
1081 1317 9000 1000 1080 1071 1081
1082 1317 9000 1000 1080 1071 1082
1083 1317 9000 1000 1080 1071 1083
1084 1317 9000 1000 1080 1071 1084
1085 1317 9000 1000 1080 1071 1085
1086 1317 9000 1000 1080 1071 1086
1087 1317 9000 1000 1080 1071 1087
1091 1317 9000 1000 1080 1070 1091
1092 1317 9000 1000 1080 1070 1092
1093 1317 9000 1000 1080 1070 1093
1101 1317 9000 1000 1100 1101
1102 1317 9000 1000 1100 1102
1103 1317 9000 1000 1100 1103
1104 1317 9000 1000 1100 1104
1170 1317 7000 1170
1201 1317 9000 1000 1200 1201
1202 1317 9000 1000 1200 1202
1203 1317 9000 1000 1200 1203
1204 1317 9000 1000 1200 1204
1301 1317 9000 1000 1300 1301
1302 1317 9000 1000 1300 1302
1303 1317 9000 1000 1300 1303
1304 1317 9000 1000 1300 1304
1401 1317 9000 1000 1400 1401
1402 1317 9000 1000 1400 1402
1403 1317 9000 1000 1400 1403
1411 1317 9000 1000 1411
1412 1317 9000 1000 622 1412
1413 1317 9000 1000 622 1413
1414 1317 9000 1000 622 1414
1415 1317 9000 1000 622 1415
1418 1317 9000 1000 622 1418
1501 1317 9000 1000 1500 1501
1502 1317 9000 1000 1500 1502
1503 1317 9000 1000 1500 1503
1504 1317 9000 1000 1500 1504
2081 1317 9000 2000 2080 2070 2081
2082 1317 9000 2000 2080 2070 2082
2083 1317 9000 2000 2080 2070 2083
2084 1317 9000 2000 2080 2070 2084
2085 1317 9000 2000 2080 2070 2085
2086 1317 9000 2000 2080 2070 2086
2088 1317 9000 2000 2080 2070 2088
2091 1317 9000 2000 2080 2071 2091
2092 1317 9000 2000 2080 2071 2092
2093 1317 9000 2000 2080 2071 2093
2094 1317 9000 2000 2080 2071 2094
2095 1317 9000 2000 2080 2071 2095
2096 1317 9000 2000 2080 2071 2096
2097 1317 9000 2000 2080 2071 2097
2101 1317 9000 2000 2100 2101
2102 1317 9000 2000 2100 2102
2103 1317 9000 2000 2100 2103
2201 1317 9000 2000 2200 2201
2202 1317 9000 2000 2200 2202
2203 1317 9000 2000 2200 2203
2204 1317 9000 2000 2200 2204
2220 1317 7000 2220
2240 1317 7000 2240
2270 1317 7000 2270
2280 1317 7000 2280
2301 1317 9000 2000 2300 2301
2302 1317 9000 2000 2300 2302
2303 1317 9000 2000 2300 2303
2304 1317 9000 2000 2300 2304
2360 1317 7000 2360
2370 1317 7000 2370
2401 1317 9000 2000 2400 2401
2402 1317 9000 2000 2400 2402
2403 1317 9000 2000 2400 2403
2404 1317 9000 2000 2400 2404
2410 1317 7000 8000 2410
2420 1317 7000 8000 2420
2421 1317 9000 2000 2421
2422 1317 9000 2000 623 2422
2423 1317 9000 2000 623 2423
2424 1317 9000 2000 623 2424
2425 1317 9000 2000 623 2425
2428 1317 9000 2000 623 2428
2460 1317 7000 8000 2460
2501 1317 9000 2000 2500 2501
2502 1317 9000 2000 2500 2502
2503 1317 9000 2000 2500 2503
2504 1317 9000 2000 2500 2504
2505 1317 9000 2000 2500 2505
2590 1317 7000 2590
2591 1317 7000 2591
2601 1317 9000 2000 2600 2601
2602 1317 9000 2000 2600 2602
2603 1317 9000 2000 2600 2603
2604 1317 9000 2000 2600 2604
3010 1317 7000 3010
3040 1317 7000 3040
3081 1317 9000 3000 3080 3070 3081
3082 1317 9000 3000 3080 3070 3082
3083 1317 9000 3000 3080 3070 3083
3084 1317 9000 3000 3080 3070 3084
3085 1317 9000 3000 3080 3070 3085
3086 1317 9000 3000 3080 3070 3086
3091 1317 9000 3000 3080 3070 3091
3092 1317 9000 3000 3080 3070 3092
3093 1317 9000 3000 3080 3070 3093
3094 1317 9000 3000 3080 3070 3094
3101 1317 9000 3000 3100 3101
3102 1317 9000 3000 3100 3102
3103 1317 9000 3000 3100 3103
3104 1317 9000 3000 3100 3104
3105 1317 9000 3000 3100 3105
3106 1317 9000 3000 3100 3106
3201 1317 9000 3000 3200 3201
3202 1317 9000 3000 3200 3202
3203 1317 9000 3000 3200 3203
3204 1317 9000 3000 3200 3204
3301 1317 9000 3000 3300 3301
3302 1317 9000 3000 3300 3302
3303 1317 9000 3000 3300 3303
3304 1317 9000 3000 3300 3304
3431 1317 9000 3000 3431
3432 1317 9000 3000 624 3432
3433 1317 9000 3000 624 3433
3434 1317 9000 3000 624 3434
3435 1317 9000 3000 624 3435
3438 1317 9000 3000 624 3438
3501 1317 9000 3000 3500 3501
3502 1317 9000 3000 3500 3502
3503 1317 9000 3000 3500 3503
3504 1317 9000 3000 3500 3504
3601 1317 9000 3000 3600 3601
3602 1317 9000 3000 3600 3602
3603 1317 9000 3000 3600 3603
3604 1317 9000 3000 3600 3604
3605 1317 9000 3000 3600 3605
4081 1317 9000 4000 4080 4070 4081
4082 1317 9000 4000 4080 4070 4082
4083 1317 9000 4000 4080 4070 4083
4084 1317 9000 4000 4080 4070 4084
4085 1317 9000 4000 4080 4070 4085
4086 1317 9000 4000 4080 4070 4086
4087 1317 9000 4000 4080 4070 4087
4088 1317 9000 4000 4080 4070 4088
4089 1317 9000 4000 4080 4070 4089
4090 1317 9000 4000 4080 4070 4090
4091 1317 9000 4000 4080 4070 4091
4092 1317 9000 4000 4080 4070 4092
4093 1317 9000 4000 4080 4070 4093
4094 1317 9000 4000 4080 4071 4094
4095 1317 9000 4000 4080 4071 4095
4096 1317 9000 4000 4080 4071 4096
4097 1317 9000 4000 4080 4071 4097
4098 1317 9000 4000 4080 4071 4098
4099 1317 9000 4000 4080 4071 4099
4101 1317 9000 4000 4100 4101
4102 1317 9000 4000 4100 4102
4103 1317 9000 4000 4100 4103
4104 1317 9000 4000 4100 4104
4105 1317 9000 4000 4100 4105
4106 1317 9000 4000 4100 4106
4160 1317 9000 1000 622 4160
4161 1317 9000 1000 622 4161
4201 1317 9000 4000 4200 4201
4202 1317 9000 4000 4200 4202
4203 1317 9000 4000 4200 4203
4260 1317 9000 2000 623 4260
4261 1317 9000 2000 623 4261
4301 1317 9000 4000 4300 4301
4302 1317 9000 4000 4300 4302
4360 1317 9000 3000 624 4360
4361 1317 9000 3000 624 4361
4401 1317 9000 4000 4400 4401
4402 1317 9000 4000 4400 4402
4403 1317 9000 4000 4400 4403
4441 1317 9000 4000 4441
4442 1317 9000 4000 625 4442
4443 1317 9000 4000 625 4443
4444 1317 9000 4000 625 4444
4445 1317 9000 4000 625 4445
4448 1317 9000 4000 625 4448
4460 1317 9000 4000 625 4460
4461 1317 9000 4000 625 4461
4560 1317 9000 5000 626 4560
4561 1317 9000 5000 626 4561
4601 1317 9000 4000 4600 4601
4602 1317 9000 4000 4600 4602
4603 1317 9000 4000 4600 4603
4660 1317 9000 6000 627 4660
4661 1317 9000 6000 627 4661
4701 1317 9000 4000 4700 4701
4702 1317 9000 4000 4700 4702
4703 1317 9000 4000 4700 4703
4704 1317 9000 4000 4700 4704
5014 1317 7000 5014
5079 1317 9000 5000 5080 5070 5079
5081 1317 9000 5000 5080 5070 5081
5082 1317 9000 5000 5080 5070 5082
5083 1317 9000 5000 5080 5070 5083
5084 1317 9000 5000 5080 5070 5084
5085 1317 9000 5000 5080 5070 5085
5086 1317 9000 5000 5080 5070 5086
5087 1317 9000 5000 5080 5070 5087
5088 1317 9000 5000 5080 5070 5088
5089 1317 9000 5000 5080 5070 5089
5090 1317 9000 5000 5080 5071 5090
5091 1317 9000 5000 5080 5071 5091
5092 1317 9000 5000 5080 5071 5092
5093 1317 9000 5000 5080 5071 5093
5094 1317 9000 5000 5080 5071 5094
5095 1317 9000 5000 5080 5071 5095
5096 1317 9000 5000 5080 5071 5096
5097 1317 9000 5000 5080 5071 5097
5101 1317 9000 5000 5100 5101
5102 1317 9000 5000 5100 5102
5103 1317 9000 5000 5100 5103
5104 1317 9000 5000 5100 5104
5133 1317 7000 5133
5178 1317 7000 5178
5201 1317 9000 5000 5200 5201
5202 1317 9000 5000 5200 5202
5203 1317 9000 5000 5200 5203
5204 1317 9000 5000 5200 5204
5250 1317 7000 8000 5250
5251 1317 7000 5251
5252 1317 7000 5252
5253 1317 7000 5253
5301 1317 9000 5000 5300 5301
5302 1317 9000 5000 5300 5302
5303 1317 9000 5000 5300 5303
5304 1317 9000 5000 5300 5304
5365 1317 7000 5365
5366 1317 7000 5366
5401 1317 9000 5000 5400 5401
5402 1317 9000 5000 5400 5402
5403 1317 9000 5000 5400 5403
5404 1317 9000 5000 5400 5404
5451 1317 9000 5000 5451
5452 1317 9000 5000 626 5452
5453 1317 9000 5000 626 5453
5454 1317 9000 5000 626 5454
5455 1317 9000 5000 626 5455
5458 1317 9000 5000 626 5458
5501 1317 9000 5000 5500 5501
5502 1317 9000 5000 5500 5502
5503 1317 9000 5000 5500 5503
5504 1317 9000 5000 5500 5504
6081 1317 9000 6000 6080 6070 6081
6082 1317 9000 6000 6080 6070 6082
6083 1317 9000 6000 6080 6070 6083
6084 1317 9000 6000 6080 6070 6084
6085 1317 9000 6000 6080 6070 6085
6086 1317 9000 6000 6080 6070 6086
6101 1317 9000 6000 6100 6101
6102 1317 9000 6000 6100 6102
6103 1317 9000 6000 6100 6103
6301 1317 9000 6000 6300 6301
6302 1317 9000 6000 6300 6302
6303 1317 9000 6000 6300 6303
6304 1317 9000 6000 6300 6304
6305 1317 9000 6000 6300 6305
6401 1317 9000 6000 6400 6401
6402 1317 9000 6000 6400 6402
6403 1317 9000 6000 6400 6403
6404 1317 9000 6000 6400 6404
6461 1317 9000 6000 6461
6462 1317 9000 6000 627 6462
6463 1317 9000 6000 627 6463
6464 1317 9000 6000 627 6464
6465 1317 9000 6000 627 6465
6468 1317 9000 6000 627 6468
6501 1317 9000 6000 6500 6501
6502 1317 9000 6000 6500 6502
6503 1317 9000 6000 6500 6503
6504 1317 9000 6000 6500 6504
6505 1317 9000 6000 6500 6505
6601 1317 9000 6000 6600 6601
6602 1317 9000 6000 6600 6602
6603 1317 9000 6000 6600 6603
6604 1317 9000 6000 6600 6604
7085 1317 7000 7085
7086 1317 7000 7086
7087 1317 7000 7087
8070 1317 7000 8070
9001 1317 9000 6000 6080 6071 9001
9002 1317 9000 6000 6080 6071 9002
9003 1317 9000 6000 6080 6071 9003
9004 1317 9000 6000 6080 6071 9004
9005 1317 9000 6000 6080 6071 9005
9006 1317 9000 1000 1080 1071 9006
9008 1317 9000 2000 2080 2070 9008
9009 1317 9000 2000 2080 2070 9009
9010 1317 9000 2000 2080 2070 9010
9011 1317 9000 3000 3080 3071 9011
9012 1317 9000 3000 3080 3070 9012
9013 1317 9000 3000 3080 3071 9013
9014 1317 9000 3000 3080 3071 9014
9015 1317 9000 3000 3080 3071 9015
9016 1317 9000 3000 3080 3071 9016
9017 1317 9000 3000 3080 3071 9017
9018 1317 9000 3000 3080 3071 9018
9019 1317 9000 3000 3080 3071 9019
9020 1317 9000 3000 3080 3071 9020
9021 1317 9142 9021
9022 1317 9142 9022
9023 1317 9142 9023
9025 1317 7000 9025
9026 1317 9142 9026
9027 1317 7000 9027
9028 1317 7000 9028
9032 1317 7000 9031 9032
9033 1317 9142 9033
9034 1317 9142 9034
9036 1317 7000 9036
9037 1317 7000 9031 9037
9038 1317 7000 9038
9039 1317 7000 9039
9040 1317 7000 9040
9041 1317 7000 9041
9042 1317 7000 9042
9043 1317 9142 9043
9044 1317 7000 9044
9045 1317 9000 6000 627 9045
9048 1317 9000 5000 626 9048
9050 1317 9000 4000 625 9050
9052 1317 9000 3000 624 9052
9053 1317 9000 2000 623 9053
9054 1317 9000 2000 623 9054
9056 1317 9000 1000 622 9056
9057 1317 9142 9057
9058 1317 9000 6000 6080 6070 9058
9059 1317 9000 6000 6080 6070 9059
9060 1317 9000 6000 6080 6070 9060
9061 1317 9142 9061
9062 1317 9142 9062
9063 1317 9142 9063
9064 1317 9000 1000 9064
9065 1317 9000 2000 9065
9066 1317 9000 3000 9066
9067 1317 9000 4000 9067
9068 1317 9000 5000 9068
9069 1317 9000 6000 9069
9070 1317 9000 1000 1080 1070 9070
9071 1317 7000 9071
9072 1317 7000 9072
9075 1317 9142 9075
9076 1317 9142 9076
9077 1317 9142 9077
9078 1317 9142 9078
9079 1317 9142 9079
9080 1317 7000 9080
9081 1317 9000 5000 5100 9081
9082 1317 9000 5000 5200 9082
9086 1317 9084 9085 9086
9087 1317 9084 9085 9087
9088 1317 9084 9085 9088
9089 1317 9084 9085 9089
9090 1317 9084 9085 9090
9091 1317 9084 9085 9091
9092 1317 7000 9092
9093 1317 7000 9093
9094 1317 7000 9094
9095 1317 7000 9095
9096 1317 7000 9096
9097 1317 7000 9097
9098 1317 7000 9098
9099 1317 7000 9099
9100 1317 7000 9100
9101 1317 7000 9101
9102 1317 7000 9102
9103 1317 7000 9103
9104 1317 7000 9104
9105 1317 7000 9105
9106 1317 7000 9106
9107 1317 7000 9107
9108 1317 7000 9108
9109 1317 7000 9109
9110 1317 7000 9110
9111 1317 7000 9111
9112 1317 7000 9112
9113 1317 7000 9113
9114 1317 7000 9114
9115 1317 7000 9115
9116 1317 7000 9116
9117 1317 7000 9117
9118 1317 7000 9118
9119 1317 7000 9119
9120 1317 7000 9120
9121 1317 7000 9121
9122 1317 7000 9122
9123 1317 7000 9123
9124 1317 7000 9124
9125 1317 7000 9125
9126 1317 7000 9126
9127 1317 7000 9127
9128 1317 7000 9128
9129 1317 7000 9129
9130 1317 7000 9130
9131 1317 7000 9131
9132 1317 7000 9132
9134 1317 7000 9133 9134
9135 1317 7000 9133 9135
9136 1317 7000 9133 9136
9137 1317 7000 9133 9137
9138 1317 7000 9133 9138
9139 1317 7000 9139
9140 1317 9000 5000 5500 9140
9141 1317 9142 9141
9143 1317 9142 9143
9144 1317 9142 9144
9145 1317 9142 9145
9146 1317 9142 9146
9147 1317 9142 9147
9148 1317 9142 9148
9149 1317 9142 9149 I think the query was doing fine until i added the 5th table to the JOIN in the query, not sure whats happening and why its not adding the records from the fourth table.
Similar Messages
-
Hi
I need to generate some test data and would like to know if there are any built functions in SQL Server 2012 that let you do that apart from using loops. In PostgreSQL I use different built in functions to achieve that for example the following statement
creates the test data for me, if any one can show me how I can do that using T-SQL
CREATE TABLE domain AS SELECT generate_series(1,100000) AS domain_id, substr('abcdefghijklmnopqrstuvwxyz',1, (random()*26)::integer) || '.com' AS domain_name;
And also I would like to know how do you get help on syntax in T-SQL, for example in PostgreSQL the following commands show you help etc so are there any similar commands in T-SQL ?
\h ALTER TABLE ( Will show you full syntax for ALTER TABLE )
\dt ( Will detail all the tables in the current Schema )
Thanks a lot
Rgds
TThe two T-SQL suggestions are great and probably the simple answer you're looking for. I wrote a blog article about using the VS data generation feature, as suggested by Chuck, to do some nice stuff here if you want to check that out:
http://blogs.msdn.com/b/samlester/archive/2012/08/04/creating-complex-test-databases-part-2-creating-a-database-with-1-billion-random-rows.aspx
Thanks,
Sam Lester (MSFT)
My Blog
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and
"Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread. -
How to generate test data for all the tables in oracle
I am planning to use plsql to generate the test data in all the tables in schema, schema name is given as input parameters, min records in master table, min records in child table. data should be consistent in the columns which are used for constraints i.e. using same column value..
planning to implement something like
execute sp_schema_data_gen (schemaname, minrecinmstrtbl, minrecsforchildtable);
schemaname = owner,
minrecinmstrtbl= minimum records to insert into each parent table,
minrecsforchildtable = minimum records to enter into each child table of a each master table;
all_tables where owner= schemaname;
all_tab_columns and all_constrains - where owner =schemaname;
using dbms_random pkg.
is anyone have better idea to do this.. is this functionality already there in oracle db?Ah, damorgan, data, test data, metadata and table-driven processes. Love the stuff!
There are two approaches you can take with this. I'll mention both and then ask which
one you think you would find most useful for your requirements.
One approach I would call the generic bottom-up approach which is the one I think you
are referring to.
This system is a generic test data generator. It isn't designed to generate data for any
particular existing table or application but is the general case solution.
Building on damorgan's advice define the basic hierarchy: table collection, tables, data; so start at the data level.
1. Identify/document the data types that you need to support. Start small (NUMBER, VARCHAR2, DATE) and add as you go along
2. For each data type identify the functionality and attributes that you need. For instance for VARCHAR2
a. min length - the minimum length to generate
b. max length - the maximum length
c. prefix - a prefix for the generated data; e.g. for an address field you might want a 'add1' prefix
d. suffix - a suffix for the generated data; see prefix
e. whether to generate NULLs
3. For NUMBER you will probably want at least precision and scale but might want minimum and maximum values or even min/max precision,
min/max scale.
4. store the attribute combinations in Oracle tables
5. build functionality for each data type that can create the range and type of data that you need. These functions should take parameters that can be used to control the attributes and the amount of data generated.
6. At the table level you will need business rules that control how the different columns of the table relate to each other. For example, for ADDRESS information your business rule might be that ADDRESS1, CITY, STATE, ZIP are required and ADDRESS2 is optional.
7. Add table-level processes, driven by the saved metadata, that can generate data at the record level by leveraging the data type functionality you have built previously.
8. Then add the metadata, business rules and functionality to control the TABLE-TO-TABLE relationships; that is, the data model. You need the same DETPNO values in the SCOTT.EMP table that exist in the SCOTT.DEPT table.
The second approach I have used more often. I would it call the top-down approach and I use
it when test data is needed for an existing system. The main use case here is to avoid
having to copy production data to QA, TEST or DEV environments.
QA people want to test with data that they are familiar with: names, companies, code values.
I've found they aren't often fond of random character strings for names of things.
The second approach I use for mature systems where there is already plenty of data to choose from.
It involves selecting subsets of data from each of the existing tables and saving that data in a
set of test tables. This data can then be used for regression testing and for automated unit testing of
existing functionality and functionality that is being developed.
QA can use data they are already familiar with and can test the application (GUI?) interface on that
data to see if they get the expected changes.
For each table to be tested (e.g. DEPT) I create two test system tables. A BEFORE table and an EXPECTED table.
1. DEPT_TEST_BEFORE
This table has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look BEFORE the
test for that test case is performed.
CREATE TABLE DEPT_TEST_BEFORE
TESTCASE NUMBER,
DEPTNO NUMBER(2),
DNAME VARCHAR2(14 BYTE),
LOC VARCHAR2(13 BYTE)
2. DEPT_TEST_EXPECTED
This table also has all EMP table columns and a TEST_CASE column.
It holds EMP-image rows for each test case that show the row as it should look AFTER the
test for that test case is performed.
Each of these tables are a mirror image of the actual application table with one new column
added that contains a value representing the TESTCASE_NUMBER.
To create test case #3 identify or create the DEPT records you want to use for test case #3.
Insert these records into DEPT_TEST_BEFORE:
INSERT INTO DEPT_TEST_BEFORE
SELECT 3, D.* FROM DEPT D where DEPNO = 20
Insert records for test case #3 into DEPT_TEST_EXPECTED that show the rows as they should
look after test #3 is run. For example, if test #3 creates one new record add all the
records fro the BEFORE data set and add a new one for the new record.
When you want to run TESTCASE_ONE the process is basically (ignore for this illustration that
there is a foreign key betwee DEPT and EMP):
1. delete the records from SCOTT.DEPT that correspond to test case #3 DEPT records.
DELETE FROM DEPT
WHERE DEPTNO IN (SELECT DEPTNO FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3);
2. insert the test data set records for SCOTT.DEPT for test case #3.
INSERT INTO DEPT
SELECT DEPTNO, DNAME, LOC FROM DEPT_TEST_BEFORE WHERE TESTCASE = 3;
3 perform the test.
4. compare the actual results with the expected results.
This is done by a function that compares the records in DEPT with the records
in DEPT_TEST_EXPECTED for test #3.
I usually store these results in yet another table or just report them out.
5. Report out the differences.
This second approach uses data the users (QA) are already familiar with, is scaleable and
is easy to add new data that meets business requirements.
It is also easy to automatically generate the necessary tables and test setup/breakdown
using a table-driven metadata approach. Adding a new test table is as easy as calling
a stored procedure; the procedure can generate the DDL or create the actual tables needed
for the BEFORE and AFTER snapshots.
The main disadvantage is that existing data will almost never cover the corner cases.
But you can add data for these. By corner cases I mean data that defines the limits
for a data type: a VARCHAR2(30) name field should have at least one test record that
has a name that is 30 characters long.
Which of these approaches makes the most sense for you? -
How to post the data into word file
Dear Forums
I am a user of jDeveloper
and working on jclient\swing.
The problem is that i want to post\Transfer data to a formatted word file. In word file there is a same table containing same contents as jtable. Now after selection of a particular row \column the data of that row\column transferred to word file table.
i have no idea about it.
Help me for the Same
thnkx.hi,
I don't think the Javaworld stuff is needed in any case since ctrl c and ctrl v wor very fine. My problem is diffent. I want to copy paste using a mouse. I am using a Mouse Adapter with my table and using the DefaultEditorKit.copyAction() class as my action. But this does not work.. seems its not copying the data to the clipboard. But this migght be cause it works only with JTextComponent ?!
Can you please tell me how to go about it.
regards,
Sumit. -
How to add Test data for a function module
Hi experts,
i want to add test data for a function module . i don't know how to proceed on it . please help me...
with regards,
James...
Valuable answers will be rewarded...Hi,
- Go to SE37 and execute your FM
- Enter the data you want to pass to FM
- Hit 'Save' button. Enter the meaningful name for your test scenario and save. That's it you have saved the test data.
You can also enter some other test data and save that also. In short, you can save multiple test scenario. Also, you can give multiple test scenario a same name and they do not overwrite each other ( but normally you give different name to differentiate them)
Next time you come to execute the FM again, hit the "test data" button and it will show you all the test scenario you have stored before. Select the one you want to use and it will load the data in FM parameters.
Let me know if you need any other information.
Regards,
RS -
How to create test data in SHDB transaction ?
Hi,
In SHDB transaction I have captured the recording of AS01 transaction. Now there is a tab called "test data" in SHDB transaction. I clicked on that and gave a text document name called "c:\asset.txt" . Now it is showing status like "test data has already been saved into c:\asset.txt". Now how should I create test data for this?
Please reply soon...............Hi,
Can anyone pls explain what the tab "Test data" will function in SHDB transaction? -
How to insert test data of 10,000 records into emp table
Hi I'm new to oracle can anyone please help me in writing a program so that i can insert test data into emp table
Hi,
user11202607 wrote:
thanks sanjay , frank . But how can i insert only 4 deptno's randomly and how can i insert only 10 managers randomly ,
Sorry to pull Your legs and thanks for bearing my question. I want to insert into emp table where it has the empno, ename, sal, job, hiredate, mgr and deptnoThis should give you some ideas:
INSERT INTO emp (empno, ename, sal, job, hiredate, mgr, deptno)
SELECT LEVEL -- empno
, dbms_random.string ('U', 4) -- ename
, ROUND ( dbms_random.value (100, 5000)
, -2
) -- sal
, CASE
WHEN LEVEL = 1 THEN 'PRESIDENT'
WHEN LEVEL <= 4 THEN 'MANAGER' -- Change to 11 after testing
WHEN dbms_random.value < .5 THEN 'ANALYST'
WHEN dbms_random.value < .5 THEN 'CLERK'
ELSE 'SALESMAN'
END -- job
, TRUNC ( SYSDATE
- dbms_random.value (0, 3650)
) -- hiredate
, CASE
WHEN LEVEL > 1
THEN TRUNC (dbms_random.value (1, LEVEL))
END -- mgr
, TRUNC (dbms_random.value (1, 5)) -- deptno
FROM dual
CONNECT BY LEVEL <= 10 -- Change to 10000 after testing
;The interesting part (to me, at least) is mgr. What I've done above is guarantee that the mgr-empno relationship reflects a tree, with the 'PRESIDENT' at its sole root. The tree can be any number of levels deep.
Sample results:
EMPNO ENAME SAL JOB HIREDATE MGR DEPTNO
1 GDMT 2800 PRESIDENT 30-AUG-04 2
2 CVQX 400 MANAGER 24-MAY-06 1 2
3 QXJD 1300 MANAGER 17-JUN-05 1 4
4 LWCK 4800 MANAGER 15-JUN-06 2 2
5 VDKI 3700 CLERK 08-SEP-01 4 2
6 FKZS 2600 CLERK 18-DEC-06 4 1
7 SAKB 700 ANALYST 30-JUN-00 5 4
8 DVYY 300 ANALYST 22-SEP-01 2 1
9 CLEO 2700 ANALYST 27-MAY-08 5 4
10 RDVQ 3400 ANALYST 14-DEC-08 5 4For details on the built-in packages (such as dbms_random) see the [Parckages and Types manual|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_random.htm#i998925]. -
How to install test data on iPhone
I have some test data which I have been using in the simulator by copy it to the applications private Documents folder. I can then open this file in my application running on the simulator and use to verify results etc.
How can I install this test data file on a physical iPhone and perform a similar function. I can see, using the Organiser, how to get data off the iPhone to the Mac but the other way around.
I am missing something obvious?
Thanks, Dave.Place it into the Resources section of your project then at runtime in your application delegate you can do something like the following (assumes your data is in a file called testfile.dat):
NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
NSString *fileToCopyPath = [thisBundle pathForResource: @"testfile" ofType:@".dat"];
NSString *path = [resourceDir stringByAppendingPathComponent: @"testfile.dat"];
NSError *error = nil;
// replace old test data with new
[[NSFileManager defaultManager] removeItemAtPath: path error: &error];
[[NSFileManager defaultManager] copyItemAtPath: fileToCopyPath toPath: path error: &error]; -
How to creat Test Data Directory
Hi Experts,
I want to create a TEST DATA DIRECTORY for the following function module CLOI_CHANGES_UPL_31. How to create this?
Actually now i have some process order numbers. Using this how to create the test data directory??
Plz guide this.
Point will be sure.
MohanaHi Mohana,
Test data directory is similar to variants in reports.
After executing the function module give some input and click the save button . It will prompt a name . Give the name and click enter. So this test data is saved in the test data directory.
So that you need not not give the test input again and again. you can simply click the test dat directory and select your test data .
Regards,
Charumathi.B -
How to get test data for BAPI_PO_CREATE?
Hi friends,
can anybody please tell me how to generate the test data for BAPI_PO_CREATE?Hi swetha,
Hi,
You could test this scenario with using the Test Message option from RWB.
Or else
You could design the scenario to get the response from BAPI.
i.e BAPI to XI to File or any other application that will be easily avaialble.
But you need receiver system for testing.
Refer the below link it may help you .
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Regards
Naveen. -
How to load Test data from a Text file in ECATT
Hi,
I have created a test configuration with a test script, system data container, and test data container.
I have done the recording of a transaction and created the script. Parameterization is done for the script and have imported those parameters from script in to the data container.
I am trying to load a the data from a text file on the local work-station. The data is not being read.
Please explain this in detail (step by step) as I am very new to ECATT.
I am trying this on SAP ECC 6.0 IDES server.
Thanks in Advance
Vikas PatilPlease explain this in detail (step by step) as I am very new to ECATT.
Thanks in Advance
Vikas Patil -
How to post the data to a new window and control the new window's property?
When we submit the form data to another page, we usually do the following:
<form action="display.jsp" method="post"> will submit the form data and open
display.jsp in the current browser
<form action="display.jsp" method="post" target="_blank"> will submit the form data
and open display.jsp in a new browser
Now, what I want is to open display.jsp in a new browser, but control the window's size,
and disable the status bar, title bar, and address bar of a new browser.
If I do this, it can only open a html page, but not post the data to display.jsp.
window.open('display.jsp', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
any ideas? thanks!!<html>
<head>
</head>
<script language="JavaScript">
function doSubmit() {
displayWindow = window.open('', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
document.submitForm.submit();
</script>
<body>
<form name="submitForm" action="display.jsp" method="post" target="newWin">
<input type="text" name="param1"><br>
<INPUT TYPE="button" NAME="button" Value="Click" onClick="doSubmit()">
</form>
</body>
</html> -
How to POST the data though Rest services though composite object.
I am new to REST services.
I need to write REST Serivices to post(Update) the data using Composite object.
I created the structure to pass the composite object from jquery to the REST services.
How can i handle that composite object in REST Services URITemplate and interface methods.
can i have sample code to handle the composite object in REST Services?
Thanks in advance.Did you check this post?
http://sharepoint.stackexchange.com/questions/25222/posting-json-to-a-rest-wcf-endpoint-in-sharepoint-using-cksdev
--Cheers -
How to post xml data on http trafic
Broker lisiting this http://localhost:7080/testHTTP
i need to send data to the above http in XML formatt...
bellow my JSP once submit the page the data should come on URL in this format
http://localhost:7080/testHTTP?<data><name>BASHER</name><cell>123</cell></data>
<HTML>
<HEAD>
<TITLE>test</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function mailMe(){
name=document.testform.inputbox1.value
cell= document.testform.inputbox2.value
document.testform.action="http://localhost:7080/testHTTP<data>" + name + "<name></name><address></address></data>";
//document.testform.action="http://localhost:7080/testHTTP<data><name>BASHER</name><cell>123</cell></data>";
I need data in URL like bellow
http://localhost:7080/testHTTP?<data><name>BASHER</name><cell>123</cell></data>
document.testform.submit();
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="testform">
Name: <BR><INPUT TYPE="text" NAME="inputbox1" VALUE="BASHER" SIZE=50><P>
Cell NO: <BR><INPUT TYPE="text" NAME="inputbox2" VALUE="123" SIZE=50><P>
<INPUT TYPE="button" VALUE="Send Mail" onClick="mailMe()"><BR>
</FORM>
</BODY>
</HTML>Conclusion from my point of view:
1) You cannot have this thing interactive if you want to work with all the features of OM, if you want to cover all the details. In that case you need to create some tool for drawing the pictures for you and then only send the picture into the form. If anybody would like to do the changes you would add the table at the bottom of the page where a guy can say something like "chair A move under the big banana B" or "fire Mr. C, remove the position of Mr. C". That is probably the thing I would go for
2) I am afraid you or your employer do not understand how the Adobe forms work. This is possible, but as I said before, that would be a nightmare for the developer (I cannot tell the price, would start with like 20 MDs).
3) If you would like to mimic some existing solution and don´t want to buy that, then it´s ok for me. But don´t try to re-create the existing .NET or Java stuff in ABAP. I am skilled Java programmer and I can tell the freedom and the speed of the development is quite different. If the customer/ boss insist on developing such thing, use WEB development, go for PURE JAVA (I would go this way), use Java Connector in a JSP/ J2EE stuff and then incorporate the result into the portal.
Hope that clarifies the problem a little,
regards Otto -
How to make test data anonymus
Hi all,
we are planning to copy our productive system to our test system. Therefore it is necessary to make all HR and customer data anonymus.
Is there a possibility within the standard (maybe a report) to make these data anonymus.
If there is no standard report, has anybody of you already written such a report and can tell me how is the best way to make data dynamically anonymus?
Thanks in advance for your help.
Best regards
TomHi,
Could you please elaborate it more?
rgds
Maybe you are looking for
-
BO XI 3.1 OpenDocument direct SSO with secWinAD in web.config
Hi, fellows, The need has emerged to provide users with direct links to InfoView documents using the OpenDocument URL syntax and perform primary authentication of request automatically without showing the InfoView welcome screen. We have BO XI 3.1 AS
-
Progressive Flash Not playing properly from remote server
I have Flash CS3. PROBLEM: I've encoded a video using Flash's CS3 "Progressive Download" option and then uploaded the resulting video (along with it's associated files created by Flash ie: .fla, .swf, script folder with action script, etc.) to my ser
-
Parallel processing in process chain
Hi All, In 3.X i created a process chain. after dso we get activate data store object data. In that i went and activated parellel processing. How do i delete the parallel processing (how do i disable that) . Thanks in advance.
-
In the Info panel, how do I display pixel values as values, not as percentages?
I'm trying to show, using the eye dropper tool, the actual values of pixels in an 8-bit grayscale image (Mode command confirms that's what's there). In the Info panel, the eye dropper tool displays percentages for every type of color information (K,
-
Owb92 demo: How to configure workflow database link?
Hi, I follow the doc for owb92 demo, but got error while deploying the wh_proc_loc. The error is as follows. How do configure workflow database link on owb? Thanks. RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow D