Common documents of two records
Hi allI have a problem. Consider two sets of records A and B. I want common documents that are present in both and (B) is there an easy way to do this? Please help me!
Query of queries (t/t):
SELECT *.
IN query1, query2
WHERE query1.somecolumn = query2.somecolumn
Azadi Saryev
SABAI - Dee.com
http://www.SABAI-Dee.com/
Tags: ColdFusion
Similar Questions
-
I have a TABLE with many records in it, I want to go out two records at once (as if they were a record), of documents that meet the criteria WHERE. Order is not important. Basically, I have a TABLE of things wilt need treatment or who have already been treated. I treat both at once. (In a related research, I'm not up yet, I can do 20 at a time.) How could I get this?
My first thought was a CTE with ROW_NUMBER() RN, using CONNECTION BY RN = RN + 2 PREREQUISITE and have a subquery (or TABLE attached) out the second disc:
WITH Moo (SELECT... ROW_NUMBER RN FROM Table WHERE...)
SELECT..., (SELECT... STARTING FROM Moo Moo2 WHERE Moo2.Id = Moo.Id + 1)
Moo log IN Id = Id + 2 PREREQUISITE;
Or a join. Is there a better way to approach it?>
Is there a better way to approach it?
>
It depends on how you plan to process records.
>
I can treat both at once
>
What does that mean? How to treat? A procedure using stored? Code using Java?A procedure or Java code could just retrieve the records he wants to treat either one or twenty. Why do you need to choose only two and then two others etc.?
If you use the code then the simple thing is to define a cursor and picks up the records that you want to process.
In a stored procedure, you can make a COLLECTION in BULK with a LIMIT of two if you want to just 2 records. You can use a P_LIMIT parameter that controls which is the limit.
But the least effective way is to use a simple query with a clause limiting the line you are proposing because Oracle does not keep the slider open between executions. Using a cursor in a procedure, the cursor remains open. Even if you use Java code to retrieve a result set and then go get her.
-
I am trying to create a PDF from a Word 2007 document with the layout, the 'Landscape' Orientation and Pages, 'two pages per sheet. The document was created in Word 2003. The entire document is four "pages" long, but each of these "pages" is half of an 8 1/2 x 11. So it's really a pages document two and prints on only two sheets of letter size paper.
Acrobat does not seem to 'see' this document is set up to have two pages per sheet, is it really just a two-page document. He created a four-page pdf file.
It arrived not with Word 2003. The pdf file created from this version is an exact copy of the document word - two pages.
Any ideas?
Word:
http://answers.Microsoft.com/en-us/Office/default.aspx
Office at the above link forums
http://answers.Microsoft.com/en-us/Office/ee861096.aspx
Word Help Forums at the link above.
They will help you with your question Word when repost you in the Office Forums above.
See you soon.
Mick Murphy - Microsoft partner
-
The column that does not match when comparing two records
Hi all
We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:
Table 1
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 oraPR2 3 C C1 P3 SRP Table 2
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 PR2 3 C C1 P3 PR4 In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:
PK Column_Mismatch 3 Property2 (this must be the name of the column that does not match) Appreciate the help.
Thank you
Andy
Hi, Andy.
Andy1484 wrote:
Hi all
We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:
Table 1
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 oraPR2 3 C C1 P3 PR3 Table 2
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 PR2 3 C C1 P3 PR4 In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:
PK Column_Mismatch 3 Property2 (this must be the name of the column that does not match) Appreciate the help.
Thank you
Andy
Why you don't want no matter what exit for pk = 2? Property2 does not correspond either to pk.
What happens if the 2 columns (or more) do not match? The following query would produce a list delimited, such as ' parents; PROPERTY2 '.
WITH got_mismatch AS
(
SELECT pk
, CASE WHEN t1.parent <> t2.parent THEN '; PARENT' END
|| CASE WHEN t1.child <> t2.child THEN '; CHILD ' END
|| CASE WHEN t1.properry1 <> t2.property1 THEN '; PROPERTY1 ' END
|| CASE WHEN t1.properry2 <> t2.property2 THEN '; PROPERTY2 ' END
AS the offset
FROM table_1 t1
JOIN table_2 t2 ON t2.pk = t1.pk
)
SELECT pk
, SUBSTR (incompatibility, 3) AS column_mismatch
OF got_mismatch
WHERE mismatch IS NOT NULL
;
If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.
The query above does not count NULL values as inadequate. If you want that, the same basic approach will work, but you can use DECODE instead of <> to compare columns.
What happens if a pk exist in a table, but not the other? You want an outer join, where I used an inner join above.
-
Need add/update two records on click on the create/update button
I have a table with 5 columns
1 ID - primary key
2 name
3. address
4 CARB
5 KADER
Now whenever I do an insert in this table to this table I have to add two rows, as shown below:
1st row - (name1, Add1, 717, 717)
2nd place - (name1, Add1, 515, 515)
Name and address values are entries of the screen and the CARB & KADER values are fixed (717 or 515). So for each click on the button create two records needs to be inserted.
Even when I update to say record particular Carb - 717 & kader-717, I must also update other file too Carb-515 & kader-515. For each click on the update button, so I need to update two records.
Please tell me as to how I will do this
Hello
Why do you not use insert manual and update according to your requirement process?... Gives 'Never' for automatic processing of the DML and try to create a manual process (PL/SQL blocks) and give the condition.
Thank you
Lacombe
-
To summarize two records based on Max Date
Hello
I have the following data:
Account number Date of invoice Invoice Amt Real AMT Companies code 10011 10/11/2013 100.02 93.03 0112 10011 10/02/2014 93.04 87.76 0232 I need to sum up above two records based on max (Invoice Date) and and I need to display company code corresponding to the date of billing max
Expected result:
Account number Date of invoice Invoice Amt Real AMT Companies code 10011 10/02/2014 193.06 180.79 0232 Thank you
Kiran
Hello
Try this:
with in_data as
(
Select '10011' account_number, dates "2013-11-10' invoice_date, invoice_amt 100.02, 93,03 actual_amt '0112' company_code of all the double union"
Select '10011,' date '' 2014-02-10, 93.04, 87.76, '0232' from dual
)Select
Account_Number
max (invoice_date) i_date
sum (invoice_amt) i_amt
sum (actual_amt) a_amt
, max (company_code) Dungeon c_code (last dense_rank command by invoice_date)
Of
in_dataGroup
Account_Number
;ACCOUNT_NUMBER I_DATE I_AMT A_AMT C_CODE
-------------- --------- ------ ------ ------
10011 10 FEBRUARY 14 193.06 180,79 0232Kind regards
Peter
-
Cannot remove the two records at once in a table
Hi all
I have a version in the form of table, here I have a point of delete button where them remove those audited point tabular presentation. If I have checked for two records continuously one after the other and press the button Delete, remove only the first record I checked only. Whereas, if I chose two records where both of them is not one after the other. Both will get supprimés.
Start
GO_BLOCK ('ACT_QT_TXN');
PREMIER_ENREGISTREMENT;
LOOP
IF: ACT_QT_TXN. CHECK_BOX256 = 1 THEN
delete_record;
COMMIT_FORM;
END IF;
NEXT_RECORD;
IF (: System.Last_Record = "TRUE") and: ACT_QT_TXN. CHECK_BOX256 = 1 THEN
DELETE_RECORD;
COMMIT_FORM;
EXIT;
ON THE OTHER
IF (: System.Last_Record = 'TRUE') THEN
EXIT;
END IF;
END IF;
END LOOP;
PREMIER_ENREGISTREMENT;
execute_query (no_validate);
end;
Something wrong with my script above? Please help me. Thanks /.
Kind regards
Lim
The problem is with Commit_form after every single deletion. What karim gave is smooth, but I like it this way-
PREMIER_ENREGISTREMENT;
DECLARE
BEGIN LOOP WHEN THE OUTPUT: SYSTEM. RECORD_STATUS = "NEW";
If: CHECK_BOX = 'Y' then
delete_record; end if; NEXT_RECORD; END LOOP;
COMMIT; PREMIER_ENREGISTREMENT;
execute_query (no_validate);
END;
Concerning
Bobin
-
Merge two records which has the same ID
Hi all
Oracle version-> database Oracle 10 g Enterprise Edition Release 10.2.0.4.0 - 64 bit
Has obtained two records with DB_ID even on different creation_dates, but some columns are filled in on the next day with the updated data. Now I need merge them into one by taking the MAXIMUM of the columnTable DB_TEMP create table DB_TEMP ( Db_ID NUMBER, LAST_NAME VARCHAR2(30), FIRST_NAME VARCHAR2(30), MIDDLE_NAME VARCHAR2(30), M_CODE VARCHAR2(10), PREFIX VARCHAR2(30), TITLE VARCHAR2(100),CREATION_DATE DATE); INSERT INTO DB_TEMP values (3, 'JOHN', 'KER', '', 'A146', '', 'PRESIDENT', '5/1/2011'); INSERT INTO DB_TEMP values (3, 'JOHN', 'KER', '', '', 'MR', 'PRESIDENT ACTIVE HERE', '5/10/2011'); INSERT INTO DB_TEMP values (11, 'MATT', 'CARLONE', '', '', 'MR', 'CHAIRMAN', '5/1/2011'); INSERT INTO DB_TEMP values (11, 'MATT', 'CARLONE', '', 'A149', '', 'CHAIRMAN INACTIVE', '5/10/2011'); INSERT INTO DB_TEMP values (40, 'JOHN', 'SMITH', 'K', 'A147', '', 'PRESIDENT', '5/1/2011'); INSERT INTO DB_TEMP values (40, 'JOHN', 'SMITH', 'K', 'A147', 'MR', '', '5/10/2011'); Required Output DB_ID LAST_NAME FIRST_NAME MIDDLE_NAME M_CODE PREFIX TITLE CREATION_DATE --------------------------------------------------------------------------------------------------------------------------------------------- 3 JOHN KER A146 MR PRESIDENT ACTIVE HERE 5/10/2011 11 MATT CARLONE A149 MR CHAIRMAN INACTIVE 5/10/2011 40 JOHN SMITH K A147 MR PRESIDENT 5/10/2011
Help, please
Thank you
Published by: 960736 on November 9, 2012 10:12
Published by: 960736 on November 9, 2012 10:27
Published by: 960736 on November 9, 2012 10:48Hello
960736 wrote:
I need complete records for title CONCATENATE them with ';' in the meantime, but title that has the M_CODE should must be first if not in does not matter in any order. Any remaining can be Max.DB_ID LAST_NAME FIRST_NAME MIDDLE_NAME M_CODE PREFIX TITLE CREATION_DATE --------------------------------------------------------------------------------------------------------------------------------------------- 3 JOHN KER A146 MR PRESIDENT ACTIVE HERE;Member 5/10/2011 11 MATT CARLONE A149 MR CHAIRMAN INACTIVE 5/10/2011
So, for db_id = 3, wouldn't you ' PRESIDENT; PRESIDENT ACTIVE HERE; MEMBER "?"
For db_id = 11, wouldn't you ' PRESIDENT; INACTIVE PRESIDENT '?Whatever it is, you need the string aggregation . See this page from the Oracle Base for several ways to do so. Since you have Oracle 10 and because the order is not important, I recommend so the aggregate function defined by the user, called STRING_AGG on that page, but the STRAGG called by most of the people who actually use it. Once you have created the STRAGG, you can use it like this:
SELECT db_id , MAX (last_name) AS last_name , MAX (first_name) AS first_name , MAX (middle_name) AS middle_name , MAX (m_code) AS m_code , MAX (prefix) AS prefix , STRAGG (title) -- or STRAGG (DISTINCT title) AS title , MAX (creation_date) AS creation_date FROM db_temp GROUP BY db_id ;
-
I need to implement Drag N Drop between two tables that saves the two records
I need to implement Drag N Drop between two tables that saves the two records on a third page, using drag 'n drop.Check out this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html
-
can anyone tell how to compare two documents with two controlled with the same mouse pointers
can anyone tell how to compare two documents with two controlled with the same mouse pointers?
Windows and OS X can only display a mouse pointer - it is created by the operating system, not the application.
-
How can I make this update, when I have two records (a primary key, no seq)
How can I make this update in pl\sql
Below is the table with data
CREATE TABLE INSERT_TE ( PIDM VARCHAR2(8), FORM_ID VARCHAR2(2), TEACHER VARCHAR2(30) )
commit;INSERT into INSERT_TE ( PIDM, FORM_ID, TEACHER ) SELECT '1106651', 'TE', 'Teacher, Alber Howard' from dual
commit;INSERT into INSERT_TE ( PIDM, FORM_ID, TEACHER ) SELECT '1106651', 'TE', 'Teacher, Alber2 ' from dual
CommitINSERT into INSERT_TE ( PIDM, FORM_ID, TEACHER ) SELECT '2321241', 'TE', 'Teacher, Silly Billy ' from dual
You're going to end with something like this: in a cursor...
so I need to update a tablePIDM FORM_ID TEACHER 1106651 TE Teacher, Alber Howard 1106651 TE Teacher, Alber2 2321241 TE Teacher, Silly Billy
If there is only one file like this 2321241 teacher YOU, Billy Silly
no problem I'm
But if there's a PIDM (pk) with two recordsUPDATE saturn.sarchkl SET sarchkl_receive_date = SYSDATE, sarchkl_activity_date = SYSDATE, sarchkl_source = 'U', sarchkl_source_date = SYSDATE WHERE sarchkl_pidm = v_pidm3 AND sarchkl_receive_date IS NULL AND sarchkl_term_code_entry = p_term AND sarchkl_admr_code = 'REC1'
I need to make 2 updates (notice the rec1 sarchkl_admr_code AND for the firs and rec2 during the secondPIDM FORM_ID TEACHER 1106651 TE Teacher, Alber Howard 1106651 TE Teacher, Alber2
The first record should update the table when the condition is sarchkl_admr_code = "REC1" and the second disc with the
condition is sarchkl_admr_code = "REC2.
andUPDATE saturn.sarchkl SET sarchkl_receive_date = SYSDATE, sarchkl_activity_date = SYSDATE, sarchkl_source = 'U', sarchkl_source_date = SYSDATE WHERE sarchkl_pidm = v_pidm3 AND sarchkl_receive_date IS NULL AND sarchkl_term_code_entry = p_term AND sarchkl_admr_code = 'REC1'
I do this in pl\sql, I don't have a sequence in the INSERT_TE table, how do I know that the first record inUPDATE saturn.sarchkl SET sarchkl_receive_date = SYSDATE, sarchkl_activity_date = SYSDATE, sarchkl_source = 'U', sarchkl_source_date = SYSDATE WHERE sarchkl_pidm = v_pidm3 AND sarchkl_receive_date IS NULL AND sarchkl_term_code_entry = p_term AND sarchkl_admr_code = 'REC2'
updated a rec1 and the second updates when sarchkl_admr_code = "REC2."1106651 TE Teacher, Alber Howard 1106651 TE Teacher, Alber2
I guess I can create a sequence, but I'm inserting a table of a select statement, I get the error message
ORA-02287: sequence number not allowed here, when I try to do the following:
What is the simple way to make this update...INSERT INTO SYTEACH ( SYTEACH_PIDM, SYTEACH_ID, SYTEACH_TEACHER, SYTEACH_SEQ ) SELECT DISTINCT spriden_pidm, sarchkl_admr_code, szsform_form_id, szsform_schl_off_type||', '||szsform_schl_off_firstname||' '||szsform_schl_off_lasttname teacher, SZSFORM_SEQ.NEXTVAL FROM saturn_midd.szsform, saturn.spriden, saturn.sarchkl WHERE spriden_ntyp_code = 'CAPP' AND szsform_common_app_id = spriden_id AND spriden_pidm = sarchkl_pidm AND sarchkl_admr_code = 'REC1' AND szsform_form_id = 'TE'
Hello
you said:
>
But if there's a PIDM (pk) with two recordsPIDM $FORM_ID TEACHER
TE 1106651 teacher, Alber Howard
1106651 TE, Alber2 Professor
>Loc PKS are unique! (otherwise we don't call them pk)
For your table, you can set a single like this:
PIDM column + a sequence. (new heading):ALTER TABLE INSERT_TE ADD(TEACH_SEQ NUMBER) / UPDATE INSERT_TE x SET TEACH_SEQ = (SELECT n FROM (SELECT ROWID rid, ROW_NUMBER() OVER(PARTITION BY pidm ORDER BY TEACHER) n FROM INSERT_TE t) s WHERE s.rid = x.ROWID) PIDM FORM_ID TEACHER TEACH_SEQ 1106651 TE Teacher, Alber Howard 1 1106651 TE Teacher, Alber2 2 2321241 TE Teacher, Silly Billy 1
I need to make 2 updates (notice the rec1 sarchkl_admr_code AND for the firs and rec2 during the second
The first record should update the table when the condition is sarchkl_admr_code = "REC1" and the second record with the condition is sarchkl_admr_code = "REC2.
>not normally.
but you can do (now)
select PIDM, FORM_ID, TEACHER, 'REC'||TEACH_SEQ TEACH_SEQ from INSERT_TE PIDM FORM_ID TEACHER TEACH_SEQ 1106651 TE Teacher, Alber Howard REC1 1106651 TE Teacher, Alber2 REC2 2321241 TE Teacher, Silly Billy REC1
and use the last column to update you...
Published by: user11268895 on August 20, 2010 14:01
-
Restore 'My Documents' and 'Public records' alias after moved folder
I moved my folder "Documents" of the user, as long as the public 'Documents' of my boot drive to a new drive for storage of files, I added.
To do this, I opened the properties of the folder, the location tab and used the move... button to direct to the new location.
After, my "Documents" library entry shows two folders 'Documents '. Before the move, these folders have been listed with the alias "My Documents" and "Documents", which was a welcome orientation for the scope of these two files the same name.
How to recreate these aliases at this point?
Well, it's good. It is a common mistake for people to hurt set the new location as D:\ just for example, which means the entire root of the drive's "documents folder" (not exactly the end of the world, but it is difficult to undo and even harder to explain). Anyway, you avoid this pitfall.
The word "public" shown is not actually part of the name of the documents folder (not the 'my' on your own file). It covers based on the presence of a text file inside the folder that told him of the special Act. The folder itself is still called 'Documents' (complete actual path of C:\users\public\Documents), but the folder icon shows "Public Documents" because there is a file with hidden text in the file called desktop.ini telling him to see it.
This part is pointing shell32 is just to find the English version of "Official Documents". You could do what you want, such as:
The folder looks like that it's called "Public things", but we call it actually still just 'Documents '. The name is set according to the text of Desktop.ini.
So in short, just to put this text file in the folder, mark it as a file system / hidden, and it will allow you to set the name of "presents itself as" to anything you want.
-
Two records of models created?
I'm completely stumped. I can't update my child pages related to the models.
I am very new to Dreamweaver CS4 as well as web design in general and have created a fairly simple site (Nothing fancy).
My confusion comes from Dreamweavers folder structure (path?). I created two templates that are related to Web pages, but I have TWO template files.
I'm sure I'm getting the jargon wrong, but why DW created two folders of model and what we can I update and 'put' on my server?
It seems nothing I make changes to my site and the more I read, more confused, I get all the way to the template... No... I'm really lost and upset.
I don't yet know what information to include to help someone to help me. If someone could explain the path to the folder in plain English, I would be grateful.
My folder structure looks like this:
Site - nss
Downloads
H & S manual
Inserts for folders
NSS Web
Templates
Templates
The Toolbox talks
There are more folders under Web NSS, but I wanted to illustrate where DW took two model records. The two template files contain the same pages of two templates (.dwt files)
Thank you in advance,
Mike
- Launching a new site in DW, no record
- Create a document and save it as a template
You will see that DW has created a folder named models and placed the model newly created within that folder.
GRAMPS
-
Implementation of document for two-tone printing
I create a document that will be printed using two colors: black and a Pantone ink. In the swatches Panel, I deleted all the nuances except black and my Pantone color (and obviously no, paper and recording are still there). I've also created a few shades mixed inks based on black and Pantone color.
However, I notice that the ink Manager still shows Cyan, Magenta and yellow as well as black and Pantone. Manager inks Acrobat is the same, despite the preflight, showing that it produces only two plates. (In the preview of the output, only black channels and Pantone view coverage, but harvest see the mark on all five channels.)
Should I be worried? Is it possible to set up a document for printing two colors that I missed?
Any advice would be appreciated.
The ink Manager is not a problem, bu the mixed colours are potentially, depending on the media used. A few small publishing houses 2 colors use a unique cover and mix the ink on the cover for the overprints (which is what the mixture of inks), creating a lane of cross-contamination of inks which can disturb the color all around. You can check that this won't be a problem on your work.
-
How can I scan and collect documents face two pages multi with the HP 6700 doc feeder?
Hello
I have an OfficeJet 6700. I need to scan documents of several large double-sided pages and want to use the automatic charger. I see nothing in the software to be able to analyze one side of a pile of pages, return them manually, then analyze the other side, and have the pages in a single document. It seems to me that this would be a fairly routine business need and also an easy enough task for software realize (just put each page second in order - basically the opposite of manually printing on both sides) so it makes me think that I must be missing something. Can anyone help please?
Thank you very much.
Hello MN42
The 6700 Officejet does not a duplex ADF to allow you to scan a two-sided document. Copy/scanning duplex is supported only in the glass on the model.
I suggest that you are looking to buy a printer Officejet Pro (for example, the Officejet Pro 8600 N911g) If you are looking for the digitization of documents front / back, through the ADF. You can also look for third-party software that supports what you're looking for.
Maybe you are looking for
-
New HDD to 120 GB in Satellite 2410 304
Hello. I bought the WD Scorpio 120 GB but my NB does not recognize him. I also tried my friends HDD (Samsung Spinpoint 120 GB) and it works (I could boot from the CD and see partitions). He tried my disc and it works too. So I guess that the HARD dri
-
Got Live TV to work on my iq508a running on touchsmart 3.0, (AverMedia A326)... It's pretty simple to do...1. download sp44400.exe2 use winrar and extract to sp44400\3. then the sp44400\Source extracted using winrar, BTBEnd.exe, BTBHost.exe and HPTou
-
HP Pavilion dv4: can I factory reset with an external monitor attached to my laptop?
I got a laptop HP Pavilion dv4 entertainment PC. It has a cracked screen and I use an external monitor attached. Can I do a factory reset with the attached external monitor? The monitor is an HP w1815 LCD, case ini that matters. Thanks for any help o
-
HP Officejet 6500 E709n Wireless printer is not printing yellow exclamation cannot use Setup
Don't know what the problem with my printer when commissioning wireless light comes on even if not connected... Amber Exclamation mark still on... cannot print have tried factory reset... and other resets... nothing seems to work... I don't know wher
-
My HP Envy touch screen has stopped working after an update of the HP Bios yesterday
Can someone tell me please how to fix my touch screen. I got an HP BIOS update which caused my touch screen to stop working. I tried to re - calibrate the it, but it does not accept my contact telling me that the screen is no longer enabled. I tried