Select all siblings if any child is modified and recalculate qty.
Hi All,
I am in a following situation.
with sales as
select 1025 CUST_ID, '23239D' ITEM_ID, 1 qty_ord, 1 qty_Ship, 1 qty_Cancel, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') load_ts, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') updt_ts from dual union all
select 1025, '3434h', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), sysdate + 1 from dual UNION ALL
select 1025, 'sku324', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual union all
select 1025, 'TRL.33', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual union all
select 1025, 'RTL56', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual union all
select 1025, '34fgh', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual union all
select 1027 CUST_ID, '23239D' ITEM_ID, 1 qty_ord, 1 qty_Ship, 1 qty_Cancel, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') load_ts, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') updt_ts from dual union all
select 1027, '3434h', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual UNION ALL
select 1027, 'TRL.33', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual union all
select 1027, 'RTL56', 1, 1, 1, TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/08/2013 09:59:25', 'MM/DD/YYYY HH24:MI:SS') from dual
select * from sales
where updt_ts > sysdate
Now in the above table if any record is modified then the UPDT_TS will be updated with sysdate.
And every morning an ETL job runs to identify the changes in the above table, While for changes only one record is updated with the Updt_ts. But the requirement is to write a select Query which would select all siblings for any change in the Updt_ts for a given CUSTID. Please let anyone need more information.
The select query returns only 1 record with ITEM_ID = 3434h, but requirement is it shoud return all siblings associate with cust_id 1025
Hi,
Thanks for posting the sample data; that's very helpful.
Don't forget to post the exact results you want from that data, and explain how you get those results from that data.
See the forum FAQ: https://forums.oracle.com/message/9362002
Define any special terms you use in the explanation, such as "sibling". How can you tell if 2 given rows are siblings or not?
If being a sibling means having the same cust_id, then maybe:
SELECT *
FROM SALES
WHERE cust_id IN (
SELECT cust_id
FROM sales
WHERE updt_ts > SYSDATE
Of course, if updt_ts is always set to SYSDATE when a row is modified, then updt_ts > SYSDATE will never be TRUE in a query run later (unless you're resetting the clock on the database server).
Similar Messages
-
Is there a way to select all emails at once on the iPad and then delete them at one time?
Is there a way to select all emails at once on the iPad and then delete them at one time?
Tap on the edit button at the top right of the email list. This will let you select the emails to delete, once all are selected, tap on the bottom right button that says delete to delete them all at once.
-
Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site.
I opened up my muse site and somehow Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site. It makes me a bit worried.
Here's what I've done since opening the site without a problem:
I used the in-browser editing feature to change simple numbers on a single page - the home page - I got the regular notice to review and update - that worked with no problems.
I have added several Muse-Themes widgets/templates/tools
I've had a computer crash that required a hard re-boot to correct, Muse and this site were running at the time. (now that I think about it, this might be the problem)
I don't recall whether Muse CC has updated in the last week (since it worked correctly for me)
I run anti-malware software and virus protection - both of which run in realtime scanning internet connection, file downloads, etc.
Can someone assure me that everything is OK - that sometimes this happens?
My next step as I leave here is to login to my site and check file sizes to see if there's a significant difference...yes, I'm worried about viruses - I have great software but all software can be overcome by determined (and annoying) people.
thanks for your attention to this and hopefully everything is just fine if a bit glitchy. I can work with glitchy :-)Thank you Akshay for replying so quickly. Lots of work to do then on my part.
Is there a list of CC apps that have been updated to their 2014 versions, so that I can check that I have all the updates?
Many thanks,
David Perkins
(Brighton, UK) -
Help! I've restarted my macbook like ten times and it seems not working anymore!
Reboot and hold down the command-r keys into the Lion Recovery Disk. Select Disk Utility and run Repair Disk.
-
I have had my ipad2 for over a year and this is the first time I have suddenly lost emails without warning. My inbox, trash and Sent all emptied leaving only emails I had received in the last 24 hours. Have no idea where they have gone or whether this may happen again. Did not have iCloud.
Try this:
Settings > Mail Contact Calendars
Tap your mailbox
Tap Mail Days to Sync
Choose no limit -
How do I "Select All" email messages at once for deletion rather than touching each one?
I receive many emails each day and many of them I would like to delete all at once. But the only way so far I have been able to figure out how to do that is to manually select each and every one of the emails I want to delete then hit delete.
That is fine when I only have 5 or 6 email to get rid of, but I regularly have anywhere from 50 to 200 at a time to delete.
I cannot locate a "Select All" option in any of the menus.
Any Ideas?
Thanks
Jerryfrom within the inbox, sent, trash:
menu/select, menu/select all, delete. -
Adobe X - How to select all text in a file
I have a feeling this is a dumb question, but I need to select all the text in a pdf file and I can not figure how to do it with Adobe X. It was very simple in previous versions. Any answers would be greatly appreciated!
mathguy06ariel0 wrote:
why are you sending this question to me
Nobody is sending anything to you.
Did you subscribe to the forums accidently? -
End User SPAM Quarantine checkbox to select all messages not working
We are running SPAM Quarantine on M670 running 8.1.0-476 and accessing with Internet Explorer 9.0. After logging into the SPAM Quarantine there is a top row check box that normally we can check to select all messages. This stopped working in IE for us, any idea what setting/option we could adjust to enable it again?
In Chrome 29, FireFox 23 it works as expected.
JasonI think this is a know bug in 8.0, see below:
CSCuj42166
Selecting all messages in ISQ at once not possible with IE 8.0/7.0/6.0
Symptom:
When accessing the spam quarantine on ESA using IE 8.0/7.0/6.0 and trying to select all messages at once, an error occurs and no message is checked. At the bottom of the browser we see an "Error on page"
Conditions:
ESA running 8.0.0-671 and Internet Explorer 8.0 (same valid for 6.0 and 7.0)
Workaround:
Using a different browser to access the Centralized Spam Quarantine like for example Safari, Mozilla Firefox, Google Chrome, Internet Explorer 9
Further Problem Description:
Details
Known Affected Releases: (2)
8.0.0(Venetian)-671 | 8.5.0(FourQueens)-0
Known Fixed Releases: 0
Release Pending
Product: Cisco Email Security Appliance -
Select All doesn't seem to work?
I'm trying to select all photo's from last download to move to a new folder, but it doesn't work. It used too!
Also when sharing for email I can't select all as a usual click on one and drag to others i wish to select. Always used to be able to do this.
Any thoughts?Paige
There are many, many ways to access your files in iPhoto:
*For Users of 10.5 and later*
You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
Uploaded with plasq's Skitch!
(Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
You can access the Library from the New Message Window in Mail:
Uploaded with plasq's Skitch!
*For users of 10.4 and later* ...
Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
*If you want to access the files with iPhoto not running*:
For users of 10.6 and later:
You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
For Users of 10.4 and later:
Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
Other options include:
1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
Regards
TD -
How can I select all messages in either my Inbox, Trash and /or Bin in one go to delete them all in one go. I currently have 3000+ unwanted messages in my Bin
Click on the inbox then Edit>Select All (if you are using Mail, if not you'll have to tell us which mail program you use) repeat in other mailboxes as needed.
-
Using a JCheckBox to select all...
In my program there is a window which contains a panel which has an array of jcheckboxes in it, within another panel on this frame I want to have a single check box that when selected will select all of the checkboxes in the array and when unselected will unselect all fo the checkboxes in the array. Does anyone know how to do this?
So I've stumbled upon an answer to my own questions so I thought I would share it in case anyone else comes across the same issue. In this code the array "thelist[]" is an array of checkboxes:
final JCheckBox selectall = new JCheckBox("Select All",true);
selectall.addActionListener(new
ActionListener()
public void actionPerformed(ActionEvent event)
if(selectall.isSelected() == true)
for (int i = 0; i < thelist.length; i++)
thelist.setSelected(true);
else
for (int i = 0; i < thelist.length; i++)
thelist[i].setSelected(false); -
Hi Cimmunity
as you often traval and as you say have a lot of emails: how do you delete them in masses like bulk delete? on my old blackberry (newstes except z10) I had the option to "delete all before (...) date" in the context menu and could delete 1500 emails with one tap. do you know how to do this now? there is no such function, one have to tap and mark every single email, even if there are 2000!!!!! crazy!!
thanks a lot!!
BB: please urgently add the feature again...!!!! I have a imap account with about 200 emails a day which are just copies of enterprise mail and need to delete hundreds every day. I can not tap and select all the single mails one by one and then delete.
Solved!
Go to Solution.Go into the hub, select email account, Just under the blue email account, click and hold the date bellow it , slider pops on the right, click on Trash can(delete prior).
-
Modify and add new field in standard Purchase Order script
Hi All,
I have some problem with Modify and add some new fields in Standard Purchase Order script. From ME22n transaction code it display PO detail. In <b>item detail</b> with <b>condition</b> tab all data will display in Currently PO script output.
But I want to display ME22n->Item Detail->Invoice->Taxes Data. how to display this data in standard PO script. All data are fetch from <b>Structure</b> like ( KOMV,KOMVD..etc) then How it can be Display?
Waiting for Replay.
Himanshu Patel.Work with an Abaper.Tell your requirement [ addition of a field] and ask him to include this field by using the functionality " Field Exit".
-
MODIFY and SAVE_TRANSACTION not working for ZONE BO
Hi
I am trying to add/delete location in transportation zone through MODIFY and SAVE_TRANSACTION but the update is not happening in database. I have done deletions and additions in other business objects but for transportation zone it is not working properly. Is something wrong with BO configuration ?
Procedure that I am following for deletion of zone:
1. Read Zone with querybyelements method
2. Read locations for this zone using retrieve_by_association method in edit mode
3. Fill modification table with deletion indicator and appropriate values for location
4. Call method Modify and then save_transaction.
I followed similar procedure for adding/deleting region in transportation zone but this also doesn't work.
Thanks
AnuraagHi Anuraag,
In TM you should open the transaction /SCMTMS/ZONE. Here you select the zone you would like to modify and you execute the changes you would like to make.
Regards,
Nico. -
Is there any integration between Payroll and AP or Cash Management?
Hi All
Is there any integration between Payroll and AP or Cash Management?
Regards
Rahmanand that document refers to checkwriter as bridge between Payroll and Cash Management.
Q: But how many legislations have a checkwriter?
A: Only a very few.
So that is why i replied 'not really' in the beginning of this thread.
Maybe you are looking for
-
Hi! Yesteday a retoucher here at work came to me wondering if I could do something about his stalled Photoshop. It was read in Activity Monitor and had been like that for several minutes. I think he tried to save or something. Can someone take a look
-
Every time I run software update, after download and install, after it trys to restart, it says: "Update could not be expanded and may have been corrupted during download. Update will be downloaded and checked again next time Software Udate is run."
-
HI Experts I want to CHECK (Tick) Open Item Management Check-mark in FS00 (Bank GL) for the entries which have already been entered J/v's . For that I found a table BSEG and the field is XOPVW. If I done this directly in Table will affect to any othe
-
Oracle Service Bus to IBM MQ v7.0 Integration Issue ISO-8859-1 Encoding
Hi, This is the issue we badly struggling with for a few days.. I"ve a MQ proxy service listening to MQ REQUEST queue and when message is arrived to proxy, do some service callouts to local protcol proxy services and reply back to MQ REPLY queue on t
-
As stated in the title, I installed ITunes 11.1.1.11 yesterday. I endeavored to synk my Iphone 4 today to update calendars and addressbook, but did not see in ITunes any function to accomplish this, as it did not initiate automatically, as in the old