find duplicates by using multiple criteria in the field help...
I have a Table and I want to choose the following fieldsCust_id, number
BANK number
CONNECTION_TYPE, varchar2 (the client A between the sexes, B or C)
STAMP_DATE varchar2 (example 072010) or MMYYYY not a real stamp Date/time
Basically, if the CUST_ID appears twice, it's ok, as long as the CONNECTION_TYPE is not the same.
So I need to find duplicates on CUST_ID, with the CONNECTION_TYPE being same.
It would be nice:
9122222 326 1 102010
9122222 326 2 082010
This would not be permitted:9122222 326 1 102010
9122222 326 1 082010
That's what I used, but I can't understand how to add the second condition for CONNECTION_TYPE:Select cust_id, stamp_date, connect_type
from Table1
where cust_id in
(select cust_id
from Table1
Group of cust_id
view count (cust_id) > 1)
order of cust_id;
Thank you.
Try this
WITH TABLE1 AS (
SELECT 9122222 CUST_ID, 326 STORE,
'1' CONNECTION_TYPE, '102010' STAMP_DATE from dual union all
select 9122222, 326 ,'2', '082010' from dual union all
SELECT 9122222, 326, '1', '082010' FROM DUAL
)
SELECT CUST_ID, STORE, CONNECTION_TYPE, STAMP_DATE
FROM (
SELECT T1.*,
COUNT(*) OVER ( PARTITION BY CUST_ID, STORE, CONNECTION_TYPE ) X
FROM TABLE1 T1
)
WHERE X > 1
ORDER BY cust_id;
CUST_ID STORE CONNECTION_TYPE STAMP_DATE
---------------------- ---------------------- --------------- ----------
9122222 326 1 102010
9122222 326 1 082010
Tags: Database
Similar Questions
-
Script to find duplicates in a row and combine the data in specific column
Looking for a script to find duplicates in a line like below...
"VM1', 'VM', 'LDEV', 'LDEV1', 'LDEV2', 'LDEV3', 'LDEV4', 'LDEV5', 'LDEV6 '.
'VM', 'VI-SVC-VM001', "0000ef ', ' '," "," "," "," ""
'VM', 'VI-SVC-VM001', "0000de ', ' '," "," "," "," ""
'VM', 'VI-SVC-VM002', "0000df ', ' '," "," "," "," ""
'VM', 'VI-SVC-VM002', "0000f0 ', ' '," "," "," "," "".. .and manipulate the data in the following:
"VM1', 'VM', 'LDEV', 'LDEV1', 'LDEV2', 'LDEV3', 'LDEV4', 'LDEV5', 'LDEV6 '.
"" 'VM', 'VI-SVC-VM001', '0000ef', "0000de ', ' ', ' '," "," ""
"" 'VM', 'VI-SVC-VM002', '0000df', "0000f0 ', ' ', ' '," "," ""(Note: VM VI-SVC-VM001 object has two LDEVs him assigned 0000ef and 0000de)
There may be two, three, or n LDEVs attributed to each VM object. I guess I have to build a table and the "join-collections" script can't cut it on this one.
I have the process to follow, I just need to put it in a loop (note, data already sorted on the virtual computer object):
1 import-csv
2. read each line, matched VM object, copy each found LDEV and place it in the next LDEV along
3. remove the duplicate line
4. rinse, repeat until the end
Thank you.
It's a solution pleasant Luc. I didn't use the Group-Object cmdlet to solve this problem.
Now I can go to sleep without having to worry about this problem more.
-
Identify the best CPU using multiple queries on the database environment
Hello
We live high CPU on one of our development servers (AIX 6/11 GR 2). It has several databases and we need check the queries that are causing hiking of the cpu.
So, how can we specific database queries and it is when there are multiple databases?
I could use nmon to get the process, $ query session v and v $, v$ sqlarea, if there is only one.
Thank you!Hello
There will be no direct approach (check if GRID allows to control/OEM), AWR and STATSPACK review should be best approach once and for all the DB to fix permanently, if not then...
Identify top/topas/nmon top or 10 os process ID's, although they features will look like unless the owner is different.
Return to the command prompt using ps - ef
ajay@cts-db-vashi#ps -ef| egrep -i "8716444|7471138|12451978" oracle9i 8716444 1 0 Dec 14 - 291:51 ora_dia0_CTS oracle9i 12451978 1 0 Dec 14 - 62:50 ora_vktm_TBMS
If you don't want to use top/topas/nmon use below with appropriate sort to get high cpu/memory process & pass it to v$ for more details in sqlplus
/usr/bin/ps aux |/usr/bin/sort -nrk 3,3 | egrep -iv "root" | head -10
Thank you
Ajay more
http://www.moreajays.com -
Duplicate the data in the fields Help Needed
We have a 9 Word form page which has a few repeat information, have converted to LiveCycle but am stuck on knowledge how to make the data in a field show also in another so that the user doesn't have to enter twice. Finally, we will remove the duplicated fields, but for many reasons, at the moment they must stay there. I don't want a contractor having to enter their name twice, etc. and have my main form of data on the front of the 9 pages, and then when they get to the last page with sigs, etc., I would that they have already entered for their company information to show.
I am very new to Designer ES, and when I did some forms in Adobe 9.0 forms some time back, all I had to do was of the same name and if I entered info in one he would show to another. ARE does not seem to do that, and I can't find out how to add any code to the field. Don't know why, but a lot of my options are grayed out.
In any case, would be very grateful help, thank you.
Giving them the same name is only part of the solution... .you need to change the link (on the object palette/link tab) to Global.
Paul
-
How can I delete email addresses used to automatically populate the field?
I would like to remove the auto-complete email addresses in the field in an email. These aren't my contacts addresses. I tried to erase the form data, but is not delete stored e-mail addresses. (Vista, Windows Mail 6.0.6000)
Well, the answer of about.com directed me to the solution that helped (a bit easier than editting the registry): http://email.about.com/od/windowsmailtips/qt/et_del_autocomp.htm
Thank you all!
-
How to use multiple profiles within the same instance of Thunderbird
A month ago, I got Thunderbird set up with three profiles,
and all three could be used in a start only one of
Thunderbird. That the PC is now gone. I've reconfigured the three
profiles on a new PC, but can't do all three
can be used in the same instance of Thunderbird. Can you help me?
Both computers are / were only Windows7 64 bit.Thunderbird opens on the default if a profile
or
The Profile Manager is responsible to ask at startup it will allow you to choose which profile to open if it opens the last used profile...Thus, it shows a profile at a time within a single instance of Thunderbird.
However, only one profile can have multiple e-mail accounts.
for example: I run 4 e-mail accounts in a profile. -
How to use multiple columns for the bookmarks instead of column 1
Bookmarks always appear in a single column. As I have a lot you have to scroll to see all.
How can I set bookmarks in several columns so that I can see them all at the same time.
You can use the above. The Bookmark Manager works just like the
folders on your computer. Create folders by using the sort and general name
your list in these files. In addition, when you open the Manager, it
a search box is at the top right. -
Using multiple computers on the network
I received the J6480 for Christmas and that you install wireless to my desktop computer... everything seems to work great so far. Should what steps I follow in order to use the J6480 with my 2 laptops? The office is Vista, the two XP laptops.
I'm not too familiar with the concept of networking and I know that there is a way for me to connect laptops with the office but is there a way to network directly laptops of the printer? My apologies in advance if I don't use good terminology or sound like a fool in plain.
Just run the installation with a CD-ROM on other computers. The SW will detect that the printer is on the network and simply install the drivers for you.
A few tips:
- Pay attention to all warnings when installing on the firewall SW running on your laptop. In general, the firewall must be configured to allow the printer driver to function.
- Consider defining a reservation in DHCP for the J6480 on your wireless router. This ensures that your printer will always get the same IP address from the router without wire-, which prevents some problems with certain features of the printer. Just look for the configuration of your wireless router DHCP reservation.
Best regards / Jim B
-
I currently use 3 monitors with my calendar on my central monitor. When I move my mouse to another monitor, it follows on the timeline (scroll left and right, depending on how I move my mouse). This happens randomly and reboots do not seem to solve the problem. Any ideas? Y at - it a shortcut that I'm missing?
Hi all
Please check this thread: Re: strange behavior of automatic scrolling in editing
Thank you
Regalo
-
Grep can find duplicates in a list to resolve the upper/lower case differences?
The idea is to isolate the info. Any grep that lead to these results will solve the problem. Thank you.
current list
option 1
option 2
option 3
Halogen
Halogen
Halogen
Halogen
Halogen
Halogen
thebaica
That's why
That's why
them
That's why
That's why
them
they
they
That's why
They
They
That's why
thermal
These
they
They
thin
I hope it will be clear. Maybe I have complicated the issue, but I do it quickly.
1 / I have apply the condition 'All' to the whole text.
2 / I apply a style of tank "Capitals", so that I can convert all lower case (see menu ID).
3 / first Regex [for Option 1] (I forgot the screenshot):
in French:
Search for: ^(.+\r)\1+
Replace by: (Nothing)
Replace the format: Select condition "Option 1".
4 / 2nd Regex [for Option 2]
4 / 3rd/4th/5th Regex [for Option 3 - in 3 steps]
5 / 6th Regex: I remove all the text with condition 'All '.
6 / now we have only the text of the conditions Option 1/2 and 3 (see colours).
7 / If you wish, you can remove the 3 conditions:
FACT!
I use a lot with Grep Conditions have the options us! More complex but more fun!
-
Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity.
Subject 'test '.
Server: 'smtp.gmail.com. '
Windows Live Mail error ID: 0x800CCC0F
Protocol: SMTP
Port: 465
Secure (SSL): YesYou may have the wrong SMTP port. Check the appropriate injector.
You may also have another step which is not described anywhere I could find:
- Go to http://www.google.com and sign in to your gmail account and go to the following link https://www.google.com/settings/security/lesssecureapps and set the toggle to allow less secure applications. Then set up your gmail account in Outlook and it allows to automatically detect settings.
-
the use of FILTER - to the RPD HELP?
Can we use the filter AID in RPD?Yes in the window "use existing columns of logic as a source" of a measure.
Its under functions - functions to display in the expression builder. -
JS calculations are not filling in the fields, help!
Hello
I use Acrobat X Pro on Win7 to create a form to fill out (not livecycle).
The link to my file = https://www.dropbox.com/s/ghbla7mmpvc74er/Adobe_Support.PDF
I filled the column "December" for testing.
Under the column 'Part', bpM.1 of bpM.8 domain names are not get filled.
bpM.0 and bpM.9 have the same JavaScript (like bpM.1, bpM.2, bpM.8) in custom calculate script, and they work fine.
If I check the code in the debugger, and press enter by selecting the script, then only, these fields (bpM.1) download populated (search results).
Sub_Total and HST are calculated and display very well.
My questions - wise priority - are:
1. why these fields do not display the results of the calculations? How to fix the problem/bug/logic?
2. what other programming logic can I use to improve performance and can be minimize calculations (javascript), called in when there is a change in all areas.
3. is it possible to have such calculations on thousands of fields in a single PDF file? If this is not the case, what are the alternatives.
Thank you
Rizwan
Instead of code like this:
f = this.getField ("bpM.0");
f.Value = (sum2 * this.getField ("craM") .value) / 100;
It should be:
Set the value of this field
Event.Value = (sum2 * this.getField ("craM") .value) / 100;
-
Multiple constraints on the same column
Hello experts, we can use Multiple forced on the same column in oracle as creating table, I want to add a key single and forced to check on the same column is this possible? Thanks in advance,
If you want, seems to be possible
CREATE TABLE t1
(col1 VARCHAR2 (50))
CONSTRAINT ck1 CHECK (col1 IN ('A', 'B', 'C'))
CONSTRAINT PRIMARY KEY (col1) pk1
);
-
Help with multiple Gradients on the layer mask
I was watching a tutorial and I saw someone using multiple gradients on the same layer mask. When I try everything that is happening, it's photoshop to erase the last of them, I applied. An example would be using a gradient on the four corners of an image, but of different variations.
Any help is appreciated!
I use CS4, I don't know if that makes a difference?
Or multiplying the mixture on the gradient. Screen to display
Maybe you are looking for
-
I was helping my husband by setting up a Facebook account for him - not thinking - I was on MY computer. When I connect Facebook on my computer (from Firefox) - he now brings his account up - not mine. Is there a "fix"? He could really care less if I
-
Center solutions HP - HP Photosmart c309a - the missing functions
After updating the newest software, I can scan and fax from my Toshiba laptop, but not from my desktop acer. Both computers are running windows 7 and are on the same network. When I open the Solution Center, the functions menu is completely different
-
Air print with my HP 3520 printer?
I LOOK can print from my iPad or iPhone 6 on my printer HP 3520 thanks.
-
HP Envy 17 2080 and 330-180 GB Intel SSD
My computer laptop (envy 17 3d hp - 2080 with a 1 TB toshiba harddrive) showed a message from SMART problem before 1 month. I recently bought an ssd (intel 330 series 180 GB) to replace the hard drive. I have 2 problems. (1) the family (with windows
-
When you get off the two files are open in series and displayed in Notepad: HPSPprogress.hta, HPSolutionsPortal.hat. There is a gap between the opening. We uninstalled and reinstalled the software. We changed default browser between firefox and ie