Ask the lines that correspond fully to another column
Hi all
Take into consideration the following 11 g:
CREATE TABLE X_A (COL1 NUMBER, COL2 NUMBER); create table x_b (col1 number); INSERT INTO X_A VALUES (1,2); insert into x_a values (1,3); INSERT INTO X_A VALUES (2,2); INSERT INTO X_B VALUES (2); insert into x_b values (3);
I want to interview table X_A only these col1 that match all records in X_B (i.e. value equal to '1').
If I join the 2 tables by x_a.col2 - x_b.col1 I have two values 1 and 2 col1. But I want only 1 to appear because it contains 2.3 in x_b.col2
Any ideas?
Kind regards
Stoyanov
Join partition using
select col1, col2 from ( select a.col1, a.col2, count(a.col2) over(partition by a.col1) cnt1, count(b.col1) over(partition by a.col1) cnt2 from x_b b left join x_a a partition by (a.col1) on a.col2 = b.col1 ) where cnt1 = cnt2
Tags: Database
Similar Questions
-
I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.
Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.
Advice would be great because it's driving crazy me.
See you soon,.
KyleYes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.
-
I spent over 5 hours in computer shares with AVG. They said your server messed up my email account. I can access my email account, but the line that reads "delete, move, not spam, more' loads ever... so I can't delete the email or anything else. My email account is to verizon yahoo. I need access to my email for various reasons, one of them being pay several bills online and my email account is where to get confirmation that the payment has gone through! My email works through IE, however. I don't want to use IE to see my email... I use Firefox for everything and it would be a pain in the end to have to switch to IE to access my mail. Not to mention, I hate IE - it's like using WEBTV! It's so slow... [address removed by email, please do not provide sensitive information in a public forum] is my email...
So Safe Mode made no difference?
To test how Firefox works no 'custom' on your system, could you experience in two minutes?
Create a new Firefox profile
A new profile will be your plugins installed by system (for example, Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions or other customizations. It should also have databases of completely fresh settings and cool a cache folder.
Out of Firefox and start in profile to help Manager start > run:
firefox.exe -P
Do not delete anything here.
Any time want to switch profiles, exit Firefox and return to this dialog box.
Click on the button to create a profile, assign a name like TEST and skip the option to choose a different folder location. Then launch Firefox in the new profile that you have created.
Yahoo does not improve in the new profile?
When you return to the Profile Manager, you might be tempted to use the button Delete a profile on TEST. It's a little too easy to accidentally delete your 'real' profile, so I recommend you to resist the temptation. If you don't want to clean up later, I suggest to make a backup of all your profiles first in case something go wrong.
-
When I try to scan with my CanoScan N640P ex scanner I receive a message indicating the Port to the printer that is used by another device. How can I work around this problem?
Hi ejp70,
1. did you of recent changes on the computer?
2. to when was the last time the scanner was working fine?
3. you have any other printer\scanner connected to the computer?
If you have any other printer\scanner connected to the computer, disconnect them and check if it works.
I suggest that you uninstall and reinstall the scanner to the computer, also make sure that you install the latest drivers for scanner on Canon website.
-
Collections by ignoring the lines that were not updated
Hi all
I have a report based on a collection. In the present report is a lov in which a user can assign a value to the recording. However, the user doesn't have to update all records before saving. Based on the examples of the collection I've seen, it seems to be an assumption that all records will be updated. I'm having trouble trying to update only the lines in the collection that the user has entered a value for.
Any ideas would be greatly appreciated.
Thank youDon't know what you have in mind. If you are thinking to add another value of the column to the collection and handling, it should work better than the box. You will have at least a NULL value or a value of text associated with each line in your collection.
-
I have an older version of windows on the computer that I use for my children childcare at home. This is Windows 95. Since yesterday, it does allow me to go beyond the black screen. It tells me to insert the startup disk in drive A. After it is inserted, it then goes to a command prompt: (A :\>) I typed in win95, startup, load, sys/win95, and nothing works.)
Thank you for visiting the Microsoft answers community site. Unfortunately, we provide only support for Windows 7, Vista and XP. The question you have posted is related to Windows 95 and would be better suited to Windows 95 Discussion groups. Please visit the link below to find a community that will support what ask you
http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Win95.Setup&cat=en_us_a1973c9a-BD7A-4F01-9304-8fe3a4858fb9&lang=en&CR=us C Cody
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
How to remove the lines that have the employee name double?
Hello world
Greetings
I'm using oracle 11g.
Suppose I have a table and I want to delete lines that have the name used twice?
So given below is my table so I only delete lines that have more than one 'Ram' and 'Dilip' ename.
How to do this?
EmpID Ename salary Commission depnto 101 RAM 5000 453 1 102 RAM 6000 765 2 103 Sisi 3456 876 3 104 Dilip 7656 675 4 105 Mohan 9878 767 5 106 Dilip 5646 987 6 107 Ganesh 9823 455 7 You can use a simple code as follows
Delete From EMP
Where rowid! = (select min (rowid) of the group by Ename EMP);
For preserved older values using 'min (rowid)'
and for the most recent values required use "max (rowid)"
Thank you.
-
SQL query to search for the line that contains the identifier for each consecutive group
Hello
I'm on 11.2.0.3 Enterprise Edition.
I have a strange request here - do not know if this is possible without going to procedure...
Given these data of the sample:
create table test_status ( status varchar2(10), revision_id number, revision_timestamp timestamp); insert into test_status values ('PROPOSED', 1, systimestamp); insert into test_status values ('PROPOSED', 2, systimestamp); insert into test_status values ('PROPOSED', 3, systimestamp); insert into test_status values ('ACTIVE', 4, systimestamp); insert into test_status values ('ACTIVE', 5, systimestamp); insert into test_status values ('PROPOSED', 6, systimestamp); insert into test_status values ('PROPOSED', 7, systimestamp); insert into test_status values ('ACTIVE', 8, systimestamp); insert into test_status values ('ACTIVE', 9, systimestamp); insert into test_status values ('FINISHED', 10, systimestamp); insert into test_status values ('FINISHED', 11, systimestamp); insert into test_status values ('FINISHED', 12, systimestamp);
Gives me:
SQL> select * 2 from test_status 3 order by revision_id; STATUS REVISION_ID REVISION_TIMESTAMP ---------- ----------- ----------------------------- PROPOSED 1 25-SEP-14 04.49.47.954000 PM PROPOSED 2 25-SEP-14 04.49.47.962000 PM PROPOSED 3 25-SEP-14 04.49.47.966000 PM ACTIVE 4 25-SEP-14 04.49.47.969000 PM ACTIVE 5 25-SEP-14 04.49.47.972000 PM PROPOSED 6 25-SEP-14 04.49.47.976000 PM PROPOSED 7 25-SEP-14 04.49.47.979000 PM ACTIVE 8 25-SEP-14 04.49.47.982000 PM ACTIVE 9 25-SEP-14 04.49.47.987000 PM FINISHED 10 25-SEP-14 04.49.47.991000 PM FINISHED 11 25-SEP-14 04.49.47.996000 PM FINISHED 12 25-SEP-14 04.49.48.000000 PM 12 rows selected. ws selected.
I want to get this result:
STATUS REVISION_ID REVISION_TIMESTAMP ---------- ----------- ---------------------------- PROPOSED 3 25-SEP-14 04.49.47.966000 PM ACTIVE 5 25-SEP-14 04.49.47.972000 PM PROPOSED 7 25-SEP-14 04.49.47.979000 PM ACTIVE 9 25-SEP-14 04.49.47.987000 PM FINISHED 12 25-SEP-14 04.49.48.000000 PM
Then query the table ordered by Revision_Id, I would get the line containing the highest revision for each consecutive group of status values. I am able to get the line containing the highest revision for each separate status, value, but I can't deal with the scenario where a state value reappears later. In the case of the real world, it is a workflow and I need to take into account the fact that an element through the workflow may be redirected to the back front she proceeds forward again.
Hope it makes sense.
Thank you
John
Hi, John,.
John OToole (Dublin) wrote:
Hello
I'm on 11.2.0.3 Enterprise Edition.
I have a strange request here - do not know if this is possible without going to procedure...
...
Do not no stinkin' procedure:
WITH got_grp_id AS
(
SELECT the status, revision_id, revision_timestamp
ROW_NUMBER () OVER (ORDER BY revision_id)
-ROW_NUMBER () (PARTITION STATUS
ORDER BY revision_id
) AS grp_id
OF test_status
)
SELECT status
MAX (revision_id) AS revision_id
MAX (revision_timestamp) DUNGEON (DENSE_RANK LAST ORDER BY revision_id)
AS revision_timestamp
OF got_grp_id
GROUP BY status, grp_id
ORDER BY revision_id
;
For an explanation of the technique of Difference sets used here, see
-
How to fill out the lines that have been drawn with the paint brush tool?
I keep trying to use the paint bucket tool, and it does not. I need help, because I need to work on this animation.
It is usually because there are gaps in the line. There is a trick which called narrow gaps that is available when you click on the paint bucket tool. Select one of the options, and it's much easier to fill something drawn with a brush.
-
Can't seem to fix it. It is not a network problem, I tried. The anchor at the end of this line, I train with a box intersection refuses to line up evenly, despite the Illustrator tell my which anchor crosses the box. It seems me to zoom in and see that the anchor is always pushed more high or lower than the vertical line. No matter what I do the line refuses to cooperate. Even delete the file and try on a new file do not work.
You line up on the pixel grid in the files in question? What version of Amnesty International and the operating system are you using? This new Document profile did you start from?
-
A > the form has a set of field and text dropdown list entries. After the user updates the data in a specific text, change field, I need to add their data to a table on the first time through. There are many different games of entries that would each have their own line.
B > later the user comes back and changes the data in a field. I need to update this specific line with the new values.
C > later the user returns and removes the data of one of the fields completely so I need to remove that specific table line.
D > the user does not directly from the table. The table summarizes the entries that are made in the text and drop-down list fields. I need to be able to maintain the table in harmony with user input.
I agree with the addition of rows in a table, but I do not know what's best for that lines are kept synchronized. I've got a good amount of Java programming experience under my belt, but I have a few projects in LiveCycle.
I'm quite willng to read if you have any reference material online for the management of dynamic arrays. So far, the only information I have found is how to add and remove lines, but not how to keep track of them.
Any help is greatly appreciated.
Ah sorry missed that you do not use two tables.
Do you use Extensible lines or is there a specific line for each set of data?
You can just hardcode where data are intended - a data go into RowA. To the same output of the field, you would be just: table.rowA.rawValue = this.rawValue;
You can use Global binding on the fields: the fields, take data entry have the same name as the fields in the table and then automatically updated data.
For blank lines, you will need to check if there is data in the fields and if no data you can hide the line: RowA.presence = 'hidden ';
-
[JS, ID5 SVR] select the line that contains vertically merged cells
Hello
I want to put the line type lines that contains vertically merged cells. Example of lines containing merged cells:
When a line defined as myTable.rows [1], it returns an error. How to get to the second and third rows.
Best regards, Sjoerd
How simple it can be:
var myDoc = app.activeDocument; var myTables = myDoc.stories.everyItem().tables.everyItem().getElements(); for (i=0;i
I'm a rookie, that's for sure...
-
I want a user to be able to set day/remove the lines that they inserted
Hi guys,.
I have a table 2 inserting users. They can also change/remove lines in the table. However, I don't want them to be able to set day/remove other ranks of users. I just want that they have update/remove at the level of the line.
How can this be achieved?
Thank youI don't think that Oracle Label Security would be as good as opions as just using row-level security, RLS, also say Fine Gain Access Control, FGAC, just in this case. Private virtual database, CAE, has been mentioned, but Oracle defines EVP as RLS more Oracle contexts so use, technically, all that is necessary if only the user column pseudo-device is used to apply the predicate checking is RLS. From a practical point of view, there is no real difference, but Oracle made the distinction in the manual.
IMHO - Mark D Powell-
-
When I want to measure the distance of a line of architectural drawing and I scroll to the bottom of the toolbar to measure and then I select distance when I measure the distance line is about 24 points. How can I make thinner?
You should be able to view the properties bar (cmd + E), select the annotation of measure and change the line with setting. If you click on the button 'More', you will be able to select the checkbox 'Use default properties' so any new measure you will have these new settings.
-
How can I copy and rename the file that I copied to another folder
I have a file in a source file and I want to copy in a different folder.
all these files from source have the same name and I put them in a folder which is the destination
and I want to rename it to 1_1.txt 1_2.txt and so on.
Here is my copy fuction
UTL_FILE.fcopy ("FLX_SIGNATURES",
filesource, - image source that I get using a loop above
"DELTA_SIGNATURES,"
filesource - destination image that I want torename
);
the foregoing is in a loop
so for each filesoure, the name will be 1_1.txt for all files that have the same file name and I want to change the name of any time I copy can help youDear kama021!
Please take a look at the following link. It shows UTL_FILE. FRENAME. This should be the procuedure that fits your needs.
[http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003641]
Yours sincerely
Florian W.
Maybe you are looking for
-
What ARE MX or a records?
When an email is rejected as inadmissible, and the reason said that there is no MX or recordings for this address, what it means?
-
All what I have to do before reinstalling MAC OS x 10.6.3 on my MacBookPro (2007?) in addition to the backup?
-
Product number: D5E81PA #ABG does not match all want dv6 models
Hello I made the mistake of buying a Windows 8 machine which does not reliably connect to the internet. I see connections and you connect to them but just have 'limited' connectivity and can't get online. I am following this thread for update firmwar
-
Satellite A60 no longer burn CDs and DVDs
Hey, somebody help me.My A60 laptop no longer burned CDs and DVDs.There do not seem to read empty discs.Some regular she reads, but will not start and some, it will notnot even start.
-
How to start and stop a task with c#?
Guys, I need a help. I'm trying to reproduce a task created using Meansument & Automation Explorer. The task is very simple create a channel of digital output and send the values 0 or 1 to enable and disable a relay in my board DAQmx. Kind regards Al