Setting DST on Palm TX
I need to reset the new dates of start and end of DST on my Palm TX. I found no info in the manual.
Hello, download the update of the DST from here:
http://KB.hpwebos.com/wps/portal/KB/na/tungsten/TX/unlocked/downloads/page_en.html
See you soon!
Tags: HP Tablets
Similar Questions
-
Switching to outlook for syncying Palm Desktop synchronization
When I first set up the Palm Desktop for my Palm TX, I chose to synchronize my calendars and tasks, etc. from my outlook account. How can I change to make it synchronize calendars, tasks, etc. from my Palm Desktop program now in place?
Thank you
On your computer, go here:
Start button / all programs/Palm/PIM led Sync / Sync with Palm Desktop.
It must "raise the switch" to sync with the Palm Desktop rather than with Outlook.
WyreNut
-
How to create a Virtual Com Port in Windows 7 for Palm HotSync
I've just updated wo Windows 7 Pro 64 bit. Because Palm does not support USB synchronization under a 64-bit system, it tells me that I need to create a virtual com port for my bluetooth device to synchronize. I can't understand how to create this port under Windows 7.
Hi Sonmox,
Welcome to the Microsoft Answers site!
In the Sub in view of the link you need to download the Palm Desktop and HotSync Manager. This software allows you to synchronize your device Palm with your computer, for your info is backed up and easily editable on your computer.
Visit the following is given link of Palm and configure your Bluetooth device.
http://KB.Palm.com/wps/portal/KB/common/article/49229_en.html
When you set up your Palm device to synchronize using Bluetooth technology, you create a 'Bluetooth partnership' between your devices your computer (also known as "pair" or "trusted device"). This allows you to synchronize your device wireless and your computer have to authenticate each other, every time that you synchronize.
Follow the steps in the document to sync your Bluetooth device.
Hope this information is useful.
Amrita M
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
can I convert the option to choose in applescript in Automatic Configuration of the action folder
Hello
H I have an applescript script that is a sort of an image file and fix it to the sage according to uniqueness of the folder names.
In this script I choose the folder option, but I want to convert the option into action automatically as a file configuration. as
on the addition of items in folder to this_folder after receiving of these_items
Here's my script
d choose the game folder
_main ({d})
on _main (argv)
o script
property ff: {} - list of aliases
property gg: {} - list aliases to be moved by prefix
nn property: {} - list of file names
mm property: {} - list of prefixes
property mm1: {} - separate prefix list
Repeat the operation with d in the argv - by source directory table
d to g-d content of the kit
-retrieve the list of aliases and names for document files
Tell application "Finder".
say g-d document files to set point {ff, nn} to {it as list of alias, the name}
tell the end
Try
value {astid0, delimiters of point for the AppleScript text} {of AppleScript point text delimiters {'_'}}
Repeat with i from 1 to count my nn
the value {n, m} {my point nn i, ' "}
If (count of n textual elements) > 1 then set m ' "& n text items 1 thru-2
put end my mm m
If m ≠ "" and m is not my mm1 then put end my mm1 m
end repeat
the text value of the point astid0 delimiters AppleScript
errors errs errn number
the text value of the point astid0 delimiters AppleScript
error number errn errs
try to end
Repeat with m in my mm1 - with separate prefix
m to m content of the kit
-prepare the destination for this prefix
Try
Set dst as string d & e & ': ' as an alias
There is no error number-43 - dst
Tell application "Finder" to set the dst (make new folder d with properties {name: m}) as alias
try to end
Repeat with i from 1 to count my mm
If my mm point i = m and establish the end of my gg to my ff I
end repeat
If gg ≠ {} then tell application "Finder" to move the gg in dst with the replacement
Gg to {} set
end repeat
end repeat
end of script
say o to run
end _main
so if support convert this script for folder action script please help to do.
Thank you
Rakesh
You just need to provide multiple ways to call your manager, for example:
on run -- application double-clicked or run from the Script Editor set d to choose folder _main({d}) end run on open droppedItems -- items dropped onto droplet _main(droppedItems) end open on adding folder items to this_folder after receiving these_items -- folder action _main(these_items) end adding folder items to on _main(argv) -- main routine -- whatever end _main
-
Cross and copy files to the new structure
Hello people!
I had a huge task I'd like to simplify with a bit of Applescript.
Basically, I would like to move or copy a lot of files in a new folder structure.
I have a few different folders with all 500-4000 jpg, see image below.
First picture shows the old structure, 2nd picture show the new structure I would accomplish.
I want to do is have a script to loop through and take the first 4 characters of the file name and create a folder with that name in the location of my choice.
Then, create a new folder in the parent called JPEG folder and copy all of the files with the same name specific to this folder.
So far, I've been able to automate the creation of folders and subfolders.
any help is appreciated
loc to choose a folder "choose the Parent folder location."
Repeat with I from 1 to 3
the value d to text - via -1 of 2 ("51" & I as text)
Try
tell application "Finder" to set targetFolder to create a new folder in loc with properties {name: "61" & j}
tell application "Finder" to create a new folder to targetFolder with properties {name: "JPEG"}
tell application "Finder" to create a new folder to targetFolder with properties {name: "PSD"}
end try
end Repeat
Hello
You could try the AppleScript script which is a simple bash script wrapper.
It will allow you to choose the source directories and destination and then analyze the source for jpeg files tree and copy the jpeg file with name starting with excatly 4 digits IJKL to the correspondent-I000/IJKL directory in the destination. In the destination path directories are created as it should. For example, your screenshots, you can choose the folder '7000-8000' or its parent directory in the source directory and the "OBJECTS" folder as the destination directory.
Any jpeg file which doesn't have a name starting with exactly 4 digits is ignored. Verbose output of the CP (1) and any errors will appear in the result pane / window (Apple Apple) Script Editor.
--APPLESCRIPT set src to (choose folder with prompt "Choose source folder where source tree is rooted at")'s POSIX path set dst to (choose folder with prompt "Choose destination folder where destination tree is rooted at")'s POSIX path if dst starts with src then error "Source tree may not contain destination." number 8000 set args to "" repeat with a in {src, dst} set args to args & a's quoted form & space end repeat do shell script "/bin/bash -s <<'EOF' - " & args & " SRC=${1%/} DST=${2%/} { export LC_CTYPE=UTF-8 while IFS= read -r -d $'\\0' f do n=${f##*/} [[ $n =~ ^(([0-9])[0-9]{3})[^0-9] ]] || continue p=${BASH_REMATCH[1]} q=${BASH_REMATCH[2]} jpg=${DST}/-${q}000/${p}/JPEG psd=${DST}/-${q}000/${p}/PSD [[ -d $jpg ]] || mkdir -p \"$jpg\" || continue [[ -d $psd ]] || mkdir -p \"$psd\" || continue cp -v -pPR \"$f\" \"$jpg\" done < <(find \"$SRC\" -type f -iname '*.jpg' -print0) } 2>&1 exit 0 EOF" --END OF APPLESCRIPT
Briefly tested under OS X 10.6.8 but no guarantee of any kind. Please make sure that you have a full backup of the original directories before running this kind of script.
Good luck
H
-
Windows 7 64 - bit hotsync for Tungsten E2
This infrared solution really worked well for E2 my wife with Windows 7 64-bit synchronization.
1. I installed Palm Desktop 6.2-> http://kb.palm.com/wps/portal/kb/common/article/32859_en.html
2. I have a USB to infrared adapter from Amazonyba SD-U1IRDA-NM Fast Infrared adapter USB $11.70 don't bother with the mini-CD of installation, the adapter has a chip MOSCHIP 7780, then go straight to http://www.moschip.com/mcs7780_downloads.php to download the appropriate driver 64 bit Windows 7 installation program. (You will need to configure a connection on the Web site first). Once the drivers installed you can restart the computer, then plug the IR adapter and let plug-and-play of Windows Installer.
3. without the operation of Palm Desktop, I open the HotSync program. Under connections, IR has been listed and I checked it.
4. go to HotSync on the E2, set the IR to PC connection, and then tap on the Center icon. Set the right Palm next to the IR adapter on the computer... less than 1 "away.
It worked! It probably takes about 2 minutes to complete the hotsync.
I know no such program.
Why not just install the drivers of Aceeca we had posted for awhile? They let you HotSync normally via your USB cable for Win 7 or 8 to win!
WyreNut
-
Reset phone - will not be implemented
I deleted my contacts on my Palm Pre using the DEVICE INFO > reset Options. Now I can't override the process to create a Palm profile, want to phone in to connect to my WiFi. I can't turn that.
I appreciate any response, thank you.
The device must be enabled in order to create or connect to a Palm profile. You will not be able to change the Wi - Fi settings during the process of setting up profile Palm. You will need to contact your wireless service provider, activate the device, then you will be able to sign in or create your Palm profile.
I hope this helps and have a great day!
-
I need to update on the column in the table as T1 based on the column of table T2, for example
T1
col_1, col_2, col_3
T2
col_1, col_2, col_3
I need to update T1 col_3 by joining T1 and T2 and the updated value is on T1 col_3
Select * from T1, T2 b
where a.col_1 = b.col_2
and a.col_2 = b.col_2
something like below, but I know under query is false, I just wanted to understand
Update T1 set col_3 = b.col_3 where
a.col_1 = b.col_2
and a.col_2 = b.col_2
Hello
944524 wrote:
I need to update on the column in the table as T1 based on the column of table T2, for example
T1
col_1, col_2, col_3
T2
col_1, col_2, col_3
I need to update T1 col_3 by joining T1 and T2 and the updated value is on T1 col_3
Select * from T1, T2 b
where a.col_1 = b.col_2
and a.col_2 = b.col_2
something like below, but I know under query is false, I just wanted to understand
Update T1 set col_3 = b.col_3 where
a.col_1 = b.col_2
and a.col_2 = b.col_2
Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.
Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.
If you ask yourself on a DML statement, such as UPDATE, then the CREATE TABLE and you post instructions INSERT must re - create the tables as they are to the DML, and the results will be the content of the or a modified tables when it's all over.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
Maybe you want something like:
MERGE INTO dst t1
WITH THE HELP OF)
SELECT t1.col_1
t1.col_2
t2.col_3
FROM t1
JOIN t2 ON t2.col_2 = t1.col_1
AND t2.col_2 = t1.col_2
) src
(Dst.col_1 = src.col_1 IN
AND dst_col_2 = src.col_2
)
WHEN MATCHED THEN UPDATE
SET dst.col_3 = src.col_3
;
But, as all the rest, have that depends on your data and your needs. What is unique in the tables? What happens if no line in t2 is a given in t1 line? What happens if 2 or more rows match? You relly meant comparing the t1.col_1 and the t1.col_2 to t2.col_2?
-
Correlation query does not work
create the table cust_age_sal (cust_id integer, integer whole age of sal);
create the table new_cust_age_sal (cust_id integer, integer whole age of sal);
insert into cust_age_sal values (1,10,100);
insert into cust_age_sal values (2,20,200);
insert into cust_age_sal values (3,30,300);
insert into cust_age_sal values (4,40,400);
commit;
insert into new_cust_age_sal values (2,21,201);
insert into new_cust_age_sal values (3,31,301);
commit;
Question
I want to update cust_age_sal using the customer_id which are present in the new_cust_age_sal;
I use queries, query1 and query2. Query1 is working and I get results and I want to know what is the problem with query2 and why it does not work
Query1:
UPDATE cust_age_sal u
SET (age, sal) =
(
SELECT age, sal
OF new_cust_age_sal
WHERE cust_id = u.cust_id
)
where u.cust_id in (select cust_id from new_cust_age_sal)
---
query2:
UPDATE cust_age_sal
SET (age, sal) =
(
SELECT age, sal
OF new_cust_age_sal
WHERE cust_id = u.cust_id
)
Hello
2742751 wrote:
It is except o/p I'm looking
O/p: except
I think you want to say "whereas", not "excluded".
CUST_ID AGE SAL
---------------------- ---------------------- ----------------------
1 10 100
2 21 201
3 31 301
4 40 400
But when I run under query that is show below output even if I use the join on the target table condition. Why is it show empty for CUST_ID = 1 and 4
UPDATE cust_age_sal u
SET (age, sal) =
(
SELECT age, sal
OF new_cust_age_sal
WHERE cust_id = u.cust_id
)
CUST_ID AGE SAL
---------------------- ---------------------- ----------------------
1
2 21 201
3 31 301
4
A UPDATE instructions without WHERE clause will update with each row in the table.
In the case of cust_id = 1, what will that do? Well, what makes the following query?
SELECT age, sal
OF new_cust_age_sal
WHERE cust_id = 1;
? It produces no line. When you use a subquery in a SET of an UPDATE statement clause (as you do) and the subquery returns no rows, then updated the columns with a NULL value.
If you don't want to update all rows, but want lines updates which fulfil certain conditions (for example, have a corresponding row in new_cust_age_sal), and then use a WHERE clause in the UPDATE statement, as you did in your first UPDATE statement.
Instead of an UPDATE statement, you can also use a MERGE statement, like this:
MERGE INTO dst cust_age_sal
With the HELP of new_cust_age_sal CBC
WE (dst.cust_id = src.cust_id)
WHEN MATCHED THEN UPDATE
SET dst.age = src.age
dst.sal = src.sal,
;
In this way, you don't need to repeat what is essentially the same subquery in the GAME and WHERE clauses.
-
Problem with the MERGE statement
Hi all
We'll cover the following:
create table xx_test1 (invoice_id number, line_group_number number, LINE_TYPE_LOOKUP_CODE VARCHAR2(25) ,LINE_NUMBER NUMBER(15) );
Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,1,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,1,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,2,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,2,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,3,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,3,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,4,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,4,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,5,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,5,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,7,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,7,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,8,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,8,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,9,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,9,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,10,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,10,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,11,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,11,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,13,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,13,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,14,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,14,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,15,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,15,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,16,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,16,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,17,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,17,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,18,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,18,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,19,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,19,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,20,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,20,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,21,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,21,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,22,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,22,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,23,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,23,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,24,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,24,'TAX',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,25,'ITEM',null); Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,25,'TAX',null);
So, if we want to MERGE this table and update the lines with below:
merge into xx_test1 DST USING (SELECT LINE_GROUP_NUMBER, LINE_TYPE_LOOKUP_CODE, ROW_NUMBER() over(order by LINE_TYPE_LOOKUP_CODE, LINE_GROUP_NUMBER) as LINE_NUM from xx_test1 where INVOICE_ID = 131549 ) SRC ON (DST.LINE_GROUP_NUMBER = SRC.LINE_GROUP_NUMBER AND dst.LINE_TYPE_LOOKUP_CODE = src.LINE_TYPE_LOOKUP_CODE AND dst.invoice_id = 131549 ) WHEN MATCHED THEN update set DST.LINE_NUMBER = SRC.LINE_NUM ;
I get an error message:SQL error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
I don't know why I'm getting this. Any ideas?
Version: 11g
Kind regards
Alex
whenever I have this error I convert my fusion in a select to see what is duplication
select dst.LINE_GROUP_NUMBER, dst.LINE_TYPE_LOOKUP_CODE, count(*) from xx_test1 DST join (SELECT LINE_GROUP_NUMBER, LINE_TYPE_LOOKUP_CODE, ROW_NUMBER() over(order by LINE_TYPE_LOOKUP_CODE, LINE_GROUP_NUMBER) as LINE_NUM from xx_test1 where INVOICE_ID = 131549 ) SRC ON (DST.LINE_GROUP_NUMBER = SRC.LINE_GROUP_NUMBER AND dst.LINE_TYPE_LOOKUP_CODE = src.LINE_TYPE_LOOKUP_CODE AND dst.invoice_id = 131549 ) group by dst.LINE_GROUP_NUMBER, dst.LINE_TYPE_LOOKUP_CODE having count(*) > 1
you have 2 dst. LINE_GROUP_NUMBER, summer time. Combination of LINE_TYPE_LOOKUP_CODE this duplication.
-
Hi all
Let us examine below in Oracle 11 g:
create table xx_test1 (line_num number, line_group_num number, type varchar2(25)); insert into XX_TEST1 values('',1, 'ITEM'); insert into XX_TEST1 values('',1, 'TAX'); insert into XX_TEST1 values('',2, 'ITEM'); insert into XX_TEST1 values('',2, 'TAX'); insert into xx_test1 values('',3, 'ITEM'); insert into xx_test1 values('',3, 'TAX');
I want the line_number update based on type and line_group_num columns column.
So necessary result:
LINE_NUM LINE_GROUP_NUM TYPE ---------- -------------- ---- 1 1 ITEM 2 2 ITEM 3 3 ITEM 4 1 TAX 5 2 TAX 6 3 TAX
That means I want the sequence to be - items in the first place, only the lines of the TAX.
Line_group_number is the column that combines the tax line to the line item.
Any ideas?
Regrads,
Stoyanov.
Hello
user11340233 wrote:
Hi all
Let us examine below in Oracle 11 g:
- create table xx_test1 (type number line_num, line_group_num, varchar2 (25));
- insert into XX_TEST1 values (", 1,"ITEM");
- insert into XX_TEST1 values (", 1,"TAX");
- insert into XX_TEST1 values (", 2,"ITEM");
- insert into XX_TEST1 values (", 2,"TAX");
- insert into xx_test1 values (", 3,"ITEM");
- insert into xx_test1 values (", 3,"TAX");
I want the line_number update based on type and line_group_num columns column.
So necessary result:
- TYPE OF LINE_GROUP_NUM LINE_NUM
- ---------- -------------- ----
- 1 1 ARTICLE
- 2 2 POINT
- 3 POINT 3
- 4 1 THE TAX
- 5 TAX 2
- 6 TAX 3
That means I want the sequence to be - items in the first place, only the lines of the TAX.
Line_group_number is the column that combines the tax line to the line item.
Any ideas?
Regrads,
Stoyanov.
You can do this by using the ROW_NUMBER function analytical in a MERGE statement. For example:
MERGE INTO dst xx_test1
WITH THE HELP OF)
SELECT line_group_num, type
ROW_NUMBER () (ORDER BY TYPE, line_group_num) AS line_num
OF xx_test1
) src
WE (dst.line_group_num = src.line_group_num
AND dst.type = src.type
)
WHEN MATCHED THEN UPDATE
SET dst.ine_num = scr.line_num
;
This assumes that the combination (type, line_group_num) is unique, and none of these columns are NULL, like your sample data.
If this isn't the case, then the above statement needs to be changed a little, but only a louis577.
-
Hi guys,.
I have a question. I will develop a process with a table with two columns col1 and col2, as you can see below.
CREATE TABLE TEST
(
col1 INTEGER,
col2 INTEGER
);
Insert into TEST (col1, col2) Values (2, 23);
Insert into TEST (col1, col2) Values (30, 34);
Insert into TEST (col1, col2) Values (4, 3);
Insert TEST (col1) (43) values;
Insert TEST (col1) (15) values;
Insert TEST (col1) (50) values;
Insert TEST (col1) (4) values;
Insert TEST (col1) (12) values;
Insert TEST (col1) (100) values;
Original data:
col1 col2
2 23
30 34
4 3
43
15
50
4
12
100
I need to move data in col2 to the next line like this:
col1 col2
2
30 23
4 34
43 3
15
50
4
12
100
Then, perform a function (CORR) and move the data to the next row
col1 col2
2
30
4 23
43 34
3 of 15
50
4
12
100
Then, run a function (CORR) and moving the data.
And... so on.
Is it an effective way to move the data in col2 across the table without reducing the performance of the applications?
Col1 has 300 rows and the process will run the procedure described above, an average of 800 times.
Maybe someone has experience on this... This will help a lot.
Thanks in advance!
Hello
As others have said, there is no order integrated to the rows in a table. If it makes sense to speak of the 'first' or 'next' line, it is only in a context where an order is known.
Assuming that you don't have something in your table that indicates in what order they are in, you can use MERGE to do what you want.
You post CREATE TABLE and INSERT statements for your table, so I'll use the scott.dept table to illustrate. We will make a copy of the table scott.dept we can update:
CREATE TABLE my_dept
AS
SELECT *.
OF scott.dept;
SELECT *.
OF my_dept
ORDER BY deptno;
The output of the above query shows how the table looks like originally:
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTS NEW YORK
SEARCH 20 DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
Say now, we want to pass the value of the loc on each line to the next line, where "next" means in order by deptno; Like this:
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING
20 RESEARCH NEW YORK
30 SALES DALLAS
40 CHICAGO OPERATIONS
We can do it by using a MERGE statement:
MERGE INTO my_dept dst
WITH THE HELP OF)
SELECT DeptNo
, Trolling (loc) over (ORDER BY deptno) AS new_loc
OF my_dept
) src
WE (dst.deptno = src.deptno)
WHEN MATCHED THEN UPDATE
SET dst.loc = src.new_loc
;
(This assumes that deptno is unique).
If we execute the exact same MERGE statement once 2nd, then the table will look like this:
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING
SEARCH 20
30 SALE IN NEW YORK
40 OPERATIONS DALLAS
-
Oracle Version = Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Hi gurus
I have the following data samples:
Examples of data
As with a reference
(
SELECT class_id 100, to_date (May 1, 2008 ',' MON-DD-YYYY') eff_dt, to_date (May 1, 2008 ',' MON-DD-YYYY') ter_dt, amt 35000 FROM DUAL
Union of all the
SELECT class_id 100, to_date (May 1, 2008 ',' MON-DD-YYYY') eff_dt, to_date (July 31, 2008 ',' MON-DD-YYYY') ter_dt, 35000 FROM DUAL
Union of all the
SELECT class_id 100, to_date (August 1, 2008 ',' MON-DD-YYYY') eff_dt, to_date (March 31, 2012 ',' MON-DD-YYYY') ter_dt, 35000 FROM DUAL
UNION ALL
SELECT class_id 200, to_date (May 1, 2008 ',' MON-DD-YYYY') eff_dt, to_date (April 30, 2011 ',' MON-DD-YYYY "") ter_dt, 60000 FROM DUAL
Union of all the
SELECT class_id 200, to_date (May 1, 2008 ',' MON-DD-YYYY') eff_dt, to_date (March 31, 2012 ',' MON-DD-YYYY "") ter_dt, 60000 FROM DUAL
Union of all the
SELECT class_id 200, to_date (May 1, 2011 ',' MON-DD-YYYY "") eff_dt, to_date (March 31, 2012 ',' MON-DD-YYYY') ter_dt, 60000 FROM DUAL
)
SELECT * REFERENCE
;
Examples of data result
CLASS_ID, EFF_DT, TN TER_DT
100 05/08/01 05/08/01 35000
100 05/08/01 07/08/31 35000
100 08/08/01 03/12/31 35000
200 05/08/01 04/11/30 60000
200 05/08/01 03/12/31 60000
200 05/11/01 03/12/31 60000
I have these data in the reference table, and I want the following data in the reference table.
Information in the reference table
CLASS_ID, EFF_DT, TN TER_DT
100 05/08/01 03/12/31 35000
200 05/08/01 03/12/31 60000
Means system take min and max due against each set grouping in class then delete the remaining records and keep the only trace of min and max...
I tried to use Merge and perform the update and delete, but no luck... Thanks in advance
Concerning
Shu
Hello
Here's a way to use the MERGE:
MERGE INTO dst reference
WITH THE HELP OF)
SELECT MAX (ter_dt) OVER (PARTITION BY class_id) AS ter_dt
AVG (amt) over (PARTITION BY class_id) AS amt
ROW_NUMBER () OVER (PARTITION BY class_id
ORDER BY eff_dt
) AS r_num
, ROWID AS r_id
REFERENCE
) src
ON (summer time. ROWID = src.r_id)
WHEN MATCHED THEN UPDATE
SET dst.ter_dt = src.ter_dt
dst.amt = src.amt,
DELETE WHERE src.r_num > 1
;
If amt will always be the same for any given class_id, so it does not belong to the same table. If it is really always the same, then you can add amt to clause ORDER BY of ROW_NUMBER analytic and remove the other references to it.
-
Release of PL/SQL version 11.2.0.2.0 - Production
Hi gurus
You need assistance in question. I have the following data:
Sample data
drop table aa;drop table bb;
create table aa
(
cust_no number (5),
cust_name varchar2 (30)
);Insert in the NOA
(
Select 100, 'A' from two
Union of all the
Select 200, 'B' double
Union of all the
Select 300, 'C' of the double
);create table bb
(
cust_no number (5),
cust_caty varchar2 (15)
);
Insert into bb
(
Select NULL, 'Potential' from dual
Union of all the
Select NULL, 'Not Potencial' of the double
Union of all the
Select NULL, "Unknown" of the double
);Now, I want to update my bb with cust_id without no join table...
My required data should be something like below in the table of bb:
CUST_NO, CUST_CATY
100 potential
200 potential not
300 stranger
Please note that it doesn't matter what cust_no arrive at any cust_caty
Concerning
Shu
Hi, Shu,
Here's one way:
MERGE INTO dst bb
WITH THE HELP OF)
WITH aa_r_num AS
(
SELECT cust_no
ROWNUM AS r_num
AA
)
bb_r_num AS
(
SELECT cust_caty
ROWNUM AS r_num
BB
)
SELECT a.cust_no
b.cust_caty
Of aa_r_num one
JOIN bb_r_num b ON b.r_num = a.r_num
) src
WE (dst.cust_caty = src.cust_caty)
WHEN MATCHED THEN UPDATE
SET dst.cust_no = src.cust_no
;
The results I get are exactly what you posted:
CUST_NO CUST_CATY
---------- ---------------
100 potential
200 potential not
300 stranger
But there is no guarantee that the same cust_no at the same cust_caty when you run it.
As posted, which means that bb.cust_caty is unique and not NULL.
If there are N + X lines in the bb, but only N lines in aa, then only N lines in bb will be updated.
Why do you want to do "without no join"? If a join is the most simple, average the most effective to achieve the results expected, so why not use it?
If you really want to avoid the join, you can use a scalar subquery.
-
Find 'multuplets' in families - more complex cases
Oracle DB 11.0.1.7
I posted this earlier:
and understand my case is a little more complexSo I have the table of families and individuals. A family can live more then another State. It is also possible that the same family, based on its members, may have more family and an assigned ID.
drop table myfams;
drop table mypersons;
create table myfams)
number of family_id
person_id number,
State_ID number
);
create table mypersons)
person_id number,
date of date of birth,
number of number_born
number of cotwin_id
);
insert into mypersons (person_id, dob) values (1, December 1, 1980 "");
insert into mypersons (person_id, dob) values (2, 1 December 1980 "");
insert into mypersons (person_id, dob) values (3, December 1, 1960 ');
insert into mypersons (person_id, dob) values (4, December 1, 1950 ');
insert into mypersons (person_id, dob) values (5, December 1, 1981 ');
insert into mypersons (person_id, dob) values (6, December 1, 1981 ');
insert into mypersons (person_id, dob) values (7, December 1, 1940 ');
insert into mypersons (person_id, dob) values (8, December 1, 1980 "");
insert into mypersons (person_id, dob) values (9, December 1, 1980 "");
insert into mypersons (person_id, dob) values (10, December 1, 1980 "");
insert into mypersons (person_id, dob) values (11, December 1, 1950 ');
insert into mypersons (person_id, dob) values (12, December 1, 1980 "");
insert into mypersons (person_id, dob) values (13, December 1, 1980 "");
insert into mypersons (person_id, dob) values (14, December 1, 1981 ');
insert into mypersons (person_id, dob) values (15, December 1, 1981 ');
insert into mypersons (person_id, dob) values (16, December 1, 1950 ');
insert into mypersons (person_id, dob) values (17, December 1, 1960 ');
-This family has a pair of binoculars
insert into myfams (family_id, person_id, state_id) values (1,1,10);
insert into myfams (family_id, person_id, state_id) values (1,2,10);
insert into myfams (family_id, person_id, state_id) values (1,3,10);
insert into myfams (family_id, person_id, state_id) values (1,4,10);
-the family (based on family_id and its members) have more then a State residency
insert into myfams (family_id, person_id, state_id) values (1,1,20);
insert into myfams (family_id, person_id, state_id) values (1,2,20);
insert into myfams (family_id, person_id, state_id) values (1,3,20);
insert into myfams (family_id, person_id, state_id) values (1,4,20);
-This same family, from the same members, is in the same State just different family_id
insert into myfams (family_id, person_id, state_id) values (10,1,10);
insert into myfams (family_id, person_id, state_id) values (10,2,10);
insert into myfams (family_id, person_id, state_id) values (10,3,10);
insert into myfams (family_id, person_id, state_id) values (10,4,10);
insert into myfams (family_id, person_id, state_id) values (2,5,10);
insert into myfams (family_id, person_id, state_id) values (2,6,10);
insert into myfams (family_id, person_id, state_id) values (2,7,10);
insert into myfams (family_id, person_id, state_id) values (3,8,20);
insert into myfams (family_id, person_id, state_id) values (3,9,20);
insert into myfams (family_id, person_id, state_id) values (3,10,20);
insert into myfams (family_id, person_id, state_id) values (3,11,20);
insert into myfams (family_id, person_id, state_id) values (4,12,20);
insert into myfams (family_id, person_id, state_id) values (4,13,20);
insert into myfams (family_id, person_id, state_id) values (4,14,20);
insert into myfams (family_id, person_id, state_id) values (4,15,20);
insert into myfams (family_id, person_id, state_id) values (4,16,20);
insert into myfams (family_id, person_id, state_id) values (4,17,20);
-again, I want to update number_born and cotwin_id and see these results:
Select * from mypersons where number_born is not null;
PERSON_ID DOB NUMBER_BORN COTWIN_ID
---------- --------- ----------- ----------
1 1 DECEMBER 80 2 2
2 1 DECEMBER 80 2 1
5 DECEMBER 1, 81-2-6
6 DECEMBER 1 81 2 5
8 1 DECEMBER 80 3
9 1ST DECEMBER 80 3
10 1ST DECEMBER 80 3
12 1ST DECEMBER 80 2 13
13 1ST DECEMBER 80 2 12
14 1 DECEMBER 81 2 15
15 DECEMBER 1 81 2 14
Hello
Rade. Todorovich wrote:
Frank,
I think I found the cases where it fails:
/ * Case that fails * /.
insert into mypersons (person_id, dob) values (200502, to_date('09091977','MMDDYYYY'));
insert into mypersons (person_id, dob) values (189462, to_date('11251989','MMDDYYYY'));
insert into mypersons (person_id, dob) values (15739, to_date('07281986','MMDDYYYY'));
insert into mypersons (person_id, dob) values (213107, to_date('11251989','MMDDYYYY'));
insert into mypersons (person_id, dob) values (218949, to_date('05261978','MMDDYYYY'));
insert into mypersons (person_id, dob) values (213108, to_date('04131934','MMDDYYYY'));
insert into mypersons (person_id, dob) values (188995, to_date('11251989','MMDDYYYY'));
insert into myfams (family_id, person_id, state_id) values (100,189462,21);
insert into myfams (family_id, person_id, state_id) values (100,200502,21);
insert into myfams (family_id, person_id, state_id) values (100,200502,52);
insert into myfams (family_id, person_id, state_id) values (100,189462,52);
insert into myfams (family_id, person_id, state_id) values (100,213107,52);
insert into myfams (family_id, person_id, state_id) values (100,15739,52);
insert into myfams (family_id, person_id, state_id) values (100,218949,52);
insert into myfams (family_id, person_id, state_id) values (100,213108,52);
insert into myfams (family_id, person_id, state_id) values (200,189462,1);
insert into myfams (family_id, person_id, state_id) values (200,188995,5);
insert into myfams (family_id, person_id, state_id) values (200,200502,99);
Looked like in cases of triplets and I just checked and it's actually of twins where a same twin are twice under two different person_ids.
Now, in theory it maybe possible family 100 registered a 2 out of 3 triplets 213107 and 189462, but family 200 registered a 189462 triplets and 188995. It's so unusual, and I think that virtually impossible, may not be worth handling.
You probably have to handle, in any case. If you have 1 million person_ids, and only one of them causes an error of ORA_30926, then nothing is going to get merged.
What are the results you want from the new data sample? Do you want this?
PERSON_ID DOB NUMBER_BORN COTWIN_ID
--------- ---------- ----------- ---------
1 12/01/1980 2 2
1980-01-12 2 2 1
5 01/12/1981 2 6
01/12/1981 6, 2 5
8 12/01/1980 3
1980-01-12 9, 3
10 12/01/1980 3
12 12/01/1980 2 13
1980-01-12 13, 2 12
14 01/12/1981 2 15
15 01/12/1981 2 14
188995 25/11/1989 2 189462
189462 11/25/1989 3
213107 25/11/1989 2 189462
If so, here's a way to get it:
MERGE INTO dst mypersons
WITH THE HELP OF)
SELECT pt.person_id
COUNT (DISTINCT po.person_id) AS number_born
SUM (DISTINCT po.person_id) AS sum_person_id
OF mypersons pt
JOIN myfams ON ft.person_id = pt.person_id ft
JOIN fo myfams ON fo.family_id = ft.family_id
Mypersons in. ON po.person_id = fo.person_id JOIN
AND po.dob = pt.dob
GROUP BY pt.person_id
) src
WE (dst.person_id = src.person_id)
WHEN MATCHED THEN UPDATE
SET dst.number_born = src.number_born
dst.cotwin_id = BOX
WHEN src.number_born = 2
THEN src.sum_person_id - src.person_id
END
WHERE src.number_born > 1
;
Person_id is in the two families, 100 and 200, so number_born = 3, and cotwin_id is null for him.
However, its possible matches, 188995 and 213107, are only 1 family they are not in the same family between them, they only correspond to 289462, so that they have number_born = 2 and cotwin_id = 189462.
I see that you use TO_DATE in INSERT statements now; It's much better!
Maybe you are looking for
-
Hi, this is my first post OR so if I get something wrong please don't flame me In teststand, I have my mainsequence along another thread (the other thread is used to look for keyboarding)If I push escape on my keyboard, I want to use the goto command
-
My D: / drive (RECOVERY) is completely filled
My D: / drive (RECOVERY) is completely filled. Can I safely save everything on the disc and remove it out of there? Also, I'll be in the middle of some on my computer and for no apparent reason, my screen becomes blue and he said is 'dumping', I gu
-
How to delete Yahoo Search bar and the irritating pop-ups linking me looking for yahoo or articles or something that I'm not interested at all whenever I have point out, for my own benefit, anything in the Explorer window? These modules are a real t
-
problem importing file in moviemaker .vob
Hi, I hope someone can help me with the following problem: I record DVDs and try to import them into WMM. Usually, it is divided into 5 files .vob, VTS_01_1 to VTS_01_5. In the import of WMM, it recognizes VTM 01_2 5 and I can make a film with those
-
Problems with Manager.createPlayer)
Hello I'm new in the world of development of BB... I'm doing a simple application that retrieves a file from a URL .wav and it plays, but the process is stuck on Manager.createPlayer (URL). I ran the application using the debugger and when it comes t