Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
slipzst
Starting Member
3 Posts |
Posted - 2007-11-15 : 02:51:24
|
| ho to make this output in one line of this set head off;set pagesize 0;set linesize 200;set feedback off;set termout off;set pause off;spool /bistari/dw/sds2/rosrita/fahmi/ogbs01.txt;select distinctptt.marketing_ptt_num||'|'||exchange.exchange_ident_name||'|'||exchange.exchange_ident_code||'|'||tel_profile.service_num||'|'||customer_profile.customer_name,tel_profile.apartment_num||'|'||tel_profile.lot_num||'|'||tel_profile.house_num||'|'||tel_profile.floor_level_code||'|'||tel_profile.building_name||'|'||tel_profile.street_num_code||'|'||tel_profile.street_type||'|'||tel_profile.street_name||'|'||tel_profile.postal_code||'|'||tel_profile.section_name||'|'||tel_profile.city_name||'|'||tel_profile.state_code||'|'||tel_profile.serv_class_code||'|'||customer_profile.customer_segment_code||'|'from temp_ogbs_fahmi, tel_profile,ptt,exchange,customer_accounts,customer_profilewheretemp_ogbs_fahmi.service_num = tel_profile.service_num andtemp_ogbs_fahmi.connect_date = tel_profile.connect_date andtel_profile.ptt_num = ptt.network_ptt_num(+) andtel_profile.exchange_ident_code = exchange.exchange_ident_code(+) andtel_profile.account_num = customer_accounts.account_num(+) andcustomer_accounts.customer_id = customer_profile.customer_id(+);set head off;set pagesize 0;set linesize 200;set feedback off;set termout off;set pause off;spool /bistari/dw/sds2/rosrita/fahmi/ogbz02.txt;select distinctptt.marketing_ptt_num||'|'||exchange.exchange_ident_name||'|'||exchange.exchange_ident_code||'|'||tel_profile.service_num||'|'||customer_profile.customer_name||'|'||tel_profile.apartment_num||'|'||tel_profile.lot_num||'|'||tel_profile.house_num||'|'||tel_profile.floor_level_code||'|'||tel_profile.building_name||'|'||tel_profile.street_num_code||'|'||tel_profile.street_type||'|'||tel_profile.street_name||'|'||tel_profile.postal_code||'|'||tel_profile.section_name||'|'||tel_profile.city_name||'|'||tel_profile.state_code||'|'||tel_profile.serv_class_code||'|'||customer_profile.customer_segment_code||'|'from temp_ogbz_fahmi, tel_profile,ptt,exchange,customer_accounts,customer_profilewheretemp_ogbz_fahmi.service_num = tel_profile.service_num andtemp_ogbz_fahmi.connect_date = tel_profile.connect_date andtel_profile.ptt_num = ptt.network_ptt_num(+) andtel_profile.exchange_ident_code = exchange.exchange_ident_code(+) andtel_profile.account_num = customer_accounts.account_num(+) andcustomer_accounts.customer_id = customer_profile.customer_id(+);exit;output XXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXXXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXX XXXX XXXXXXslipzst@yahoo.com |
|
|
slipzst
Starting Member
3 Posts |
Posted - 2007-11-15 : 02:55:19
|
| whats wrong with the code...can anybody help me..thanksslipzst@yahoo.com |
 |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-11-15 : 02:56:34
|
| are you using SQL Server or oracle?Em |
 |
|
|
slipzst
Starting Member
3 Posts |
Posted - 2007-11-15 : 02:59:58
|
| im using in aracle..how is it the data is clash aaaslipzst@yahoo.com |
 |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-11-15 : 03:03:46
|
| this is a SQL Server forum, the syntax is very different. you will have more luck if you try posting in an oracle forumEm |
 |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-11-15 : 03:05:22
|
| try ...www.dbforums.comEm |
 |
|
|
|
|
|
|
|