How to find the middle name of any column NAME
I wrote under request
why this market not could you please help me?
Select substr (ename, instr (ename,' ', 1, 1), instr (ename, ' ', 1.2)) of e1
InStr, primary function must return the first position of the space and
2 nd instr, function should return 2nd space
so we can specify in substr function to extract the form position of string from this place to that place
It would be very useful that you explain the reason
Best regards
Prem kumar
Select
-case when length (substr (ename, instr (ename,' ', 1.2))) = length (ename) then
(case when length (substr (name, instr (ename,' ', 1.1))) = length (ename) then null)
of another substr (ename, instr (ename,' ', 1, 1) + 1) end)
of another substr (ename, instr (ename,' ', 1, 1) + 1, instr(ename,' ',1,2)-instr(ename,' ',1,1)-1)
end middle_name
of e1;
Select
-case when length (substr (ename, instr (ename,' ', 1.2))) = length (ename) then
(case when length (substr (ename, instr (ename,' ', 1.1))) = length (ename) then null)
of another substr (ename, instr (ename,' ', 1, 1) + 1) end)
of another substr (ename, instr (ename,' ', 1, 1) + 1, instr(ename,' ',1,2)-instr(ename,' ',1,1)-1)
end middle_name
from (select 'asw nag raj' ename of double)
Union
Select "raj asw ght" double
Union
Select 'raj asw dfjadf Tom' from dual) e1;
Tags: Database
Similar Questions
-
Windows FAX and SCAN error reports - request server name. How to find the server name?
How can I find the name of the server to send e-mail using Windows FAX and SCAN.
Hi DonaldCombes,
1. are you able to use it earlier?
2. What is the exact error message you get?
3. don't you make changes occur the computer before the show?Try to use the full name of your Pc name of the server.
Configure your computer to send and receive faxes
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-your-computer-to-send-and-receive-faxesSolve fax problems
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-fax-problems -
How to find the JSFF name in managed bean
Hi gurus,
I'm new in the adf and the use of 11.1.2.3. I'm looking for the name of page jsff managed bean. For example, if I have abc.jsf contains a fragment of xyz.jsff. I want when I click on the button in the jsff page, a pop shows me the name is xyz.jsff.
Thank you
Hello
to get the page name, FacesContext.getCurrentInstance () .getViewRoot () .getViewId () (return abc.jsf). If you expose the page through a region of the ADF fragment, then the call is
ControllerContext.getInstance () .getCurrentViewPort () .getViewId () (returns xyz if the activity view has the same name as the file xyz.jsff Physics)
Frank
-
How to find the value duplicate of each column.
I have it here are four columns,
How can I find the duplicate of each columns value.
with All_files like)
Select ' 1000 'like BILL, "2000" AS DELIVERYNOTE, CANDELINVOICE ' 3000', '4000' CANDELIVERYNOTE of all union double
Select ' 5000 ', ' 6000', ' 7000 ', ' 8000' Union double all the
Select '9000 ', '1000', '1100',' 1200' from dual union all
Select ' 1200 ', ' 3400', ' 6700 ', ' 8790' Union double all the
Select ' 1000 ', ' 2000', ' 3000 ', ' 9000' Union double all the
Select '1230', '2340', ' 3450 ', ' 4560' double
)
SELECT * from All_files
Output should be as shown below.
1000 2000 3000 4000
9000 1000 1100 1200
1200 3400 6700 8790
1000 2000 3000 9000
Required to check uniqueness columns.
Thank you.Hello
If you are not too concerned about performance, this should give you the desired result:
SELECT distinct INVOICE, DELIVERYNOTE, CANDELINVOICE, CANDELIVERYNOTE FROM ( SELECT a.*, count(*) over(partition by t.column_value) cnt FROM All_files a, table( sys.odcivarchar2list( a.INVOICE , a.DELIVERYNOTE , a.CANDELINVOICE , a.CANDELIVERYNOTE ) ) t ) WHERE cnt > 1 ;
-
How to find the way to rows and columns of matrix
Hello everyone
I have a matrix N * M with some of the elements with only 0 and 1.
has every element that is 1 (line, column).
I want to find the elments 1 and find the way to lines which is 1, and also the average columns.
Thank you very much
my email: [email protected]
-
How to find the user name and a name indatapump import tablespace
I have a datapump without the export log file. I would like to import it into a database. Before you begin the import, I would like to know the schema and the tablespace which exported so that I can remap the schema and the tablespace to others. Is there anyway that I can doYou can run your import command, but add this:
include tablespace, sqlfile = look.sql user =
The look.sql file will have the tablespace create orders and orders for the user to create.
Edit look.sql to see what are the names of tablespace and user.
Dean
-
How to find the locaion of a particular column in a database
Hi experts,
I have the column name x. I want to know under what table it is present.
What may be the syntx for sql.
Thank you
Vselect owner,table_name from all_tab_columns where column_name = 'XXX' /
where XXX is the column name, looking for
-
How to find the name of the Oracle database server?
People,
Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.
Host name is "mylinux". Name of the database instance is PT853.
I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:
Export ORACLE_HOME = / home/user/OracleDB_Home
Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.
My question is:How to find the name of the database server Oracle with Oracle Linux 5 OS?
Thank you.You must learn the basic of database Oracle.
Please don't regard it not same as SQL server in terms of configuration.
You never specify the database server name in Oracle.
You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.
There was nothing called specify the name of the Oracle database from an oracle database server.
Concerning
Anurag.
-
How to find the name of Os_Process
Hello
Database is to have a user name 'TEST '. This db is available in 7-8 developers.nobody is having the test password.
This user has previously been used by them, but no more.
The test user connection is requested from their system, but he could not succeed because they do not have the password.
Run this query
My request is to know how to find what PROCESS name of operating system for the OS_PROCESS id received when I checked the server processes, no existing process with the process ID. (Its because the connection coludnt succeed then couldnot start any process on the server). I checked their systems as well, but no PID is also available with the process ID.select os_username,OS_PROCESS ,to_char(timestamp,'MM-DD-YYYY HH24:MI:SS') from dba_audit_trail where username ='TEST' and to_char(timestamp)=to_char('18-APR-13') group by OS_PROCESS,os_username,username,timestamp order by timestamp; and getting result as OS_USERNAME -------------------------------------------------------------------------------- OS_PROCESS TO_CHAR(TIMESTAMP,' ---------------- ------------------- VI13948I 8058 04-18-2013 09:56:59 AS12931I 13525 04-18-2013 10:11:08 AS12931I 14609 04-18-2013 10:14:26
thanxAFAIK, you must query dba_audit_session to see who connected to the database. Dba_audit_trail contains all the audit records, we cannot know if the records that show you are records of connection.
-----------
Sybrand Bakker
Senior Oracle DBA -
How to find the book, THE, Op units, Org (All) names and ID?
How to find the book, THE, Op units, Org (All) names and ID?
With regard to:
Mr. Shahzad Saleem
Please run the following query
SELECT gl.NAME ledger_name, hou.NAME operating_unit_name,
xep.NAME legal_entity_name
Gl_ledgers gl, hr_operating_units hou, xle_entity_profiles xep
WHERE gl.ledger_id = hou.set_of_books_id
AND hou.default_legal_context_id = xep.legal_entity_id
-
How to find the name of RDF file
In our user environment final creating sales and registration. Order once saved will be printed directly from the toolbar selection-"print icon".
How to identify the name of the report - the system is printing to change the same.
Very R12.0.6
Thank youHello
Once the request is submitted, go to view--> queries--> find.Compare with your report has already been submitted with the present report here.
Copy the name of the report and the system administrator--> simultaneous--> program--> set.
From here you can find the short name which is nothing other than the name of RDF.HTH
-Arif. -
How to find the session killed and computer name
Hello
At the time of the batch run killed .somebody this session without me knowing how to find the user particular db level or oslevel .de name which machine they killed how know at the OS level. but when I put the audit_trail = os only user SYSDBA activities are not checked the other activities of the user.
The server is AIX and db version 11i provide the query for conclusion or os level.
Thank you
DBC.
Published by: dbc001 on March 26, 2013 21:48check with who ever is privilleges to kill these perticluar session, if you have few users.
It is not possible to findout without verification or error info... etc.
Otherwise, restart these jobs perticluar and follow closely. -
Where can I find the NetBIOS name or DNS name?
Separated from this thread.
I have no idea what to do in step 4: network or Internet address , enter the name of the computer on the network that you want to access. This can be the NetBIOS name (example: server1) or DNS name (example: server1.fabrikam.com).
Where can I find the NetBIOS name or DNS name?
And in step 5, they speak the name and the password that you learn to connect to this computer after starting?
How the Windows credentials are on the list at the start?
If you simply click 'Remove Keystone', what are the consequences?
Which is easier said than done only because the network troubleshooting is extremely complex and advanced. This message is obviously from one long discussion somewhere else. In any case, I believe at the time, I tried to browse my 3 PCs via the network icon in Windows Explorer and saw [the PC name] is currently unavailable. Finally, here's what worked for that fix, and it had nothing to do with my conclusion on the in the Internet address or network information, boxes which I never figure it out. Here are the steps:
Open the Control Panel, in the Control Panel search box, type network connections; under network and sharing Center, click view network connections; Here I noticed that only Ethernet was active and Wi-Fi was a red X below; I wriggle on the icon until the check box displayed and checked. What does a menu appear; I clicked on to connect to.
I hope this helps.
-
How to find the current MovieClip
Hello
I create a flash file to display the products.
Images and Product Details are stored in the XML file.
Is what I'm trying to create something similar to the banner on http://www.gainfeeds.com/home
Add to this is that products are going to be right scroll to the left automatically if there is no user interaction, and produced at the Center will remain highlighted.
I created a long strip of coverage of products with a mask, the long strip continues to move give a scroll effect.
Now my question is how to find the product that is currently at the center of the mask?
Thank you.Alok Jain
No there is no default name assigned to them.
If you take the parent video clip and with for you apply a getChildNum() method, do not exactly know the syntax, you can take the children of the parent in sales responsibilities. 0,1,2,3,4,... etc.
But this isn't something that will help a lot because you don't know what this number is.
For example, when you create the child movieclips, xml-based, I assume you are using a statement. So in this statement when creating each movieClip, fi do you something like "var m:MovieClip = new MovieClip();"also do the following"$m.name ="mc"+ i". ""
You want to do this because the name "m" is valid only as long as the scope of the valid function is. Once the training starts again you loose any reference to the old "m" and a new one is created. So for future reference the movieClips outside the function that creates, you name them.
After that you can call from anywhere (given that you set the path to access the parent corectly) like this: "parentMovieClip.getChildByName("m3")" If you want to target a third, or using any name you give in the creation of statement.
-
How to find the version of the application deployed on wls9 using wlst
Hello
How to find the version of the application deployed on wls 9.2 wlst wsing. I know that we can use the Mbean version but I did not give any version while deploying.
Say I have an application with name test and the path is c:/temp/test1.ear.
(WHN deploy the app name (test) remains the same, but I could be deployed test1.ear(c:/temp/test1.ear) or test2.ear(c:/temp/test1.ear).
Is there a way to wlst to know what test1.ear or test2.ear is deployed.
Thanks in advance
NeerajHi Neeraj,
Here is the code that you had asked for.
# START OF SCRIPT
Connect('vasadmin','vaspassword','t3://localhost:7001')
domainConfig()
vasApps = cmo.getAppDeployments)for app in vasApps:
vasAppPath = ' / AppDeployments / ' + app.getName)
CD (vasAppPath)
print app.getName () + ': the source path is: "+ cmo.getAbsoluteSourcePath)# END SCRIPT
Thank you.
Naour Vijay.
Maybe you are looking for
-
Hi all. I use Macs years but I just started with El Capitan. On my old MacBook, I was unable to set up my Gmail accounts in Mail and had to go through Safari. Now, I had no adjustment of the problem to the top of my three accounts to Gmail. The only
-
I want Toshiba bluetooth stack SDK license
Hello I want to Toshiba bluetooth stack SDK license.And I send an email to http://aps2.toshiba-tro.de/bluetooth/?page=faq/sdkBut no one answers, something wrong? Thanks for everyone can answer me these questions?1. What can I do in the next?2. What i
-
Hard drive replacement on the Satellite A100-049
Hi, thanks for reading... Recently my Toshiba Satellite laptop has given an error on booting from hard drive failure imminent, I so bought a new drive of the same brand and model, WD Scorpio Blue 320 GB. On the installation of the new drive of the la
-
Update 4.1 to 4.5 CSM CSM
Hello I have a 4.1 CSM and service (CON-SAS-CSMPC41). I´d would like to know if I can update my server to HMC 4.5. Is this possible or do I need a license to upgrade?
-
Icons House of blackBerry Smartphones
I have House icons I never - use vocal music and i.e.visual vcast. Can disable them you so that they do not?