Query to find the number of attached document
We've been checking out some of the attachments in the database and identified a number that are are very large, so we want to check what they are. How can I find the number of invoice/order/request for registration of the ebs if all I have is the info from fnd_documents & fnd_lobs.
You can collect the size of each by running this script:
Select fad.entity_name, sum (DBMS_LOB. GETLENGTH (FL.file_data)) SIZE_BYTES;
Count (*)
of fnd_documents fnd_lobs fl, fnd_documents_tl fdtl, fd, fnd_attached_documents ADF
where fd.media_id = fl.file_id
and fd.document_id = fdtl.document_id
and fd.document_id = fad.document_id
and fl.program_name is null
and fl.expiration_date is null
and fd.datatype_id = 6
and fdtl.language = 'en '.
and (fad.entity_name like '% po2'
OR fad.entity_name like '% REQ')
Fad.entity_name group;
You can find requisitions affected by the following:
SELECT THE PH. SEGMENT1, PH. PO_REQUISITION_LINES_ALL PL, PH PO_REQUISITION_HEADERS_ALL REQUISITION_HEADER_ID
WHERE PL. REQUISITION_HEADER_ID = PH. REQUISITION_HEADER_ID
AND PH. REQUISITION_HEADER_ID in)
SELECT PK1_VALUE FROM FND_ATTACHED_DOCUMENTS
WHERE ENTITY_NAME = 'REQ_HEADERS');
SELECT THE PH. SEGMENT1, PL. REQUISITION_LINE_ID
OF PO_REQUISITION_LINES_ALL PL,
PO_REQUISITION_HEADERS_ALL PH
WHERE PL. REQUISITION_HEADER_ID = PH. REQUISITION_HEADER_ID
AND PL. REQUISITION_LINE_ID in)
SELECT PK1_VALUE FROM FND_ATTACHED_DOCUMENTS
WHERE ENTITY_NAME = 'REQ_LINES');
Please mark answers 'Proper' or 'Useful', as appropriate, to facilitate solutions to the other participants of the RTO.
If you do not see these buttons, open the chat in a new window/tab by right clicking on the object and choose "open in a new tab.
You should see Correct and helpful icons below each post.
Tags: Oracle Applications
Similar Questions
-
query to find the dependent task, attached to the task on a response in OIM 11 g
can someone help me to do a sql query to find the dependent task, attached to the task on a response in OIM 11 g
Published by: user13331347 on Sep 3, 2012 14:09Use under query to find the dependent task in OIM 11 g: -.
Select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm the rgm
where pkg.pkg_key = tos.pkg_key
and tos.tos_key = mil.tos_key
and mil.mil_key = rsc.mil_key
and rsc.sta_key = sta.sta_key
and rgm.rsc_key = rsc.rsc_key
and rgm.mil_key = mil2.mil_key
order of pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name -
query to find the number of dates
Hi all
I need assistance in creating a query. Ask the details I have given below.
Table:
Create the table emp_record (emp_id number, emp_join_date date);
insert into emp_record values (1, 1 June 14 ');
insert into emp_record values (2, 26 May 14 ');
insert into emp_record values (3, 16 May 14 ');
insert into emp_record values (4, 14 May 14 ');
Suppose I ran the query with sysdate, we need to subtract the date of sysdate, then a report should be prepared in function number how many have subtracted values sysdate below 0 to 3 days, 3-6 date.
Output should be like
0 - 3 3-6 6-9 days more than 9 days
1 0 1 2
Please help to write this query. Thank you
Hello
Do not essentially repeat the same CASE expression with the same types of calculations for each column. You can do the job with a CASE expression, like this:
WITH got_group_id AS
(
SELECT THE CHECK BOX
WHEN emp_join_date< trunc="" (sysdate)="" -="" 8 ="" then ="">
WHEN emp_join_date< trunc="" (sysdate)="" -="" 5 ="" then ="">
WHEN emp_join_date< trunc="" (sysdate)="" -="" 2 ="" then ="">
0 OTHERWISE
Group_id END AS
Of emp_record
WHERE emp_join_date<= sysdate ="" --="" if="">=>
)
SELECT *.
OF got_group_id
PIVOT (COUNT (*)
FOR group_id IN (0 '0-2 days'
, 3 AS a "3-5 days.
6 as a "6-8 days"
, 9 as "9 or more days.
)
)
;
It will be much easier to maintain when needs change.
ED mentioned, using a string, 1 June 14 ' in a place where we expect a date is just a matter of trouble. 2-digit years are too.
-
query to find the number of contract coverage
Hi gurus,
I have a requirement to create a PO report that displays all the details in. with the hedge contract number. Please specify the query or advice on how to find this agreement number of coverage.
Nestorpo_headers_all. Segment1
-
SQL query to get the number of days monthwise
Hello
I'm new to sql, can someone please tell me query to find the number of days between the two dates months wise.
say
FIRSTDATE last date
21/03/2011-25/06/2011
March April May June
9 22 23 18Hello
Welcome to the forum!
Here's one way:
WITH all_dates AS ( SELECT start_date + LEVEL - 1 AS a_date FROM ( SELECT TO_DATE ('21/03/2011', 'DD/MM/YYYY') AS start_date , TO_DATE ('25/06/2011', 'DD/MM/YYYY') AS end_date FROM dual ) CONNECT BY LEVEL <= end_date + 1 - start_date ) SELECT TO_CHAR ( TRUNC (a_date, 'MONTH') , 'fmMonth YYYY' ) AS month , COUNT (*) AS num_days FROM all_dates WHERE a_date - TRUNC (a_date, 'IW') < 5 GROUP BY TRUNC (a_date, 'MONTH') ORDER BY TRUNC (a_date, 'MONTH') ;
What is a 'working day '? I guess you mean every day except Saturday or Sunday, but the query aboveare sometimes figures less than you have asked:
MONTH NUM_DAYS --------------- ---------- March 2011 9 April 2011 21 May 2011 22 June 2011 18
Are a few days working on Saturday or Sunday? How do you get the 22 working days in April 2011 and 23 in may?
SQL is good at obtaining results with a variable number of rows, but you have to say exactly the desired number of columns when you write the query.
If you really need the output of the way you said, with any number of columns, then watch in swing or a grouping of the chain . See the FAQ forum
https://forums.Oracle.com/forums/Ann.jspa?annID=1535
"4. How can I convert rows to columns. -
Hello
SQL query to find the total number of source based nonsource passangersbetween source and destination station and passenger station on the same chekindate.
Please help on this script and let me know if you need more details.
---
You use a SELECT statement. Let me know if you need more details.
-
How can I find the number of users returned by cfldap query?
How can I find the number of users returned by cfldap query?
I'm not allowed to do something like:
< cfif ArrayLen (results.rows) WG 1 >
Then, I get an error:
faultCode:Server.Processing faultString:' unable to invoke CFC - class type object coldfusion.tagext.net.LdapResultTable can use table ' faultDetail: "
Thank you very much for all you can shed light
Expand on Dan's response.
#results. USNCreated # is a reference to the entire column. This shortcut is allowed inside of a
or a loop. But if you want to access the record set directly outside one of these structures of loop, you must use the query.column [full row] or ["column"] [rank] query syntax. THAT IS TO SAY
-
HP PSC 2410-how to find the number of pages
I bought a PSC 2410 opportunity and would like to know the total number of pages. Any ideas?
Hi @jay2769,
Thank you for your super fast response. Please see these links and print a self test page and check if it displays the number of pages in the printer.
As part of the Toolbox (link 3) under one of the tabs, you may find the number of pages for the printer.
Please let me know how it goes. To simply say thank you, for my efforts to help, please click the "Thumbs Up" button. If you need more assistance let me know and I will gladly do whatever I can to help. If it helps, please mark it as "acceptable Solution" as well.
Please take care and have a nice week ahead.
-
How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?
See if this application works for you > https://itunes.apple.com/us/app/image-size/id670766542?mt=8
-
How can I find the number of entries on a Web site when you use 'find '?
I press Ctrl + F, the "Find" option appears. I type in a text, the 'Search' tab does not show the number of entries. For Firefox 25.0.1, is it possible to find the number of entries using 'find '? This is really essential.
Thanks for your help!
Can I afford too, for future versions of FF, the number of entries found in a web page by using the Find must be indicated.
I'm sure that you need an add-on for that. Maybe:
https://addons.Mozilla.org/en-us/Firefox/addon/findbar-tweak/
-
How do you find the number on a mid 2009 MacBook AIR
How do you find the number on a mid 2009 MacBook AIR
Serial number? Model number?
-
How to find the number of data items in a file written with the ArryToFile function?
I wrote a table of number in 2 groups of columns in a file using LabWindows/CVI ArrayToFile... Now, if I want to read the file with the FileToArray function so how do I know the number of items in the file. during the time of writing, I know how many elements array to write. But assume that I want the file to be read at a later time, then how to find the number of items in the file, so that I can read the exact number and present it. Thank you all
Hello
I start with the second question:
bytes_read = ReadLine (file_handle, line_buffer, maximum_bytes);
the second argument is the buffer to store the characters read, so it's an array of characters; It must be large enough to hold maximum_bytes the value NULL, if char [maximum_butes + 1]
So, obviously the number of lines in your text tiles can be determined in a loop:
Open the file
lines = 0;
While (ReadLine () > 0)
{
lines ++;
}
Close the file
-
P2055 printer: how to find the number of pages printed on hp2055 a toner cartridge
I would like to know where to find the number of pages printed on my toner cartride existing.
Hello
Click the Configuration button and select reports, and then select status supplies.
Expiration report include the number of pages printed and about remaining for the specific Toner Cartridge.
Shlomi
-
How can I find the path to a document in microsoft word?
Open the document, then do a "save under". That will show you in the place of the document came.
I hope this helps. Good luck.
-
Can someone help me please to find the number of sms sent from blackberry smartphones?
Hi all
I'm new to the blackberry smartphone application development. My requirement is to manage the sms sent from a blackberry smartphone like finding the number of SMS messages sent, the destination not like that. I tried running messagelistener, sendlistener and outboundmessagelistener, but something did not work well. So can someone please help me to solve my problem?
FYI: 1. I've implemented outboundmessagelistener but couldn't find a way to add this port for listening to my request.
2. I set up sendlistener and added to my application of the method SMS.addSendListener which does not also carry out my requriement.
So, please help me if you have an idea in these aspects.
Thank you
Sanath
FOR INFO:
Import net.rim.blackberry.api.sms.OutboundMessageListener;
SerializableAttribute public class MainClass extends UiApplication implements OutboundMessageListener
{
Public Shared Sub main (String [] args)
{
PAP MainClass = new MainClass();
To make the application enter the thread of events and start treatment
messages,
We invoke the enterEventDispatcher() method.
theApp.enterEventDispatcher () ;}
public void notifyOutgoingMessage (message Message)
{
If (this instanceof text message)
{
Here you can not manually counting the SMS
}
}
Maybe you are looking for
-
How to fix the error of Labview 2016 (32-bit) on Windows 10 database.
Hello I have software to read/write of labview (32-bit) database, which works fine on windows xp 2000 / 7 (64-bit). But it is not stable 10 (64-bit) Windows at all. It pops up an error on most of the time. Please see the attached database VI. After
-
CFS3 hangs upwards and will not stop running.
CFS3 worked fine with Vista, but began to hang. Upgraded to Win7 and it worked fine until I defragmented the drive and now it freezes and will not be cut. I even removed the CD and rebooted the system, and I can't restart the game because it tells an
-
Internet shortcut Shell Extension DLL
What is "Internet shortcut Shell Extension DLL? Sometimes when I try to install a new program, I get the message: "How do you want to open this file? Then, it shows a screen with the message "Internet shortcut Shell Extension DLL." But when I click i
-
The songs are a random mix of many / most of the albums that I backed up on my system. What happened twice, but the second time that the kitten was not involved and the list, various songs from the first game, just showed. I really like this and I
-
Got this from an estate sale and I was told that if he didn't ask for validation, it is probably wrong. Program is working well and do not ask for validation.Can you please confirm this or show me how to check registration / activation serial number