I would like to convert a subselect to use an inner join?
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0I have the SQL below (it gives the correct data) using several sub selects I want to use in a PS query via the PS request handler. However, Manager queries PS will only a sub select when you create a query, but it will allow an inner join. So, I was hoping to rewrite it as a join but can not understand. Perhaps using a view would work? Or if it happens to be expert PS9.1 out there who might know an effcient way more to create the query that would be great as well. I have several versions of different trails of my SQL inner join if someone wishes to see those.
select business_unit,
ledger,
fund_code,
account,
foreign_amount,
open_item_key
from ps_open_item_gl a
where (business_unit, ledger, fund_code, account) in
(select business_unit, ledger, fund_code, account
from (select business_unit,
ledger,
fund_code,
account,
sum(foreign_amount)
from ps_open_item_gl b
where b.open_item_status = 'O'
group by business_unit, fund_code, account, ledger
having sum(foreign_amount) = 0))
and open_item_status = 'O'
and business_unit not in ('4110', '5301', '6501', '6602')
order by 1, 2, 3, 4, 6
Hello
956171 wrote:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
I have the SQL below (it gives the correct data) using several sub selects I want to use in a PS query via the PS request handler. However, Manager queries PS will only a sub select when you create a query, but it will allow an inner join. So, I was hoping to rewrite it as a join but can not understand.
I don't know what you mean by "select sub", or what exactly is the PS limitation.
Are you talking about the query nested in the IN clause? It is not necessary. The following is equivalent to what you posted:
select business_unit,
ledger,
fund_code,
account,
foreign_amount,
open_item_key
from ps_open_item_gl a
where (business_unit, ledger, fund_code, account) in
(
select business_unit, ledger, fund_code, account
from ps_open_item_gl b
where b.open_item_status = 'O'
and business_unit not in ('4110', '5301', '6501', '6602')
group by business_unit, ledger, fund_code, account
having sum (foreign_amount) = 0
)
and open_item_status = 'O'
order by 1, 2, 3, 4, 6
I move the condition 'and business_unit not in ('4110', '5301', '6501', 6602') ' in the subquery just for efficiiency.
I think you would need a subquery, even if you don't re - he writes as a join.
Perhaps using a view would work?
No doubt. Again, I know not what PS objects to, but you can probably hide in a vision where the PS can complain about this.
Tags: Database
Similar Questions
-
I would like to convert a ppt file
I would like to convert a ppt file
Start > programs > Office > Power Point
Kind regards.
-
I would like to convert a pdf file to excel.
Hello
I would like to convert a pdf file to excel.
In the pdf file, there are a few fields of multiple choice and I would like to know if the selected option is converted.
I have a version of Acrobat Pro XI test, and if it works I will buy it.
I've attached a file to show.
Kind regards
Pará
Hello
I solved the problem.
Find attached the link where I found the information:
Acrobat help. Collection and management of the PDF to form data
Kind regards
Father Anton
-
I have a ' aspir ' 5750-6414
I got a bad virus, but I did create recovery disk (4 or them)
I would like to recover my computer by using the recovery IMAGE.
The bootable disc, but it does not give me the option to use MY recovery disks. It gives only factury default of restore options.
I tried to restore my computer to the image I created when the computer was new that had a lot of my program, including ms word for hour.
Can anyone help?
Thank you. That's why presence. The person who set up my computer a few years ago gave me these discs and I assumed it was a picture. My mistake.
-
Hello my name is jose and I would like to know how can I use the adobe CAMERA RAW bridge because the use of bridge and the desire to open a raw image of the camera, I get a message that says: BRIDGE HAND aplicaion NOT ACTIVE. BRIDGE REQUIRES THAT A PARTICULAR PRODUCT HAS STARTED AT LEAST ONCE THIS FEATURE. I wonder what that means?
I use a 64 - Bit lapto operating system (windows 7).
Thank you
my email is: [email protected] If you send me the answer to my query
You must activate Photoshop.
Mylenium
-
I had more than 400 scanned documents of A4 format. But they are not of uniform size. Fortunately, they are all 300 dpi. They were created on a scanner. When opened in photoshop, they contain random patches that are transparent, although there seems to be no difficulty watching a player adobe themon.
My laptop had "GB of RAM and does not accept CS4 I have Photoshop CS3.» My javascript and photoshop are both restricted to the basic skills.
I want to set up each document on a white A4 format photoshop background of300dpi, as a layer, flatten it out and save it as a desired page.
As it is quite tedious, I have a script that will perform this task on a single file.
I would like to run this script on each file manually.
If possible, I would also like to put the individual pages in a folder and run the factual script on all the files in the folder.
Inmates or suggestions will be appreciated with gratitude
Thank you, peter
The script will process all files jpg, tif or psd, which are located in the selected folder. What format are the documents that you use?
-
I would like some advice on how to use my camera Canon A3400 IS brand new to start.
I just bought a Canon P & S EAST of A3400 camera and would like some general advice on how to start. I just want to read the comments of others who may have the same type of camera just for starters. The manual is difficult for me to understand right now.
Thanks a lot, this will give me a lot of things to read and try to understand to start. I appreciate and I believe that your slogan, "a skill is developed by constant practice with a passion to improve, not bought." Practice and the passion I have. Thanks again, RoseETucker
-
Despite the installation of a trial version of Adobe acrobat PRO XI yet his is no let convert me PDF files
Wants me to take out to pay for it
Looks like you are still using the player, even if you have installed Acrobat...
-
I would like to convert PDFs into Word and PowerPoint documents
Is there an easy way to do this?
Thank you
Joanne
Hi joannes72764535,
Yes, you can easily do this by using the Acrobat application, please refer to this document the steps Acrobat Help KB | Convert or export PDF files to other formats of file.
Let me know if you still have any questions.
Kind regards
Nicos
-
I would like to convert PDF to PowerPoint
1 - I am interested in the conversion of PDF files to PowerPoint, word, and excel.
When I reach the PowerPoint subscription is not included.
2 - is my membership good for all my computers?
Hi Melissa,
ExportPDF subscription allows you to convert PDF to Word, Excel, PowerPoint, RTF and various formats of any web browser supported on any computer.
Please let us know if you need more assistance.
Best,
Sara
-
I would like to convert a Labview 5.1 vi into a Labview 8.6.1 vi
The vi's drivers for a PCI based receiver RF called winradio card. The library is accessible here: http://www.winradio.com/home/downloadlabview.htm. I thank you for your time and any service, you can provide.
Andy P.
Hi Andy,.
Have fun...
-
I have fb2 (zip) files on my PC. I would like to convert it to the format fb2
Remember - this is a public forum so never post iIInformatiIon private such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Extract the fb2 file in the zip file using WinRAR
http://download.CNET.com/WinRAR-32-bit/3000-2250_4-10007677.html
If this post answers your question, click mark as answer .
-
Hello, I would like to convert a pdf in English in Spanish
I have adobe x pro... .Windows 7
Hi cleml65339742,
Sorry, but there is no language translation option in Adobe Acrobat X Pro.
Kind regards
Rahul
-
box here I discover a swithbox to control my monitor while using 2 computers. I'm transferring my old files on my new computer using the easy transfer cable and they keep telling me that I have to have two computers up and running. Old computer has Windows XP, new computer a HP 2100 P6 has windows 7 installed. Electric box will do the trick.
Thanks in advance
I don't understand what you personally define as a Cabinet.
Perhaps mean you a KVM switch. This is a feature that allows you to use the same keyboard, video (monitor/screen) and the mouse for multiple computers. It only allows you to transfer data between PCs.
If you want to use a cable EasyTransfer, you will need to follow the instructions carefully and to the letter. One of the key points in the operating instructions is the condition for two network PCs to run at the same time.
-
Original title: re-install Windows 7
Hello. I recently built my own PC and installed a purchased copy of Windows 7 hard disk. I'm upgrading to an SSD 120 GB and I was wondering if there was a way completely erase my old hard drive for all files and all re - install windows using my CD key and product. I heard that once you use the product key, the copy of Windows is 'married' to this hard drive and the key cannot be used anywhere else. Is this true? Basically, I'm doing a clean install on this new SSD. Thank you.
Not at all, you can erase and reinstall Windows as many times as you want as long as you have the product key. The only restriction is that the key can be used only on one computer at a time. Unless this key is used somewhere else, you can install a billion times. The key is what you pay for, not the CD (in fact, if you lose the CD you can download another copy, but you need to keep your secret key).
In any case, the process is simple: just put in the CD and restart and follow the steps to install. When you get calls that lead to install on, you have options to format (erase) the drive and basically start over completely.
The only real thing you need to know is that, after the installation, you will need to go to the computer manufacturer's website and download the drivers for your computer. According to the computer, you may need to get the driver of network from another computer and copy it using a flash drive (if the network needs the driver before it can connect).
Maybe you are looking for
-
Custom device: how to change the channel icon in NI Veristand?
Hello Board, I build peripheral customized for third-party product for my RT controller. They work well and properly. One thing that bothers me is: icon of the chain as shown in the figure below, with the red zone. How can I change the icon of the ap
-
cannot open a session on the computer saying low memory system
I got a blue screen coming up on top of my computer, after much frustration, I rebooted my windows xp. Everything worked very well but I couldn't load all my drivers including my driver to pick up Internet. I was just trying to download updates for t
-
Unchecking read only attribute on files and folder, subfolders does not persist
I'm trying to disable the read-only attribute in the properties of a folder in the file system. I uncheck this attribute, I say, too, that he would do that by clicking on apply, then it does to all files, folders, and subfolders... etc and it does.
-
Network with the Imac and W-Vista
I want to create a network with my new Imac. being the center of the network. I have OS Snow Leopard on Imac. The computer windows vista laptop will be the 2nd computer.
-
D - Link USB Hub DUB - H7 works do not correctly with Windows 8
I am also having the same problems. Very recently, I went from 7 to 8.1 and with the operation of the steam, the sound of connect/disconnect repeats about every 10 seconds. If I disconnect the D - Link DUB - H7 sound no longer appears. I could live w