Remove repeating letters
11gR2 DB
We have a string token with all small leters (Sample - abcdaeebfghiejklc)
Need to remove all the repeating letters in this tring. Output should be abcdefghijkl
I know how to do it by splitting the string into multiple rows, then use listagg to make it a string.
But can we do it use without using any kind of row generation. By regexp or something?
And if your version supports recursive subquery factoring:
SQL> select *
2 from tbl
3 /
STR
abcdaeebfghiejklc
abcdaeebfghiejk
SQL> Now:
with r(
str,
new_str,
l
) as (
select str,
cast(substr(str,1,1) as varchar2(4000)) new_str,
1 l
from tbl
union all
select str,
case instr(new_str,substr(str,l + 1,1))
when 0 then new_str || substr(str,l + 1,1)
else new_str
end new_str,
l + 1 l
from r
where l < length(str)
select str,
new_str
from r
where l = length(str)
STR NEW_STR
abcdaeebfghiejk abcdefghijk
abcdaeebfghiejklc abcdefghijkl
SQL> SY.
Similar Messages
-
How to remove repeated mails in exchange online outlook web app
Hi,
Any help me , how to remove repeated mails in exchange online outlook web app . As we are in process of migrating mailboxes to office 365 . We have migrated 5 mailboxes . But when i checked outlook web app after migration completed , i could see repeated
mails . When i compared with on premise outlook and office 365 outlook web app , there was lot of differences in read and unread mails .
Customer is expecting , same read and unread count should be replicated to office 365 owa.
Please suggest me to prevent this problem . As this is very urgent to give solution to customer .
Big thanks in advance.
Vinoth .If you've setup Outlook 2013 so it's connected to Office 365, and you've import the .pst file into Outlook, it will be showing as another "mailbox" within Outlook, but default called "Personal Folders" (unless you renamed it when it was created).
You should find that you can simply copy the mail items / folders from Personal Folders into their new home in the Office 365 mailbox. Once that's done Outlook will synchronise the items with o365 which may obviously take a while to complete, but once it's
finished those messages will be available online. -
ComboBox Item How to remove repeating items that came from an entity of a .dbf database
Hi all,
Can somebody help me? What I want to happen is create a ComboBox Item from a .dbf database, the PMXMON contains each product's monthly data. Here's a screenshot of the output:
Is there a way to remove repeating items without changing the database contents?
I have this code:
Private Sub frmYearMonth_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim conn As New System.Data.Odbc.OdbcConnection("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\;Exclusive=No")
conn.Open()
Dim strQuery As String = "SELECT * FROM CSHPMXP1"
Dim adapter As New System.Data.Odbc.OdbcDataAdapter(strQuery, conn)
Dim ds As New System.Data.DataSet()
adapter.Fill(ds, "PMXMON")
With ComboBox1
.DataSource = ds.Tables("PMXMON")
.DisplayMember = "PMXMON"
.ValueMember = "PMXMON"
.SelectedIndex = 0
.Text = "--YYYYmm--"
End With
End Sub
Thanks :)
GeeeYou can use Distinct keyword to return unique records from your DB.
On the side I'm not seeing any informative value in your Comobox, if you trying to show product monthly data.
SELECT Distinct PMXMON
FROM CSHPMXP1
Fouad Roumieh -
Remove repeated row in 2D array
Hi,
How can I remove the row for second repeated data in my 2D array regardless of the 2D array size.Try this...
There are many variations possible.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
RemoveExtraRowsWithDuplicateFirstTwoElements.png 31 KB -
How to remove the letters from the Application vie...
Hi,
Just got my new Lumia920 yestarday in AbuDhabi and very happy with it.
ok, it was showing the application and all setting one below eachother, after i download any software from the Market, a letters comes up and make my apps in like a group (like the letter A then all application starting with A,,, an so on)
when i remove the apps everything back to normal ! but when i install any thing again it happens !
how to remove this groupping ?The problem is.
And I have to say it is very presumptuous of people to say "it makes things easier so I don’t see what the problem is!"
When you have a small screen like on the 520 there are more letters then Apps!
So I spend all the time scrolling past stupid letters.
Tapping the letter does not make things easier because it is now 3 taps and each scree change has got a deliberately slowed screen transition.
So it wastes my time.
Slow screen transitions and stupid multiple step operations was the single biggest reason I got rid of my Android device.
Windows8 was quick and simple with out all of the arty farty cr@p!
A quick flick gets me to where I want to go so I don’t need the letters.
If Nokia really wants to give me this option then maybe put an ABC symbol under the search magnifying glass incase say "I forget my alphabetic order!"
Really it was nice then all by it self with out giving me a warning or an option it went stupid! -
How to go about removing repeated photos????
in my iphoto i have the same pictures repeated two times. can some one help me remove the repeated pictures with out having to go in and doing it one by one
Welcome to the Apple Discussions. If you're seeing these duplicate file names in the Finder then they are not duplicates. For every photo in the library there will be two files, one in the Data folder (the thumbnail you see in iPhoto) and the imported file in the Originals folder. These are normal and are not duplicates. For duplicates you see while viewing in the open iPhoto use Terence's suggestion.
-
Removing header letters from document list
Hey, quick question,
I have created folders for my documents. They appear in alphabetical order which is great. But they are also separated my alphabet headers e.g. All folders starting with A are under the heading "A" etc. I want to remove these headers.
I would like my folder list to flow in alphabetical order without these headers defined. Please advise. Thanksto clarify...
In my Adobe appication on my iPad i have created folders under the document tab to sort my documents. The folders/documents in the document tab appear in alphabetical order which is great. the current view when I click on the document tab shows lettered headers. So all documents/folders with names beginning with "A" fall under the header "A" for example. I do not want to see these headers. I want my documents listed in alphabetical order but without the lettered headings defined. Thanks -
How to remove the repetition of values for a particular column ?
eg:
product brand date
laptop hp 8/1/2013
laptop dell 8/1/2013
laptop hp 8/1/2013
I don't want " laptop" to appear thriceHi,
Go to Product Column Properties >> click on column format >> there u can see two radio buttons Suppress and Repeat >> click on suppress radio button >>
click OK >> click on results tab >> there u can see the only one laptop under product column.
Mark If Helpful/correct.
Thanks. -
Is there a method in standard Java API that removes the repeated charcter from a string;
Eg.
If,
String str = "baba";
then the method should return "ba".The java.util.regex package contains Java's regular expression library. In particular, you could use the Pattern class to try and find repeating sequences. The Pattern class is described here:
http://java.sun.com/javase/6/docs/api/index.html?java/util/regex/Pattern.html
Given a string like "abab", the code below will produce "ab", but given a string like "ababc" it will still produce "ab" (which might be a problem, depending on what you are trying to do):
String str = ...;
for(int i = 2; i < str.length() / 2; ++i) {
Pattern p = Pattern.compile( str.substring(0, i) );
Matcher m = p.matcher(str);
int matchCount = 0;
while(m.find()) {
++matchCount;
if( matchCount > 1 ) {
m.reset();
m.find();
str = m.group();
break;
}If you know that the repetition is at most going to occur twice, you can simply split the string in the middle and compare the first and second halves. If they are equal you can just use the first one, and, if they are not equal, you can use the original String. For example:
//string must have even number of characters
//or there cannot be a symmetric repetition
if( str.length() % 2 == 0 )
String firstHalf = str.substring(0, str.length() / 2);
String secondHalf = str.substring( string.length() / 2, str.length() );
//must use equals() method;
//the == operator only compares if the references point to the same location
if( firstHalf.equals(secondHalf) ) {
//there is a repeated sequence; modify str
str = firstHalf;
else {
//do nothing; there is no repeated sequence
}Edit:
Sorry, I made a mistake about what groupCount() does. I thought it returned the total number of matches, but it actually returns the number of capturing groups used in the pattern. Both of the algorithms above should work now. -
How to remove repeated header and print "No records" in report
Hi,
I have a problem with my output report it is repeating the header when no records was found. And does anyone knows how i can put "No records found" (when no record is found) in the output without the Total amount and Grand Total? Please refer to the attachent file for reference.
Thanks a lot! Hope someone can help me.
Cheers,
Jen
Report ID: CRMR2W26 PARTIAL LOAN PREPAYMENTT MONTHLY SUMMARY REPORT Report Date: 08/04/2008
For the month of March
SR Creator SR No. Sales Opty Id Cash Amount($) CPF Amount ($) CIF No. Customer Name Salesperson Name Domicile Branch SR Status
Domicile Description
Branch
Code
Total amount
Grand Amount
Page 1
Report ID: CRMR2W26 PARTIAL LOAN PREPAYMENTT MONTHLY SUMMARY REPORT Report Date: 08/04/2008
For the month of March
SR Creator SR No. Sales Opty Id Cash Amount($) CPF Amount ($) CIF No. Customer Name Salesperson Name Domicile Branch SR Status
Domicile Description
Branch
Code
No records extracted
Page 1
Message was edited by:
user618088This sounds like a Reports issue.
Perhaps you would be better asking in the Reports rather than the SQL and PL/SQL forum.
;) -
How to remove repeated entries of Group level details?
My Crystal reports has three groups and layout is:
GH1
GH2
GH3
Details
GF3
GF2
GF1
I'm listing details under GF3. Is there a way I can control repeated listing of GH1 and GH2 data in different lines?
e.g., my data column is: (zone, Bin, item name) and Zone is first level Group data, second level group data is at Bin level and third group is at item level.
some record are like:
(AZone, A1Bin, item1), (AZone, A1Bin, item2), (AZone, A2Bin, item3), by listing the details (zone, bin, Item) at GF3, my data is printed like this:
AZone A1Bin item1
AZone A1Bin item2
AZone A2Bin item2.
I want to print Zone and Bin level details only when these changes like:
AZone A1Bin item1
item2
A2Bin item3
Any help on how can I achieve this? I don't want to pring Zone or Bin level details in seperate rows, these should appear together as listed above, also for fulfiling other requirements, I need to out data in GF3 section only.on that Common Tab it also has "Suppress if Duplicated",
however, you would be far better off to work this out by tweaking
the query (if you can) with joins and filters.
Hope this helps,
The Panda -
Blackberry tour repeating letters when dialing the first letter?
I am now on my second blackberry tour as my first one got rained on. On both of these phones when I would start typing the name of a contact in to dial thier number from the home screen then multiple letters will apear. for exaple if I am dialing Adam then I would push the A and 3 or 4 A's would apear then I would have to push backspace untill I am back to 1 then type the rest of the name. This is really anoying any sugestions?
You may want to check your 'key rate' setting in the options menu. Press the menu key, go to the options folder, go to screen/keyboard, scroll down to 'key rate' and see what it is set at. It can be from slow, medium slow, normal, medium fast, and fast.
-
Removing repeated lines when scrolling?
Recently Safari (v. 5.1) has changed its scrolling behavior on my MacBook Pro (OS 10.6.8). In the past when I used the scroll bar to move up or down it advanced exactly one page, but recently it has started repeating two or three lines of text. This is really confusing because I have to find my place again in the middle of whatever I am reading. (It's like a book with the last two lines of the previous page printed a second time at the top of the next page.) What do I need to do to eliminate this repeated text and return to scolling exactly one page?
This rolling in the scrolling so to speak, happens on both my MBP and iMac with 256 video cards. I feel the driver and all are not mature and will be improved over time. Also, several posters that have switched to dual boot with bootcamp have jacked their video cards in XP because Apple under-clocks theirs.
I agree that a call to support is in order, but just to request the ability to up the frequency, and get ATI to improve their OS X driver.
FWIW,
Michael -
How do i remove repeated titles on pages
I just downloaded pages from the mac app store.
I have 1 problem. It is that i write the title of my doc in the little square at the top, and it repeates itself on every page.
how do i stop this?Hi iger,
What do you mean by "the default language"?
Are you speaking of the text that is shown when you open a template containing text boxes, like this sample from the Informal Newsletter template?
That's "placeholder text", and it's there to show what the layout will look like when it's filled with text. It's in Latin mostly to allow you to concentrate on what the text looks like, rather than what it says.
To replace it with your own text (in whatever language you choose, Click in the box:
Note that no matter where you click, all of the placeholder text is highlighted, and with your first keystroke (or with a paste of text copied from somewhere else), the palceholder is replaced by what you type (or paste), in whatever language you type it:
Regards,
Barry -
Is it a virus that would make my search box type letters on its own like "ccccccccccccccccccccccccccccccccc" or would this be an error with my keyboard?
Hi
please open notepad to verify.
or go to safemode to check
or the ultimate checking is try your keyboard with other PC or laptop, if issue still persist, means keyboard issue
Maybe you are looking for
-
Some albums not organized correctly on iOS devices?
I just activated Match yesterday. For the most part, it works great! I'm running into an issue where, in iTunes on multiple computers, if I go to a specific artist, all their albums are there in order. Then, if I go to the same artist on any of my
-
How to create account group in mass
Hi, is there anybody who knows a BAPI to create account group, this process is normally made from KDH1, but I want to create a thousound of groups and i think that the best way is an ABAP program. Regards.
-
I'm not so ecpert in Oracle, i need to convert my database from SQL Server to Oracle with SQL Developer, but when i execute code generation i got trouble with some function taht says similar errors,. the generated code is : CREATE OR REPLACE FUNCTION
-
Image offline or not found problem
I've been traveling a lot so I decided to move my entire Aperture Library to a firewire 800 drive thinking that I would be able to work from my laptop or desktop and have the exact same library without problems. It seemed to work fine until I plugged
-
Nokia N95 Screen Broken - Oxygen Phone Manager and...
Hey, I have a problem on a Nokia N95 8GB, the screen is totally smashed, however i am trying to transfer the contents of 'My Folders' under Messages onto My Computer before sending it to be repaired. Nokia PC Suite has a major flaw in that it cannot