Helps with the update of Table
Hi, I have a table created in book of recent years:
I would like to 'try' and just update with the new Word.docx
Is it EASY without complication or should I try and rebuild the table from scratch in Id?
HOW THEN I update THE TABLE to ID card?
Simply:
(1) (copy the text of the .doc
(2) select the text in the table Id, delete, paste
This seems to have worked...
Tags: InDesign
Similar Questions
-
need help with the Update statement
Hello
I received a question in a course and I tried my best to respond, and now my brain is giving. I would really appreciate help with the update statement. I don't mind if you do not validate a solution, a little nudge in the right direction would be really useful. I'll post that I got.
THE QUESTION
/ * For these agents disabled on more than seven missions, change their date of deactivation of the first date of deactivation of all the agents that have been activated in the same year as the agent that you update currently.
*/
I have it divided into parts, here is my select statement to agents disabled on more than 7 missions, which produces the deactivation_dates in the agents table that I want to update...
.. .and the code for the first date of deactivation for each year of activation agentSELECT s.deactivation_date FROM ( SELECT a.deactivation_date, count(m.mission_id) as nomissions FROM agents a INNER JOIN missions_agents m on a.agent_id=m.agent_id GROUP BY a.deactivation_date ) s WHERE s.nomissions>7 AND s.deactivation_date IS NOT NULL
..... I am not real to marry these two statements together in the Update statement. I can't extract each date of deactivation produced in the first select statement and their match against the first date of deactivation in the year they have been activated for the second select statement.select a2.deactivation_date from agents a2 where a2.deactivation_date= ( select min(a.deactivation_date) from agents a where to_number(to_char(a.activation_date,'YYYY'))=to_number(to_char(a2.activation_date,'YYYY')) )
Any help greatly appreciated... :))I began to wonder how things would :)
user8695469 wrote:
First of all why he chooses the date the earliest of all agentsUPDATE AGENTS_COPY AC /* (1) */ SET DEACTIVATION_DATE = ( SELECT MIN(AGS.DEACTIVATION_DATE) FROM AGENTS_COPY AGS , AGENTS_COPY AC /* (2) */ WHERE TRUNC(AGS.ACTIVATION_DATE,'YEAR') = TRUNC(AC.ACTIVATION_DATE,'YEAR') /* (3) */ )
He recovers as soon as the subquery has not been correctly set in the SET clause. It seems you are trying to update a correlated, but we are still having a conceptual shift. I have added a few comments to your code above and below will explain.
(1): when you do a correlated update it is useful to the table alias that you did right here.
(2): this table statement is not necessary and is the reason why the FIRST deactivation date is selected. The alias that you use (3) refers to THIS table, not the one defined in the update statement. Remove the line indicated by (2) in the FROM clause and a correlated update will happen.
and secondly why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)
user8695469 wrote: then why is it to update each row, when I thought that I'm just the lines where the agents are disabled and missions > 7? Pointers on where I'm wrong would be very appreciated. (SQL = stupid query language!) :)
WHERE EXISTS ( SELECT a.agent_id, count(m.mission_id) FROM agents a /* INNER JOIN AC ON AC.AGENT_ID = A.AGENT_ID */ INNER JOIN missions_agents m ON a.agent_id=m.agent_id GROUP BY a.agent_id, a.deactivation_date HAVING count(m.mission_id)>7 AND a.deactivation_date IS NOT NULL )
Once again this problem is similar to the question above that a correlation update doesn't work. Test existence of lines in an EXISTS subquery. Since your subquery is not related to the table that you are trying to update, it will be always return a line and, therefore, it returns true for EACH LINE in the AGENTS table. To limit the game to only agents > 7 missions results, you need to add a join condition that references the table in your update statement. I added one above (with comments) as a sample.
I recommend you look over all material that you have associated with correlated subqueries, including documents that I posted above. This seems to be what you're having the problem more with. If you need me to explain the concept of correlated queries any better please let me know.
Thank you!
-
helps with the update of tabular form using dynamic Action
Hello world
I'm trying to simplify a tabular presentation based on a collection so that it uses more dynamic actions that will be ultimately more easy for us to debug.
Our tabular presentation is based on the query:
SELECT apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow", seq_id, seq_id display_seq_id, c003, c004, c005, c006, apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit, apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0',' -- Select Favorite -- ','f08_'||seq_id,'') Disposition, apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear, apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity, apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price, apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars, decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished, c014, c015, c016, c017 additional_measure_flag, decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY, decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT, c024 fins_attached, apex_item.textarea(28,c028,3,null,'class="hms_info"','f28_'||seq_id,'') Explanation, decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','class="hms_info"''onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale, c030, c031, c032, c033, c034, c035, c036, c037, c038, c039, apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;" class="hms_info" ',null,null,null,'f40_'||seq_id,'') HMS_AREA_CODE, c020 hms_flag, apex_item.text(41,TO_NUMBER(c041),5,null, 'class="hms_info"','f41_'||seq_id,'') Sale_Price, c042, c043, c044, c050 shark_flag from apex_collections where collection_name = 'SPECIES_COLLECTION' order by seq_id
Note that many of the fields referenced are c0xx... and really serve as place holders so that the c0xx = fxx. It's awkward, like every time that a movement or move a column, it upsets the fxx value. So, I tried to use the CLASS if possible.
I have a dynamic action that had worked perfectly, until I moved one of the columns... and now, it seems not to work when I'm trying to update anything with the HMS_INFO or SHARK_INFO class. Grrr.
dynamic action: CHANGE COLUMN
event: CHANGE
selection type: JQUERY SELECTOR
jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], input [name = "f24"], textarea [name = "f28"], select [name = "f40"], input [name = "f41"]
true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id
true action2: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value
true action3: run pl/sql,.
declare v_attr number; v_seq number; begin v_attr := TO_NUMBER (SUBSTR (:p110_id, 2, 2)); select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual; safis_collections.update_column(v_seq, v_attr, :p110_value); end;
the safis_collections.update_column package is:
procedure update_column(v_seq in varchar2, v_attr in number, v_value in varchar2) is begin apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION', p_seq => v_seq, p_attr_number => v_attr, p_attr_value => v_value); apex_debug.message('updated column. seq='||v_seq||' attribute='||v_attr||' with '||v_value); end;
I wonder if there is a way to make the CLASS in my JQUERY SELECTOR, so something like reference entry [class = "HMS_INFO"], input [CLASS = "shark_info"]... and if so, what happens if a single item in the class is an option button and the other is a selection list and the other an element?
is it possible to not have to rely on the fxx. Currently, my collection columns map to the investment in the form of tables... sense, c024 = f24... because I placed c024 to be the 24th editable column, but this seems crazy. Is there a simpler way? I'm just learning class, then maybe there is something extra, or rather that I could use...
any help is appreciated. Thank you!
I think I have solved the problem.
dynamic action: CHANGE COLUMN
event: CHANGE
selection type: JQUERY SELECTOR
jQuery selector: input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], .shark_info, .hms_info
true action1: defined value, expression javascript, set P110_ID = this.triggeringElement.id P110_VALUE POINT KEYS
true action2: run pl/sql code
begin null; end;
items to submit page: P110_ID
true action3: defined value, expression javascript, set P110_VALUE = this.triggeringElement.value P110_VALUE POINT KEYS
true Action4: value: PL/SQL expression, the value P110_SEQ = rtrim (substr(:P110_ID,5,4),'0 ') CONCERNED POINT: P110_SEQ
true Action5: run pl/sql code
declare v_attr number; begin v_attr := TO_NUMBER (SUBSTR (:P110_id, 2, 2)); apex_collection.update_member_attribute (p_collection_name => 'SPECIES_COLLECTION', p_seq => :P110_SEQ, p_attr_number => v_attr, p_attr_value => :P110_VALUE); end;
items to submit page: P110_ID, P110_VALUE, P110_SEQ
true action6: refreshment area
I think it is the combination of the use of pl/sql expression to calculate P110_SEQ and also your tip on TRUE ACTION2 to submit the item that did the trick.
Thanks Kofi, for your patience and help! It was great.
Ugh... on the next issue.
Karen
-
Need help with the update server behaviors and deleting records
I am 'trying' to use the update and delete record server behaviors and I can't get the redirection page to set up correctly. What I'm trying to do, is to have the redirection came up with the right records depending on the CompId page. It seems that it is taking the CompId and agreementId (which are my unique ID) and use them in the url of the redirection page. Also, it updates the table. Here is the url that appears after I have send the update:
http://localhost:8888/dotweb/maintenance/agreement_home.php?CompId= & agreementId = 7
Here is the code for the update page:
Pending patent, trade mark, Tradesecret and straightened to copy recordedCopyright KML designs 2009Can someone tell me why it would show the CompId and agreementId when everything I asked the CompId? Thanks for your help. Just in case, I enclose you an html version of this file. It must be a php file, but is not one of the allowed file types.
CompId is not filled in the URL because you try to use the result of the rsAgree recordset object until the result of the recordset is created. However, you pass the CompId value via array $_POST as a hidden field.
Change this line (52):
$updateGoTo = "agreement_home.php?CompId=" . $row_rsAgree['CompId'] . "";
to do this:
$updateGoTo = "agreement_home.php?CompId=" . $_POST['CompId'];
-
Help with the cluster in table for the cluster size difference, please!
I will admit to still hurt with the berries of LabVIEW, and as usual, the behavior in the vi attached is meaningless to me! The attached vi shows a cluster 6 element being converted into a table, then immediately to a cluster. The reconstructed cluster has 9 elements, even if the table size indicator display properly 6. How to maintain the initial cluster size when converting to and then since then, a table?
The f
Well, if you have worked with context-sensitive help running you would see:
"With the right button of the function and select the Size of Cluster in the context menu to set the number of items in the cluster."
The default is new. The maximum cluster size for this function is 256. »
You must set the size. There is no way for the function to know how many elements in the table.
-
Need help with the update of Windows (OS-Windows 7)
Hello world
Recently, I met a problem with Windows update on my laptop (OS-Windows 7). Everything is fine with it, but when I try to install updates (recommended or optional) window says that it downloads the updates, but the progress remains to 0KB and 0% downloaded status. I tried to restart the service of windows update with utility update of windows running, but without success. However, I was able to install updates, most of them associated with Microsoft.NET framework 3.5.1 (I'm not sure of the version of the .NET Framework is installed in my computer). But when I tried to install other updates updated security windows or .NET Framework 4. XX version update, he gave the same answer that I mentioned above.
I can give my specifications and other information required if necessary.
Please help me with this problem about the update of windows.
Thanks for your time and your help.
Try the following: set never 'Find updates' automatic updates and then restart Windows. Download and install KB3161608.
http://support.Microsoft.com/kb/3161608
Best regards, VZ
-
Need help with the update for my 11 elements
I have 11 items and just switch to the Canon 7 d Markii and shooting in RAW for the first time last night and the editor and organizer elements does not files because it does not acknowledge the BRUTE of the 'new '... device information I tried the update and he offered only a 7.4 update, where the 7 5 d Markii must at least a 8.7 update... How can I get the latest update if my program does not by itself? I DON'T like the way Canon program from the disk provided with the camera is set for RAW images, and I don't want to have to change all the RAW files to only align my items... I enjoyed how the older my camera RAW files were brought in Editor with the pop-up window which allow me to make changes to quick for photos before opening them in the editor... Yet once I don't like how the Canon window works for RAW images... Thanks for any help on this... Nicole
Camera Raw 8.7 was introduced in PSE13. If your software is too old to be compatible. Yu have two choices:
- Upgrade to the latest version PSE14
- Converting your CR2 for Adobe (DNG) Raw and DNG files will work with PSE11
The Adobe's DNG Converter is free, and you can batch process all of a file CR2 by selecting a source folder and destination folder.
-
Need help with the update with several joins statement
I have the following select statement, which takes 29 records:
SELECT
PAA. PROJECT,
PAA. SEGMENT1,
PEIA.expenditure_item_id,
PEIA.expenditure_type,
PEC.expenditure_comment
OF PA.PA_PROJECTS_ALL APP.
PEIA PA.pa_expenditure_items_all,
PEC PA.pa_expenditure_comments
where PPA.segment1 < '2008' and
PPA.project_id = 52 and - just run for project # 20077119 for the test
PEIA.expenditure_type = 'PAY' and
PEIA.project_id = ppa.project_id and
PEC. EXPENDITURE_ITEM_ID = PEIA. EXPENDITURE_ITEM_ID;
I need to update the pec.expenditure_comments to a static field for 29 records. I guess I should start with the following, but don't know how to fill in the where:
Update
PEC PA.pa_expenditure_comments
Set pec.expenditure_comment = ' REFERENCE HD #728'.
where
???
First time we have ever needed to update, so any help appreciated.Try using are:
update pa.pa_expenditure_comments pec set pec.expenditure_comment = 'REFERENCE HD#728' where exists ( select null from pa.pa_projects_all ppa , pa.pa_expenditure_items_all peia , pa.pa_expenditure_comments pec2 where ppa.segment1 < '' -- not sure what you posted here, so for next time: -- please put your examples between the code tags. and ppa.project_id = 52 -- just run for project # 20077119 for testing and peia.expenditure_type = 'PAYROLL' and peia.project_id = ppa.project_id and pec2.expenditure_item_id = peia.expenditure_item_id and pec2.expenditure_item_id = pec.expenditure_item_id );
-
Helps with the UPDATE statement
Hello
I have a table like this:
data in the table:create table test (id number, stat number, id_num number);
I want to update the column id_num with serial number under the same ID.insert into table test (id,stat,id_num) values (1,112,''); insert into table test (id,stat,id_num) values (1,123,''); insert into table test (id,stat,id_num) values (2,134,''); insert into table test (id,stat,id_num) values (2,111,''); insert into table test (id,stat,id_num) values (3,112,''); insert into table test (id,stat,id_num) values (4,111,''); insert into table test (id,stat,id_num) values (4,12,''); insert into table test (id,stat,id_num) values (4,11,'');
Below is the table with coloumn successfully updated.
Can someone give me a hint how to remove this?insert into table test (id,stat,id_num) values (1,112,1); insert into table test (id,stat,id_num) values (1,123,2); insert into table test (id,stat,id_num) values (2,134,1); insert into table test (id,stat,id_num) values (2,111,2); insert into table test (id,stat,id_num) values (3,112,1); insert into table test (id,stat,id_num) values (4,111,1); insert into table test (id,stat,id_num) values (4,12,2); insert into table test (id,stat,id_num) values (4,11,3);
Thank you very much for your help!user13071990 wrote:
Manik which is not a good solution because dat_document can also be duplicated.Alberto is no uniq key in the table, which is the main problem.
It is not a good way to get the table without unique keys.
To work around the problem, I suggest that, despite the fact that I do not use virtual ROWID.
I did a test by inserting a date twice for the same id
insert into test (id,dat_document,id_num) values (4,to_date('01.07.2012','dd.mm.yyyy'),'');
Now, I used:
MERGE INTO test a USING (SELECT rowid , ROW_NUMBER () OVER (PARTITION BY id ORDER BY dat_document) AS val FROM test) b ON (a.rowid = b.rowid) WHEN MATCHED THEN UPDATE SET id_num = val; SELECT * FROM test ORDER BY id, dat_document; ID DAT_DOCUMENT ID_NUM ---------- --------------------- ---------- 1 01-01-2012 00:00:00 1 1 01-02-2012 00:00:00 2 2 01-03-2012 00:00:00 1 2 01-04-2012 00:00:00 2 3 01-05-2012 00:00:00 1 4 01-06-2012 00:00:00 1 4 01-07-2012 00:00:00 2 4 01-07-2012 00:00:00 3 4 01-08-2012 00:00:00 4
Kind regards.
Al -
I need help with the updates listed below
I tried several times to install updates as follows: KB 2468871 KB 2533523 for my Vista SP2 program with a 32-bit and I get the error message 643 / I use Chrome most of the time, but I also have IE.
You're certainly not alone...
You can try to repair the .NET Framework 4 and if that doesn't work, download updates relevant manually and install the same.
To repair the .NET Framework 4 Client Profile or .NET Framework 4 extended etc. -.
· Click on start/Orb and click on Control Panel.
· Go to the program and features.
· Locate the Microsoft.Net Framework 4 Client Profile or .NET Framework 4 extended, right-click.
· You should have the choice to repair or uninstall/change, click it.
· This will then give you the opportunity to fix it
· Select the repair option.
Manual download of updates (just search for the most relevant to your problem)
1. http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27017 (KB2539636)
2. http://www.microsoft.com/download/en/details.aspx?id=3556 (KB2468871)
3. http://www.microsoft.com/download/en/details.aspx?id=27014 (KB2533523)Make sure you download the one appropriate for your system.
http://support.Microsoft.com/kb/827218
Install as administrator.
Addition, it is rather a big discussion here:
-
Need help with the Oracle error table
Hello
I'm procedures for migration from SQL server to Oracle.
In SQL server there is a reference to the table * master.dbo.sysmessages * is there any table in oracle, which equals master.dbo.sysmessages table of SQL server.
Thanks in advance.Hello
In sql server, the view is not containing error details.., I think that there is no such a table in oracle... To do this use the SQLERRM function in oracle...
-
I put the 'where' to check the session. I know it's simple, what Miss me
< %
Define Command1 = Server.CreateObject ("ADODB.Command")
Command1.ActiveConnection = MM_connRipple_STRING
Command1.CommandText = "UPDATE ripplecommunications.core_Administrative SET Password = 'done' WHERE AdministrativeID ="Session("AdministrativeID")"
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.prepared = true
Command1.execute)
% >> what
>
> WHERE AdministrativeID = & Session("AdministrativeID") 'Well Yes, it looks right...
-
I just wanted to know at all, if you encounter a problem with the update of creative cloud as if I was (error 1001), I discovered that my Webroot AntiVirus has been the origin of the problem. I turned it off and it updated correctly. Hope that helps some people I've seen so angry about it here by searching for the answer myself.
Thanks for sharing this, yes turning Firewall works.
Concerning
Stéphane
-
A plant back to zero help with the battery?
Did a factory reset help if after a user updates 9.3.3 they have battery issues?
Only if he had problems with the update download which is unlikely. You would have to do a restore of the system, not only a reset.
Try the procedure described in this article for suggestions, including turn off background App update.
-
Hi, I need help with the dates of the plugins added to my browser
Hi I need to know when a plugin has been installed on my browser.
openh264 / video codec provided by cisco systems.
If you can't help, please point me in the direction of someone who can?
Any help much appreciated.
Hello, this particular plugin has been installed with the update for firefox 33.
http://andreasgal.com/2014/10/14/openh264-now-in-Firefox/
Maybe you are looking for
-
Can I backup the files before recovery?
Hello If you use the recovery disk to load windows (I have Windows Vista 32-bit) is it possible to save files (photos, etc...) before wiping these files on the hard drive?I backed up files and cannot access windows for it now... wonder if I can backu
-
I designed a photo album and want to use the apple printing service, but then it did not work when I try to buy. Any notification or something to say why it does not work
-
Z50 - 75 - Windows for Windows 10 invalid product key?
Hello I replaced the HARD drive that came with my Lenovo Z50 - 75 with a SDS and took the opportunity to also upgrade to Windows 10. I had read in the forum that the Windows key has been incorporated in the BIOS, so I can't needen to worry. I wrote i
-
W520 screen flicker / artifacts
Hello I'm looking for more help with my newly arrived w520, 2820QM, 4gigs of Ram and NVQ2000M, 500 GB 7200 RPM. The first start and throughout the installation procedure, the screen flickered with artifacts represented in the film below: http://scree
-
I need assistance with an ICS connection
I have a laptop and my friend has a desktop computer. I tried to set up an Entrepreneur with my laptop being the host pick up a wireless signal and desktop connected with a network cable. I followed the help and put evrything correctly to allow ISC a