LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2014, 01:23 AM   #16
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled

the query seems correct , try running it without double quotes in column names.
 
Old 01-27-2014, 02:31 AM   #17
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SAbhi View Post
the query seems correct , try running it without double quotes in column names.
Code:
select OldestCallWaiting||','||AverageSpeedOfAnswer||','||CallWaiting||','||ACDCalls||','||AbandonedCalls FROM dbo.vwAvayaCMSRealTimeSplitSummary@dg4 where "Split" in ('857')  INTO OUTFILE 'opt9.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' ;
select OldestCallWaiting||','||AverageSpeedOfAnswer||','||CallWaiting||','||ACDCalls||','||AbandonedCalls FROM dbo.vwAvayaCMSRealTimeSplitSummary@dg4 where "Split" in ('857') INTO OUTFILE 'opt9.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
 
Old 01-27-2014, 03:00 AM   #18
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
what are those?
Quote:
||
Are they a part of column name ? if yes, Sorry i have no idea what wrong in there..
 
Old 01-27-2014, 03:24 AM   #19
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SAbhi View Post
what are those?
Are they a part of column name ? if yes, Sorry i have no idea what wrong in there..
no, those are just separating the fields with ','. as of now with below query getting the fields, however i just wanted to remove the extra spaces:
Code:
TPCEMV CEMVOWNER SQL> select "OldestCallWaiting"||','||"AverageSpeedOfAnswer"||','||"CallsWaiting"||','||"ACDCalls"||','||"AbandonedCalls" from dbo.vwAvayaCMSRealTimeSplitSummary@dg4 where "Split" in ('857');
"OLDESTCALLWAITING"||','||"AVERAGESPEEDOFANSWER"||','||"CALLSWAITING"||','||"ACDCALLS"||','||"ABANDO NEDCALLS"
------------------------------------------------------------------------------------------------------------------------------------
0,224,0,1,0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing extra unwanted spaces anshaa Linux - Newbie 2 08-22-2012 09:34 AM
[SOLVED] awk print $0 delete extra spaces problem fantasy1215 Programming 4 07-09-2012 03:42 AM
[SOLVED] ubuntu : delete the extra spaces Xanios Linux - Newbie 13 07-28-2010 11:15 PM
[SOLVED] Remove extra spaces in a line vikas027 Programming 11 10-11-2008 08:20 AM
Html: Extra Spaces on Top mikeshn Programming 1 07-05-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration