How to check the column contain alphanumeric or numeric value
Dear Guru,I have a table Data_Table with content below
Name varchar2 (30)
content varchar2 (100)
Content column can contain alphanumeric and digital data with separated by commas.
I want to check if the column gave completely digital or alphanumeric.
example of
(a) 1223,2313,312,12313 (since it is purely digital data with commas so you can say that these are purely numeric data)
(b) ABC, ABC_VAL, XYZ (since it's purely alphanumeric data with separated by commas)
If one) is of digital type
case b) is alpha-numeric
Any body can help me to know if the content is digital or non-digital
thanking in advance
Sanjeev
Hello
Here's one way:
SELECT txt
, CASE
WHEN REGEXP_LIKE ( REPLACE (txt, ',')
, '^[[:digit:]]+$'
) THEN 'All digits'
WHEN REGEXP_LIKE ( REPLACE (txt, ',')
, '^[[:alnum:]_]+$'
) THEN 'All alphanumeric or _'
END AS txt_type
FROM table_x
;
I used
REPLACE (txt, ',')
instead of just txt so that a string consisting of all commas (such as ",") would not be counted as either all figures or all alphanumeric characters.
Tags: Database
Similar Questions
-
How to check the column updated whereby the package or procedure?
Hi all
Can someone help me how to check the column updated by which the package or procedure
A.Mahesh
Hello.
You can check what object is a reference to the table of the column:
Select *.
of all_dependencies d
where d.REFERENCED_NAME = '
. ' And you can find all the links to the object source data column:
Select *.
of s all_source
where s.name = "
." and s.OWNER = '
. ' and s.TYPE = "
." and as s.TEXT '%
%' -
How to check the columns updated condition in after triggers
Hello
I create after the update trigger,
-------------------------------------------------------------
create or replace
TRIGGER 'TR_U_PAYING_MEMBER '.
AFTER UPDATE
ON PAYING_MEMBER
FOR EACH LINE
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
IF ***(:new.active_member_status) and (: old.active_member_status) is not null THEN
Begin
Insert in the table of the newspaper...
commit;
End
End
---------------------------------------------------------------
How can I check the condition only this update of column. (********)
I used "update (: new.active_member_status) ' but it does not work.NVL IF (: New.ColName, ' the NVL value)! = NVL (: old.) Column name, 'any value NVL') THEN...
is what you are looking for.
-
How to check the option buttons with button Differfent values
Nice day
I am currently trying to write a script that would mask 5 6 radio buttons
I have an option called "" 3 button "Transferr.
with values of:
Yes;
Supp;
Reg; and
do_not_transfer
so, I have a menu drop down called ""Rel. ARTICLE".
with values of
3A;
3 (B);
4 (A);
4 (B); and
4 C
I know how to get the value of the box and manipulate the other fields
as
BEGINNING
transfer of var = getField ("3. Transfer") .value
var relitem = getField ("rel. HEADING") .value
If (transfer = "Yes" | = "Extra" transfer) & & (relitem == '4 c' | relitem == "4 (B)" ""))
{
getField ("a. recommend").checkThisBox(0,true);
getField("a._recommend").display = display.visible
getField ("a. I didn't recommend").checkThisBox(0,false);getField ("a. I do not recommend") .display = display.hidden
}
ElseIf (transfer = "do_not_transfer")
{
getField ("a. recommend").checkThisBox(0,false);
getField("a._recommend").display = display.hidden
getField ("a. I didn't recommend").checkThisBox(0,ftrue);getField ("a. I do not recommend") .display = display.visible
}
END
I would like to make sure that rel. ARTICLE! = 4 (A); 4 (B); 4 (c) with values of 'Yes', it is the "Extra" box and "Reg" are hidden, while "do_not_transfer" is still displayed and checked.
I was passing through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
Thank you for your help in advance.
if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
This should be:
if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
Similarly,.
else if (transfer = "do_not_transfer")
must be:
else if (transfer == "do_not_transfer")
In order to work with an individual widgets in a form field, get an object that represents the widget using the getField method specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html
-
How to check the JSON object properties available
Hi I have a JSON of WebService object.
How to check the available JSON object?
ex JSON:
{
name: "someName".
DESC: 'someDesc '.
}
How to check the available name?
Because sometimes not available from the server name properties
void MyClass::httpFinished(QNetworkReply* reply) { QString data = (QString) reply->readAll(); bb::data::JsonDataAccess jda; QVariant variant = jda.loadFromBuffer(data); QVariantMap variantMap = variant.value
(); QString name = variantMap.value("name").toString(); } I want to hide component Label on my .qml if name not available from webservice.
Thank you
Kaz32 wrote:
Hi I have a JSON of WebService object.
How to check the available JSON object?
ex JSON:
{
name: "someName".
DESC: 'someDesc '.
}
How to check the available name?
Thank you
If you want to check if the name is available, you must use
bool nameExists = variantMap.contains ("name")
-
How to check the key is oem?
How to check the key is oem?
And how to check the key belongs to which company, dell hp...?
This is possible if the license is installed.
When it is installed, you can proceed as follows:
Click Start, right click on computer
Click on properties
Scroll down to the Windows Activation
The product ID will contain - OEM-
-
Anyone know how to check the date of warranty until when?
Anyone know how to check the date of warranty until when?
-
How to check the balance on the gift card itunes
How to check the balance on the gift card itunes
Redeem it
-
Satellite A200 - how to check the temperature of the processor fan?
Hi all
I have a Satellite A200 that my teenagers use a little, or abuse a little! Recently, it would not start up. I suspect the fan and pulled out the fan cleaned and tested the fan on a PSU, worked out well. He put it back together, ran startup repair and now the computer is operating normally. The fan is however not appear to come at all. In the Device Manager it tells me it works very well. I'm all good with the mechanical side of the House, but I'm a quamby operating system! How to check the temp CPU or fan?
Thought that replace the fan but don't want to go that far just to get no results. Currently using the vacuum on low like an external fan and didn't want to just run the laptop with no cooling for fear of permanent damage. Although children watch movies with her on their doona may have already reached this!
Any advice would be appreciated.
Hey mate,
How to clean the fan exactly? It s advisable to use the jet of compressed air. This could blow the dust of fans cooling and, therefore, it of not necessary to disassemble the laptop.
In addition if the fan doesn't work anymore it of necessary to replace. You can order spare parts at an authorized service provider.
-
How to check the print queue in Windows 8
Difficulty controlling the queue with your new Windows 8? Here's a great video on how to do it:
Hope this helps to understand how to check the print queue in Windows 8. If you have problems, let me know, I'll see what I can do to help.
-
How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?
Hello
Follow these steps to check the update of firmware for your printer:
Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:
- In the wireless menu, tap Settings.
-
How to check the size of the file to a text file.
How to check the size of the file to a text file.
Please explain to me.
I'm new in LabVIEW. and have no idea about that...;
Hi prashant,
go to the file e/s palette and then the advanced palette which is a search palletteand sub getfilesize.vi... but this function gives the result in bytes...
Thank you and best regards,
srikrishnaNF
-
HP G42 notebook: how to check the heat sensor
my laptop fire but there is no system message...
and performance down... could be heat sensor not properly detect...
How to check the heat sensor...
my laptop G-42-355tu
-
How to check the use of the ram?
I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?
I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?
Yes, Yes... and no. All applications on your computer uses RAM, not only the pagefile or system (kernel).
What are you really trying to do?
See http://www.petri.co.il/pagefile_optimization.htm , especially the part under "How Pagefile your system use?"
-
How to check the manufacturing date of the Z2?
Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?
Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.
This label can be found in the MicroSD slot, click on the following link:
http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html
Maybe you are looking for
-
Audio to youtube videos out slowly sink during video playback.
I've updated Firefox on my computer, not for a long time, and after I have done all the audio of youtube videos will slowly out of sink. I tried to play the same videos on other bowers web with all the problems. I also tried Firefox running in safe m
-
I suffer from a problem of 1-3 years with mail and online steps that solved the problem then do not work now. Mail farm way unexpected about 1 s after the launch. First part of the report to the following incidents: Process: Mail [4447] Path: /Applic
-
I need emlarge the words printed with Firefox?
bold text I need to enlarge the words to read.
-
Problem to make a new partition
I have a problem when creating a new partition: at the end of the process in the disk utility, may not achieve the partition, error on file system. Can you help me? OSX El captain
-
I do not understand why my Microsoft Office now reduced functionality. Windows 7 was installed on my laptop at the time of the purchase, but the pages 'aid' is now suggesting that it was only a temporary installation. Whenever I was invited to enter