How to check the data that are not digital?
I have a varchar field and I would check for all of the lines where it does not contain a numeric value. How can I achieve this?Thanks in advance.
One option is to write a small function
CREATE OR REPLACE FUNCTION is_numeric( p_str IN VARCHAR2 )
RETURN NUMBER
IS
l_num NUMBER;
BEGIN
l_num := to_number( p_str );
RETURN 1;
EXCEPTION
WHEN others THEN
RETURN 0;
END;
only then can you call
SELECT *
FROM some_table
WHERE is_numeric( some_string_column ) = 0
Of course, you can adapt the function to return the numeric value rather than a 1 or a 0 more.
Justin
Published by: Justin Cave on June 21, 2011 18:15
Depending on the version of Oracle (which you don't mention), you can also write a regular expression to search for things other than numbers. This can become a little difficult if you have to manage commas and dots as decimal separators and grouping because different regions use the symbols differently and have different rules about what are valid models.
Tags: Database
Similar Questions
-
I open a page web mith several links that appear the same:
www.someurl.com/somepage.SD#
When I click on links, the section of the web page is expanded and more information is displayed. the web page contains JavaScript. So, I want to follow the real URL that the browser visits.These data are retrieved via a XMLHttpRequest to rebuild the part of the page and the URL in the location bar remains the same.
You can see in the Web Console (Web Developer > Web Console;) CTRL + SHIFT + K) as a POST and GET action.
You won't see a history entry in this case because you are not actually visit this web page.
These data are simply used by JavaScript to update the content of the current page. -
convert the data that are not text
create table x as (line_1 varchar2(10))
It is the source table, it transforms (to meet the requirements of the company) to another table where column line_1 is converted to a data type of number, and all the data in the column of line_1 which is the text are converted to-1.INSERT INTO x VALUES ('001165899', '0506', 'ZIP1003', 'ABC', 'xyz')
user628919 wrote:
How the hyphen may be replaced for the data where it grows in different places within the data.The solution needs to keep other rules - convert to_number, text-1 column, ignore nulls (see below)-, more remove the hyphen of digital data.
to_number(regexp_replace(line_1, '.*\D.*', '-1'))
As Vivek L, complete with a convenient link for documentation, said "replace should work.
to_number(regexp_replace(replace(line_1, '-'), '.*\D.*', '-1'))
John
-
How to identify the data that is associated with any book in crm on demand?
We are experimenting with books, but I have yet to find an easy way to identify the data that are not associated with any book.
Do you have a suggestion?I discussed this with Oracle in recent years CAB, but we have no indication if it will be included, but it could be part of their 'User' hotel subject they are studying.
-
How can I check for dates that are the same for today.
If I have a bunch of dates in a datetime colum. How can I check for dates that are the same for today.
"For example, this value of days would be ' #dateFormat (now (),"mm dd yyyy") #
The best I could come up with was:
Select * from data where data.userID =
2635 AND
"Convert (varchar, dateAdded, 101) = ' #dateFormat (now (),"mm dd yyyy") #
How can I get this to work smart peeople :)It is best to make the comparison on the datetime values. One technique is to get the current date at midnight. Then add one day to get tomorrow's date. In your sql query finds all values is greater than or equal to today and less than tomorrow.
One solution is to do everything in MS SQL
WHERE the dateAdded > = convert (datetime, convert (varchar, getdate(), 112), 112)
AND dateAdded = dateAdd (d, 1, convert (datetime, convert (varchar, getdate(), 112), 112))Another option could be to use CF to calculate dates:
WHERE the dateAdded > =.
AND dateAdded<> -
Hello
How is possible to create a Smart Collection to find all the photos are not belongs to any collection?
"Yesterday I was importing a lot of photo when my camera battery died then I succeeded him and continued to import without thinking that the previous import collection literally means" previous import. "
So I need to find a way to create a smart collection that will reveal all the photos that do not belong to any collection.
I solved the problem with a workaround is creating a collection based on the date of the photo which worked well, but must be nice to have a more general collection to find all the photo that are not from the collections.
Thanks in advance,
Marco.
Another way to do
1. Select all photos in the catalog
2 dismiss a color label
3. go to collections and multi select all your collections (ctrl)
4. select images and give them a color
5. return to the catalogue
6. filter by color label - No
-
How can I see the photos that are not in an album?
How can I see the photos that aren't in an album in the App "Photos"? I noticed that in the Album 'Pictures' are pictures I thought I deleted already. I would like to see all the photos in an album, so I can finally delete them.
You can go the the file menu Photos and click New Smart Album, and then set the condition of Album - is not. This will create a smart album that will show you all the photos that are not in any other album.
-
How to remove special characters that are not available in the key board
Hi all
How to remove special characters that are not available in the key board.
Thank you for your help in advance.select '106 © 500049' str from dual; After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number. Output should be like: Str 106 500049
select '106 © ® (k) 500049' str ,regexp_replace('106 © ® (k) 500049', '[^[:digit:]]+', ' ') r from dual
-
How can I find photographs that are not assigned to any collection?
Hello!
I use LR 5.7.1 on a Mac.
When I've airbrushed raw with PS CC images (and do not need file PSD more) I export the PSD (which is in my catalog) in JPG format and let it automatically add to my catalog. After that, I remove the PSD file. Which works very well.
But... the new JPG file is not assigned to any collection. This is no problem unless I forgot to do it manually after export (and import).
This brings me to my question.
How can I find photographs that are not assigned to any collection?
I tried with a smart collection after I found nothing suitable in the filter library. The search criteria, I tried are Source-> Collection with any of the conditions. One with an empty field, then with just a space and so on.
Does anyone have a good tip for me?
Thomas
You can also add numbers if you have collections that do not use characters of the alphabet.
-
How to check the data file is set to unlimilted autoextend
S/N,
Oracle version: 10.2.0.4
OS: linux
could someone tell me how can I check the data file are set to unlimited autoextend?
Thank you
Bahadur.Salvation;
Pelase see:
How to check the CanGrow data files the value of Maxsize unlimited [ID 468096.1]Respect of
HELIOS -
I want to see just all the Photos that are not in an album - possible?
Hello
is it possible to see all the photos that are not in the album?
Photo on Mac
THX
Stefan
Yes, create smart albums with the rule 'Album isn't everything. "
For the file menu: file > new Smart album
This album will contain all the photos that are not in any standard album.
-
Anyone know how to check the date of warranty until when?
Anyone know how to check the date of warranty until when?
-
y at - it a button to remove all the nuances that are not used in an file?
Hey all,.
I was wondering is there a button that removes all the nuances that are not used in an illustrator file?
Any help would be great
Look in the Actions Panel. It should be an action he who says to remove all unused items in the Panel.
-
queue on the profile that are not used
Hi guys,.
is anyway to wrap on the profile that are not used or attributed to any user name or roles?flaskvacuum wrote:
Hi guys,.is anyway to wrap on the profile that are not used or attributed to any user name or roles?
SQL> CREATE PROFILE test LIMIT 2 FAILED_LOGIN_ATTEMPTS 5 3 PASSWORD_LIFE_TIME 60 4 PASSWORD_REUSE_TIME 60 5 PASSWORD_REUSE_MAX 5 6 PASSWORD_VERIFY_FUNCTION null 7 PASSWORD_LOCK_TIME 1/24 8 PASSWORD_GRACE_TIME 10; Profile created. -- Created but not assigned -- SQL> select distinct profile from dba_profiles where profile not in (select profile from dba_users); PROFILE ------------------------------ TEST SQL>
-
How to check the table have are all views in oracle
Hello
How to check the table have are all views in oracleSELECT * FROM user_dependencies WHERE type='VIEW' AND referenced_type='TABLE' AND referenced_name ='Your_Table_Name'
You can use dba_dependencies to find views in the different schema.
Maybe you are looking for
-
Toshiba Equium L40 10 X Bluetooth stack - evaluation will expire
Hi all Help, please! I tried for centuries get a bluetooth stack that works with all the different devices and programs that I use (I've tried Widcomm IVT, Microsoft,...), but nothing helped. Finally understood that only Toshiba, duh! I have a Toshib
-
Update BIOS Satellite L30 - 10V died after unsucsessful
We couldn't get the L30-10 s to accept the 2 GB of RAM and advises him to upgrade the BIOS. We went on the Toshiba site and followed the instructions using the software, they have provided, we started upgrading the L30 - 10 locked up and sat there fo
-
Re: How to reset the password or do a factory reset on Laserjet Pro M225DN MFP
Please, I beg you. I asked to please. This printer is darn screwed up the password, not me. I copy - paste bro, it's the right password. I think the printer must strip certain characters when present you it, I used my stupid password generator that h
-
Satellite A300 - how to clean?
Hi dear Toshiba owners; I would like to clean my laptop after 9 months of good use. Well,. I'm not talking about cleaning the keyboard or LCD, of course, I'm no fan talking inside. I've noticed recently that this laptop is producing heat wrong lately