473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Need to validate YYMMDD Format.Data type is in Varchar2

Expand|Select|Wrap|Line Numbers
  1. select CUST_ID_DESCRIPTION,substr(CUST_ID_DESCRIPTION,1,2)   ,  
  2.       CASE
  3.         WHEN regexp_like(CUST_ID_DESCRIPTION,'^\d{2,2}([1-9]|[12][0-2])(0[1-9]|[12][0-9]|3[01])$/') then 'TRUE' ELSE 'FALSE' END RESULT
  4. FROM FNB_INDIVIDUAL_ID
Oct 20 '15 #1
1 946
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code or formatted data.

Your code is not valid Microsoft Access SQL. Please let us know what database you're using and we will move it to the correct forum.
Oct 20 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Galina | last post by:
Hello I am going to copy a data from MS Access table into Oracle table. One of fields is memo type and data in this field range from 1 character to 551 long string. Do I need to create a field...
1
by: Gregjg | last post by:
I have table with a field named for a city. Is it possible for the entries to auto uppercase the first letter? I know > will format all upper case and < lower case. But is there one for "proper"?
3
by: Tom | last post by:
In a JET db using ACCESS, I specify a field Data Type as Date/Time and the Format as Short Date. These dates appear as 1/3/2003, 3/31/2003 ..... in Access which is fine since I don't want the time....
2
by: x | last post by:
hi i am a pilot by profession. i want to create a database of my logbook using ms access 2002. i am facing a problem regarding the format of time field. when i select "Data/Time" data type for my...
1
by: shapper | last post by:
Hello, I need to use a data type where I can add items, sort them alphabetically and then use it as a datasource or bind it to a DropDownList. Could someone please tell me which data type...
6
by: RickH | last post by:
Hello, I would like to create a user XSD data type that inherits from the w3 standard data type called ID to make sure a certain repeated element always contains distinct values. The problem is...
1
by: SkipNRun | last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list. ...
2
by: ArunDhaJ | last post by:
Hi Friends, I am using a Number field which stored Floating point values... For example: Field Name: Salary Field Data Type: Number Field Size: Decimal Decimal place: 2 I need to get the...
2
by: alinagoo | last post by:
Hello all I'm working on a database application with MS-Access 2007 and now i have a problem with dynamic report creation process! I need to guess the data type of a ListBox! This my problem. The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.