Please help me in finding the solution for this query
Hi Experts,
How could i print column name's second word in next line
suppose am taking ename alias as "employee name"
i want to print the second word "name" in next line
like
"Employee
Name"
Whats the way of writing this query
Please help me out
Thanks in Advance
Hi,
914618 wrote:
WITH mydata AS
SELECT 1 emp_id, 'John Smith' emp_name FROM DUAL UNION ALL
SELECT 2 emp_id, 'Steve Jobs' emp_name FROM DUAL UNION ALL
SELECT 3 emp_id, 'Larry Allison' emp_name FROM DUAL
SELECT emp_id, emp_name
FROM mydata;
after executing the above query the o/p I am getting is in the normal format like EMP_ID and EMP_NAME
not according to my requirement like
Emp Emp
Id NameWhat are the results you reaally want? Do you want this?
` EMP_ID SPLIT_NAME
1 John
Smith
2 Steve
Jobs
3 Larry
AllisonIf so:
SELECT emp_id
, REPLACE (emp_name, ' ', CHR (10)) AS split_name
FROM mydata
;The results above are 3 rows, not 6.
What results would you want if emp_name contained 3 or more words? For example, if you add this to the sample data:
SELECT 9 emp_id, 'Aung San Suu Kyi' emp_name FROM DUAL UNION ALL
Similar Messages
-
Please help me to find the problem in this Query
hi
This is my xml structure,
<?xml version="1.0">
<rss version ="2.0">
<channel>
<Lgs>
<Lg>
<Fid>16447</Fid>
<Fname>Sam</Fname>
</Lg>
</Lgs>
<Lgs>
<Lg>
<Fid>206</Fid>
<Fname>David</Fname>
</Lg>
</Lgs>
<Lgs>
</channel>
</rss>
I need to limit the results ie, at a time retrieve only "10" results , also that should be ordered by node "Fid".
I am using PHP-API
and following query is i have used...
$query = "let $hits := (for $hit in collection('gview.dbxml')/rss/channel/Lgs/Lg order by $hit/Fid return $hit) return subsequence($hits, 1, 10)";
$results = $mgr->query($query);
getting the error,
Fatal error: Uncaught exception 'xmlexception' with message 'Error: syntax error, unexpected :=, expecting <end of file> [err:XPST0003], <query>:1:8' in /usr/local/apache/htdocs/add_loc_file.php:99 Stack trace: #0 /usr/local/apache/htdocs/add_loc_file.php(99): xmlmanager->query('let := (for i...') #1 {main} thrown
Message was edited by:
user647571The "$hits" in your string is being interpreted by PHP as a variable reference and substituted out before DB XML gets the query.
John -
Why doesn't my iPhone 4 have an 'Internet tethering' options? Is it carrier related or iOs related? Please help me find the solution for this. thanx
Personal Hot spot
http://support.apple.com/kb/HT3574
Understanding
http://support.apple.com/kb/HT4517
Trouble Shooting
http://support.apple.com/kb/TS2756 -
PLEASE HELP ME TO FIND THE SOLUTION REGARDING "LOGICAL SYSTEM CHANGED"
HAI EVERYBODY,
PLEASE HELP ME TO FIND THE SOLUTION REGARDING "LOGICAL SYSTEM CHANGED" during the material master replication by using middleware parameters.
step1 : i have taken SRM client 810 and named it as CHINNISRM
step2 : i have taken r3 client 810 and named it as CHINNIR3
step3: During material master replication i maintained tables like crmconsum,crmrfcpar,crmparoltp in r3 and smofparsfa in srm client and filtered the objects and loaded the objects through r3ac3,r3ac1,r3as.
step4 : And later i have checked in r3 queues to activate the objects,but i have seen a message like "LOGICAL SYSTEM CHANGED:SEE 588701".according to the oss instructions i have checked in CRMPRLS table in se16 in R3 .there i found out there is one logical client named with T90CLNT810.
oss :588701
Solution
There are different cases in which different forms of processing are
required or where several options exist:
- The logical system name of an R/3 Backend client was changed in
current operation. In this case, the data hangs in the outbound
queues of the R/3 Backend system as specified under point 1 of
the symptom. In this case, the logical system name must be
changed back to the original value. Then the outbound queues
can be reactivated. If no data was transferred to the EBP/CRM
server before the change, also a correctioin of the check table
is possible.
- The same logical system name was used again in a new client of
an R/3 Backend system that was linked to the EBP/CRM server. In
this case, the data is in the inbound queue of the EBP/CRM
server with the exception GUID_FOR_LOGSYS_CHANGED. In this
case, the queue entries which have status SYSFAIL must be rejected, however, not the entire queues. If the new client of the R/3 Backend system you have linked has exactly the same
data as the old client and if it is meant to replace the old
client (that is, this was deactivated), also a correction of
the check tables is possible. In this case, the inbound queues
can be reactivated after the correction.
oss:765018
1. If the situation in your system corresponds to the situation described
under "Reason and Prerequisites" and if symptom 1 occurs, you can
delete the table entry from table CRMPRLS table (there is just one
entry). Since there is no maintenance dialog for this table and you
cannot maintain it using transaction SE16, you must use a report to
delete it. This report is attached to this note as correction
instructions.
Create the report ZZ_DELETE_CRMPRLS in your system and copy the source
code from the correction instructions. You cannot implement this
source code using transaction SNOTE.
You can use the report in every plug-in or plug-in basis system, even
if it is not specified in the validity section.
After you have run the report, you can trigger existing queues again
in transaction SMQ1.
2. If the situation in your system corresponds to the situation described
under "Reason and prerequisite" and if symptom 2 occurs, you can
delete the entry from table CRMMLSGUID (there is just one entry).
Since there is no maintenance entry for this table and you cannot
maintain it using transaction SE16, you must use a report to delete
it. This report is attached to this note as correction instructions.
If they do not yet exist, add the following messages to message class SMOF in your logon language:
Message Message short text
303 User &1 is not allowed to change table &2.
304 User &1 IS not allowed to display table &2.
305 Logical system &1 was not found in table &2.
306 System error! The current client was not
found in table T000.
Create the report ZZ_DELETE_CRMMLSGUID in your system and copy the
source code from the correction instructions. You cannot implement
this source code using transaction SNOTE.
You can use the report for every release of the CRM system, even if it
is not specified in the validity section. The only exceptions are CRM
releases with Support Package versions that are too low such as CRM
Release 3.0 with Support Package 12.
After you have run the report, you can trigger existing queues again
in transaction SMQ1 of the R/3 back-end system or transaction SMQ2 of
the CRM system.
so what should i do to do the replication.please suggest me .untill and unless i solve my problem i cant move to the further activity.i hope you people can solve my problem.thanks in advance.
thanks and best regards,
n.chakradharHi chakradhar,
Did you find a solution to your issue? We are facing a similar issue and looking to figure out how this can be resolved.
BR// 420 -
Please help me to find the table for fields where the descriptions are give
please help me to find the table for fields where the descriptions are given below
Customer Support Administrator
first line Support indicatorYou could also try table DD01T. In se 16,put in the description thats needed,you will get to know the respective data elements.
Then you can use DD03L to find the respective table. This would work if the data element is not generic.
Regards,
Anubhav. -
Please help me 2 find a Document for this jar file com.sap.workflow_api
HI,
I want to create a task in UWL using web dynpro application. For this I need to import the specified com.sap.workflow_api.jar jar file.
This jar file is in our WEB AS Server
path=
server\c\usr\sap\W01\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.workflow.apps\lib
I have browsed all over for a good document , i got just one link :
http://help.sap.com/saphelp_nw70/helpdata/EN/46/94b9b2b321581ce10000000a1553f7/frameset.htm
Could you help me out with a better document for This task and I want the complete document for this particular jar file com.sap.workflow_api.jar.
It wolud be very helpful if I could get it at the earliest.
Regards,
Boopathi MHI Ayyapparaj,
I have converted my project to javadoc,but i don't get any document for specific class. only I got what ever method is avilable in our controller that corssponding method come over in the java doc.
How can i get the document for specified IWorkflow interface ? this com.sap.workflow_api jar file has IWorkflow interface. I need to know how to use this IWorkflow interface.
How to use javadoc tool ?
Regards,
Boopathi M -
Can you please help me to improve the performence of this query
Select All Invoices cleared between date range
SELECT bsak~prctr AS prfcntco
cepct~ktext AS prfcnttx
bsak~lifnr AS vendcode
lfa1~name1 AS vendname
bsak~bukrs AS compcode
t001~butxt AS compname
bsak~zterm AS paytrmco
tvzbt~vtext AS paytrmna
bsak~waers AS invcurre
bsak~zbd1t AS paydays1
bsak~belnr AS invnumbe
bsak~buzei AS invlinnu
bsak~wrbtr AS invamoun
bsak~budat AS invpstda
bsak~zfbdt AS invdueda
bsak~augdt AS invpayda
bsak~gjahr AS invfiscy
bsak~zlspr AS zlspr
t001~land1 AS land1
bsak~projk AS contract
rbkp~xblnr AS invsupnu
rbkp~bldat AS creadate
rbkp~cpudt AS cpudt
INTO CORRESPONDING FIELDS OF TABLE list_aux
FROM ( ( ( ( ( bsak INNER JOIN rbkp ON bsakbelnr = rbkpbelnr )
LEFT OUTER JOIN t001 ON bsakbukrs = t001bukrs )
LEFT OUTER JOIN lfa1 ON bsaklifnr = lfa1lifnr )
LEFT OUTER JOIN cepct ON bsakprctr = cepctprctr
AND cepct~spras = sy-langu )
LEFT OUTER JOIN tvzbt ON bsakzterm = tvzbtzterm
AND tvzbt~spras = sy-langu )
WHERE bsak~bukrs IN company AND
bsak~lifnr IN vendor AND
bsak~zterm IN payterm AND
bsak~augdt IN daterang AND
bsak~projk IN contract.
SELECT * FROM rseg
INTO TABLE it_rseg
FOR ALL ENTRIES IN list_aux
WHERE belnr = list_aux-invnumbe
AND buzei = list_aux-invlinnu
AND gjahr = list_aux-invfiscy.
SORT it_rseg BY belnr buzei gjahr ASCENDING.Moderator message - Welcome to SCN
Please see Please Read before Posting in the Performance and Tuning Forum before posting in this forum. there are some things you need to take care of first. - post locked
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob -
Please help me figure out the reason for this error
Hello I am trying to run the jar Gui file I got from http://www.cs.cmu.edu/~cmucam/cmucam2/downloads.html
and am getting the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no sserial in java.li
brary.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at serialPort.<clinit>(serialPort.java:22)
at SerialComm.<init>(SerialComm.java:50)
at CameraSerial.<init>(CameraSerial.java:64)
at MainWindow.<init>(MainWindow.java:620)
at CMUcam2GUI.main(CMUcam2GUI.java:7)
Can anyone figure out why I am getting this error? I am running it on a windows xp professional system.Yes you need the sserial native library (and no I do not know where to get it).
-
need driver for canon mg 5250 as scanner is not working with version 10.7. Lion. Can you please help me to find the driver so scanner works with WIFI?
Try with the latest Apple driver package for Canon (released 15th Feb):
http://support.apple.com/kb/DL899
This solved my problem with the printing. -
My mobile phone is lost, please help me to find the serial number is: DNQKDBS8F8H4, my name is Yu Fan, thank you very much for this is my number: 15052995201
We're not Apple here. We're users. We cannot locate your phone any more than you could locate ours.
If you did not have find my phone activated on your device, there's no way to track it. -
please help me i forgot the password for my iclaoud i can not open my the device
Try to reset your password here: http://appleid.apple.com
-
Please help me to find the sample code and schema for GetDBDateTime.zip fil
Please help me to find the GetDBDateTime.zip and Guest_Book.zip files.
Tks!Does this Help?
http://www.oracle.com/technology/sample_code/products/ias/files/psp/GetDBDateTime/Readme.html
Did you install Oracle9iAS ? -
I just bought a new iMac and am having troubles downloading creative cloud installer. Its coming up with error 214 - I can't find any solutions for this. Can anyone help me? Im on mac OS 10.9.4
Meg81 error 214 indicates a download data validation error. This means that the update you downloaded became corrupted likely during the download process. I would recommend utilizing the suggestions listed in Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html to attempt to improve the stability of your Internet connection.
You can also find information on how to review your download logs which may provide additional information regarding the failure of the download. -
I have installed 2010 Microsoft office 2010 home and business version for my laptop,and I have installed lync 2013.Now i want create online lync meeting from outlook,but i am unable view that lync icon in outlook.Please give me the solution for this issue.
Regards
RaghavendarHi Raghavendar,
Generally, when you install Lync 2013 in the computer with Office 2010, a Lync Meeting Add-in will be installed and enabled in Outlook 2010. Please follow these steps to check it:
1. In Outlook, click the File tab, click Options, and then click
Add-Ins.
2. Please take one of the following actions:
If the add-in is in the Inactive Application Add-ins list, follow these steps:
a. In the Manage drop-down list at the bottom of the dialog box, click
COM Add-ins, and then click Go.
b. Click to select the check box next to the add-in, and then click OK.
The New Online Meeting button should now be available in
Calendar View, and the Online Meeting button should be available when you create a new calendar item.
If the add-in is in the Disabled Application add-ins list, follow these steps:
a. In the Manage drop-down list at the bottom of the dialog box, click
Disabled Items, and then click Go.
b. Select the add-in, and then click Enable.
c. Restart Outlook, and then verify that the add-in is displayed in the
Add-ins dialog box.
The New Online Meeting button should now be available in
Calendar View, and the Online Meeting button should now be available when you create a new calendar item.
3. In Event Viewer, view the Application log to see whether an error was logged for Outlook, for Lync 2013, the Lync Meeting Add-in for Microsoft Office 2013.
Thanks,
Winnie Liang
TechNet Community Support -
(the original version) so that I can upgrade my system and install Logic X. I currently have 10.7.5 and a late 2011 Macbook Pro and the new Logic will not install. Can someone please steer me to find the download for 10.8?
First check the... Tech Specs > http://www.apple.com/osx/specs/
Mountain Lion Download...
http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion
Be sure to make a Backup of your Current System Before Upgrading.
Maybe you are looking for
-
Recently (after the iCloud) my mail is full of garbage that had previously had rules applied. The rules are no longer working, even if applied manually. If anyone is having this problem or know of a solution please advise. Thank you in advance.
-
How do I create a landing page
I would like to create a few different landing pages to go with email campaigns I'm working on. I have not used business catalyst before. Is it the same as adding a web page?
-
my free trial of FCPX will expire today. How do I save my project to work on it later once I can purchase it. Is that what Export XML does?
-
Anyone else having trouble playing podcasts with iOS 5?
Whenever I download a podcast from the iPad iTunes app, it shows in the music app, but will not play it. Anyone else have this problem, and figured out how to fix it?
-
ITunes 10 is it necaessary for a 3gs
I had a 3gs which I upgraded to ios4 which caused a lot of problems including dropped calls and rebooting. Apple Genius Bar replaced the phone with one with the ios 3.13. on it and advised me not to upgrade to ios4. I am quite happy with the 3gs on i