How to use AS operator with my requriment query
Hi allI have a requirement as follows
EMPID ENAME SAL JOB
------------------------------------------------------------------------------------
10 RAJ KAMAL MANAGER 25000
20 REZZIK NIZAR CLERK 4000
CHRISTINE GUPTA ANALYST 20000 30
ASHUTOSH GUPTA DEVELOPER 10000 40
ASHUTOSH 50 NAYAR PROGRAMMER 15000
I'm looking enames I need to get the full name, even if I search with just a single LETTER/WORD immaterial the order they exist in the name I need to get the full name. (INFACT WORD comparison)
ex:
(1) select * from emp where ename like '% ka.
I get:
10 RAJ KAMAL MANAGER 25000
20 REZZIK NIZAR CLERK 4000
This isn't what I need I need just Word camparision no comparision letters let me tell you...
Select * from emp where ename like 'amal %.
Even for this ill request to get the same result... is not my option to go...
I need just word comparison with letter of departure and immaterial to the position of the word in the name
If it is possible to do with the query please let me know...
Thanking you
Julien Vishwanatham
Or maybe
SQL> with e as (select 10 as empid, 'RAJ KAMAL' as ename, 'MANAGER' as job, 25000 as sal from dual union all
select 20, 'KAMAL RAJ NAYAK', 'CLERK', 4000 from dual union all
select 30, 'NARENDAR GUPTA', 'ANALYST', 20000 from dual union all
select 40, 'ASHUTOSH GUPTA', 'DEVELOPER', 10000 from dual union all
select 50, 'ASHUTOSH IMKAL', 'DEVELOPER', 10000 from dual union all
select 60, 'ASHUTOSH NAYAR', 'PROGRAMMER', 15000 from dual
)
---
---
select *
from e
where regexp_like(ename,'(^| )ka(.*)( |$)','i')
/
EMPID ENAME JOB SAL
---------- --------------- ---------- ----------
10 RAJ KAMAL MANAGER 25000
20 KAMAL RAJ NAYAK CLERK 4000
2 rows selected.
Tags: Database
Similar Questions
-
How to use 'LIKE' operator/substr/instr with if condition?
Hello
How to use 'LIKE' operator/substr/instr with if condition?
I can use the following function:
<? xdofx:InStr('ssStatus','Open',1) = '0'? >
which returns true or false depending on ssStatus as Open *.
But when I try to use <? If: xdofx:instr('ssStatus','Open',1) = '0'? > calculating <? end if? >
It gives an error.
Any suggestion? OR a solution?
Thank you.
Published by: user12427117 on March 10, 2011 20:42
Published by: user12427117 on March 10, 2011 20:46You can try to use
0? >
Use contains to AS
-
How to use between operator in Disqualification without using the script processor?
Hello Experts,
How to use between operator in Disqualification? for example phonenumberLength between 7 and 10. I don't want to use the script processor? Also how to reproduce the SWITCH statement Disqualification CASE?
Thank you
Konate
1 Add a processor 'check the length.
2. connect the transformer and open the configuration dialog box
3. in the tab 'Attributes' select your attribute of telephone number as the "field Check.
4. in the tab "Options", enter "7-15"in the option 'number of valid characters.
5. run the process.
a. accounts with [included] a character length 7-15 phone numbers out of the release of "valid".
b. records with a length of character <7 or="">15 phone numbers out of the release of "Invalid character count.
Note: the processor also adds a 'LengthValid' flag attribute which you may also branch on [with the values "Y" and "NC" for both scenarios above]. See Library of processor of the online help for more information.
Thank you
Nick
7> -
How to use as operator for several values
Hi all
I want to obtain the column values for the column - filed_name which ends by ('X 1', 'X 2' 'X 3' 'X 4' 'X 5' 'X 0' 'XA' 'XB' "XM" "XP" 'X' "CM" "MT") of the variable_info table
I tried to use as shown below
SELECT * FROM VARIABLE_INFO WHERE FieldName like (' %x 1 "," %X 0 ");
but getting error
ORA-00907: lack of right parenthesis
can someone tell me how to use as operator for multiple values?
Thank you/kumarYou need not a subquery, just make sure that you use parentheses to group your GOLD requirements
SELECT RELATION , FIELD_NAME , ATTRIBUTE , FIELD_DESCRIPTION, SOURCE FROM VARIABLE_INFO WHERE RELATION NOT IN ( 'CHAI', 'ITAB', 'ITB2', 'ITB3', 'MINI', 'NOTE', 'MINC', 'FINI', 'FTIM', 'FWTG', 'FMLY', 'FMIS', 'FSUM', 'MEMB' ,'FINC', 'FASO') AND (SUBSTR(FIELD_NAME,-2) in ('X1', 'X2' ,'X3', 'X4', 'X5', 'X0', 'XA', 'XB', 'XM' ,'XP' ,'CM','MT') OR substr(FIELD_NAME,-1) in ('X') OR substr(FIELD_NAME,1) in ('J') ) AND (ATTRIBUTE LIKE 'NUM%' OR ATTRIBUTE = '-') ;
The error you are getting sounds like a problem with the definition of VARIABLE_INFO. It seems the synonym or something that it points to rear edge
For example:
CREATE SYNONYM X FOR DUAL; CREATE SYNONYM Y FOR X; CREATE OR REPLACE SYNONYM X FOR Y; SELECT * FROM Y; SQL Error: ORA-01775: looping chain of synonyms
Kind regards
Bob -
How to use spell checking with magic mouse
How to use spell checking with magic mouse
Hello
The mouse is not intended to be used with the spell checker.
The mouse settings available in system preferences > mouse
Spelling and grammar can be checked in the Edit menu in most applications.
In addition, shortcuts keyboard.
Command:
And the command;
-
How to use windows update with browser firefox4
How to use windows update with browser firefox4
You MUST use Internet Explorer to access http://windowsupdate.microsoft.com.
-
How to use windows scan with my new canon MX 922 printer. It is conncected and copying and printing but can't seem to use the windows scan option, the cannon that which for me is slow thanks
All in one, type printers (print, copy, scan) usually have a very specific set of instructions during the installation. If not followed exactly the probability is that the scanner will not work.
Canon: http://www.usa.canon.com/cusa/consumer
Download and read the Setup instructions for your model, have you followed the instructions exactly, more precisely when to connect the printer / scanner during installation of the software process?
J W Stuart: http://www.pagestart.com
-
Satellite A210 - how to use the muldimedia with other than Media Player buttons
Hello
is it really not possible to use media keys (Play, Pause, FF) on top of my laptop for an application other than Windows Media Player?
Is there a reason for this? I would like to control Winamp with this button.It seems quite sensless to restrict access to a SINGLE application of HUNDREDS available, a then it is the multimedia player that is not used by most people.
I have the Satellite A210 Notbook.
Can you tell my how to control my winamp with these buttons?
Greetings from Robert
Hello, Robert
Unfortunately, there is no solution at the moment. If you check this forum, you will find several very interesting discussions on the multimedia buttons and Winamp player. The fact is that some people have found the solution for older models of laptops running Windows XP Home edition. Winamp has offered the plugin must be installed.
We now have the new situation. Your laptop is running latest Vista OS and I didn t find any plugin that can help. Problem is that your laptop is designed for Windows Vista preinstalled OS contains all the necessary plugins for Windows media player running under the operating system preinstalled.
Is any kind of restriction. With preinstalled operating system you can do what you want and if you can find a way to change it for that. You know very well that there are hundreds of different players in the market. You can't wait for Toshiba take a time and create a plugins for each other and satisfy customers around the world.
-
How to use the product with laptop Portege R150 recovery CD?
How to use the recovery CD product with laptop Portege R150 of Formate and reinstall the operating system?
Mobile recovery procedure Asian does not for me but may not be very different as on mobile phones produced in Europe or the United States.
Start your laptop and press F12 to display the boot options
Place the recovery disc into the optical disc drive
In the start menu, choose the CD/DVD drive and press ENTER
The procedure of the facilities is expected to begin
Follow the menu on the screenI do not know what will be shown at this stage, but it is not complicated to install the original recovery image. If you have any other questions please let me know what happens when upgraders begins. What options are displayed?
-
How to use WVC54GCA webcam with Skype?
I just installed the wirelesss WVC54GCA webcam. The wireless part works very well in the House, but I don't know how to use it on the internet. How can I make my default webcam for Skype? Do I need additional Windows drivers?
WEBCAMXP there WDM drivers that allow you to use the camera WVC54GCA with Skype. They are free to download. Thanks for the link!
-
How to use Data Guard with E-Business Suite
Hello
I'm trying to get my head around how would you use Data Guard with E - Business Suite.
I know that you can use only physical standby with EBS, however I have a few basic questions about specific values < SETTING > and how they are treated by a standby.
Given that the standby and primary servers will have different host names and that generally there are < FRAME > specific values that include the hostname, where they will have to change on the standby server, both from the point of view of the battery backup Apps and within the standby database itself, I wondered how it would happen.
Usually, EBS cloning process would change the < FRAME > target settings in the target apps stack and the target database (for example, parameters such as FND_NODES etc.).
Q1. However I do not know how the process of cloning E - Biz would fit with a database of the day before?
Q2. As the standby database won't even be in an open State, I don't know yet how you would apply a party any of the cloning process to a database of pending to the target?
Q3. Even if you were able to change on the eve of the database to reflect the < FRAME > from backup server, it would mean surely it was more a physical copy of the primary database, that's why it would be more a day before.
All a bit confusing - any clarification appreciated
Jim
PL see if MOS Doc 1070033.1 can help you
-
How to use the date with the report parameter format
Hi all
How to use the date format with this tag function,
<? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >
This date of form source of report and setting is coming as this 2012/11/01 00:00:00.
So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >
but its giving error. Can someone pls how to convert to the format of date custom.
Thanks and greetings
Srikkanth.MProblem solved.
REF this link
-
How to use the import with FDM with adapter ERPI script?
Hello
I use FDM and ERPI 11.1.2 to load data of EBS R12 to planning 11.1.2
Loaded from eBS data for a YEAR.
I realized I could use an import script to manually calculate the amount with the periodic_net_cr and periodic_net_dr fields.
But how to use this import script? Because in my import in FDM format, I do not use a file but directly the adapter, if no field "Expression".
Thanks in advance for your help
FannyYou must use the ImportAction script.
-
How to use order by with hierarchical query
I have a hierarchical query basically he brings an organization chart. We start with the Manager id, get everything that employees of the person. If the employee is also a Manager I want to get the employees of that person and turn them right after that person. I don't bother with the entire query but relevant part is:
Where pi_mgr_id is a parameter passed to the procedure and the em is the alias of the emp_mgr_relationship table that contains emp_id and mgr_id. It works very well. What I want now is for employees who work for the same Manager appear in the order of name. The table that contains the names of the employees is an alias as pe and the name column is called name1. I added the following:START WITH em.mgr_id = pi_mgr_id CONNECT BY nocycle PRIOR em.emp_id = em.mgr_id;
But what to put the entire list in the order of name. What I want is for the employees who work for the same manager be in name order. We're going to the manager that I want to the body is named Frank. I want to get itSTART WITH em.mgr_id = pi_mgr_id CONNECT BY nocycle PRIOR em.emp_id = em.mgr_id order by pe.name1;
How can I get the list in order?EMP_NAME MGR_NAME Allen Frank Beth Frank Alex Beth Charles Beth Ed Beth Dean Frank George Frank Benny George David George Sam George Dan Sam Harry Sam John Sam Terry George James Frank Ken Frank Mike Ken Warren Ken
Published by: kendenny on July 28, 2010 07:31Make use of the ORDER of Friars and SŒURS clause in the hierarchical queries to define the order of child columns.
START WITH em.mgr_id = pi_mgr_id CONNECT BY nocycle PRIOR em.emp_id = em.mgr_id *order siblings by name1;*
-
How to use HorizontalList filled with an array of an Image?
Is it possible to fill a HorizontalList with an array of an Image? I am trying to create a HorizontaList of Images (thumbnails) by using a dynamic method where I put each thumbnails found in a table and then indicate the HorizontalList to use the array as the dataProvider. The result is that I just saw the ID generated for each Image.
Since I'm controlling the content of the HorizontalList in the mx:source, I'm a bit confused how to use the itemRenderer property.
Any help will be appreciated since Google doesn't show a lot of example/problems like mine at the moment!Hello
Fair value the itemRenderer property mx.controls.Image and you should do.
Maybe you are looking for
-
How to install iTunes on my iPad 2 Air
I would like to transfer a file ppt (PowerPoint) to my Windows laptop to my iPad 2 Air but I need first to install the latest version of iTunes on my iPad. The problem is that I can't find the right itune app on the app store. Pls help, appreciate it
-
What is my card SIM in my iphone 5 c with virgin mobile works with iphone is?
I have virgin mobile with an iphone 5 c. I want to buy a se iphone unlocked by apple because of no phones in stock at Virgin mobile site. If I get the iphone 5 c sims card, it'll work in is unlocked iphone? He worked with my 5 c I got a replacement f
-
Use 1 8 GB or 2 cards memory 4 GB in MB Pro 17"
Hi all - I have a 2011 end Pro 17 "MacBook, which initially provided with 2 cards of memory 2 GB of quantity. Wishing to move to 8 GB, I ordered 2 cards of 4 GB of quantity, but the company that I ordered me delivered a single 8GB card. My understand
-
Please allow me to download drivers for laptop links
Please allow me to download drivers for laptop links It has: G6 124se
-
List of Contacts E-mail direct transfer Vista on a second computer Windows 7
How to make for TRANSFER, list e-mail Contacts Live on a Windows Vista laptop to laptop Windows 7 Live messages?