I am trying to search for this pattern ab1234. I tried col like 'ab[0-9][0-9][0-9][0-9]' col like '(ab)[0-9]{4}' col like 'ab####' None of these are working. I checked this website https://www.w3schools.com/sql/sql_wildcards.asp, but it is not very helpful. Any advice is appreciated :)
How to search two strings followed by 4 digits in Hive SQL
385 Views Asked by Rachel Y At
2
There are 2 best solutions below
Related Questions in SQL
- SQL schema for a fill-in-the-blank exercise
- Hibernate: JOIN inheritance question - why the need for two left joins
- What's supposed to be the problem in this query?
- Compare fields in two tables
- How to change woocomerce or full wordpress currency with value from USD to AUD
- Dynamic query creation with Array like implementation
- SQL query to get student enrolled in this month in a course - Moodle
- SQL LAG() function returning 0 for every row despite available previous rows
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- how to use system's environnement variables in sql script
- PHP fetchAll on JOIN
- Multitable joining in Sql
- How to display name starting from 'z' by using BETWEEN cmd only?
Related Questions in HIVE
- Type Adapter for Offset in hive flutter
- HIVE Sql Date conversion
- How to set spark.executor.extraClassPath & spark.driver.extraClassPath in hive query without adding those in hive-site.xml
- Hive query on HUE shows different timestamp than programatically/on data
- descending order of data in hive using collect_set
- How to optimize writing to a large table in Hive/HDFS using Spark
- Spark SQL repartition before insert operation
- Alter datatype of complex type(array<struct>>) in hive
- SqlAlchemy connection to Hive using http thrift transport and basic auth
- Aggregate values into a new column while retaining the old column
- Is it possible to query MAPR hdfs/hive tables from Trino?
- Can we make a column having both partitioning and bucketing in hive?
- converting varchar(7) to decimal (7,5) in hive
- Extract all characters before numeric values in hive SQL
- Livy session to submit pyspark from HDFS
Related Questions in HIVEQL
- How to convert date format yyyyMMdd in Hive SQL and automate the query inside the where clause
- How to reverse words in a string in HIVE?
- HIVE - Omitting exact bracketed substring from a string field
- Count Unique Values Throughout One Day For Nonconsecutive Student ID's
- AnalysisException: Unsupported correlated subquery with grouping and/or aggregation
- Extracting year to date data and comparing with same time last year
- overwriting external hive tables
- facing hive query error on show databases query - Unable to instantiate
- Filter condition in WHERE clause in HiveQL query does not work properly
- Can i alter non-Partitioned table with already loaded data to have dynamic partitions?
- Unable to select count of rows of an ORC table through Hive Beeline command
- Hive join tables and keep only 1 column
- How to extract a JSON value in Hive
- Hive ParseException: cannot recognize input near 'create' 'table'
- How to concat uncertain keys together in hive?
Related Questions in RLIKE
- Why does RLIKE match á and è in binary charset in MariaDB 10.2
- PySpark Return Exact Match from list of strings
- MySQL REGEXP acting with case sensitivity without BINARY mode?
- MYSQL REGEXP_SUBSTR: get string or ip out of text
- Hive RLIKE on a JOIN synthax
- MySql REGEXP or RLIKE UPDATE
- How to write RLIKE in zend framework 3?
- Pyspark: How to filter dataframe based on string and absence of prefix?
- How to search two strings followed by 4 digits in Hive SQL
- How to use RLIKE with Doctrine 2?
- MYSQL REGEXP/RLIKE Advice?
- How to use RLIKE AND regular expression in case insentive
- Need MySQL RLIKE expression to exclude certain strings ending in particular characters
- Does Postgres Support Rlike statment in jsonb columns type?
- How to escape single quotes in RLIKE Hive? Double single quotes not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use rlike for regexp check:
Or more strict pattern: