query data values abse, and going to a pdf form
query data values abse, and going to a pdf formHello
Hello, I have this html report I wrote out of a report.
now, I am assigned to pass the same fields on a pdf form so that the fields in the form of adaobe can be filled or the term pre-fill the form.
can someone help me get started.
first of all, I would like to know if it was possible.
Second, what do I need get started (Tools)
third how to do this.
I'm really confused at this point.
can someone give me advice on how to deal with this theme?
It may be using Adobe Acrobat Designer is bundled with Acrobat
7 Professional pro. It uses the XML to create and fill out forms.
If you had the time, you can also create a
their loan and just pass the info to it, if it automatically generates the PDF file on the
fly.
Tags: ColdFusion
Similar Questions
-
Problems with registration and send information in PDF form
Hello
I try to make a PDF in Indesign CS5 form, exporting in format PDF, Acrobat 9 Pro, opening and get the form in order to send the info I type in the fields.
So far, I've had no problems do shape, exporting, open it in Acrobat 9 Pro, get Acrobat 9 Pro to recognize the fields and save the form.
However, I had opened the form and filled it and it attached to an email, and when I received the email, the form was empty.
How can I get the form to save the data, so it can be sent by electronic mail?
Thanks for any help.
Phil
(Acrobat Pro and Pro Extended) Choose advanced > extend features in Adobe Reader.
I sort of solved the problem. I tried to use the above sense, and it seems to have solved the problem. I don't seem to get the message of not being able to save more and can send a PDF form that retains the information entered in the form.
Thanks for all who made suggestions.
Phil
-
Display the date current system and the time in a form
Hello experts around the world.
I have this little minor challenge I'm having trouble in the corners.
I have a form and I want to display the date current system and time so when I save the form his record with the date displayed.
I tried sysdate, & sysdate and & sysdate. in the default part with static text with memories of State meetings.
So any help or suggestion would be a great help :)
Thank youHi kevin
write the script in the HTML header below.
It will give at once, you can set this variable in the variable text box element.
or else check the below link in java script
http://www.McFedries.com/JavaScript/DateTime.asp
see you soon,
Shan -
Hello people.
If I'm in the wrong forum, might well want to suggest a more appropriate forum?
It is a pretty basic question.
I downloaded the SDK and watched, but I'm still a little uncertain. Simply because there is a ton of information to this site, and it's all new to me.
I have a Visual Studio MFC application. (Visual Studio 2008)
I want to change the application to read a PDF form to fill out, and I want to programmatially fill in some of the data in the field as it appears on the screen. This could be considered writing a PDF file, but I think it's only complete, because I can do this with Acrobat Reader. I assume that there is an API available to do this.
I saw something on IAC, then maybe that where I need to study.
I'm the developer. I need to buy Adobe Acrobat? Or is the right drive for this?
My customers will need to purchase Adobe Acrobat? Or the drive will be enough?
It's one thing for me as a developer to buy the tool to improve enforcement, but another question, if I go to the end users and tell them that they need to buy and install Adobe Acrobat.
I'm not afraid to have a discussion, I just want to know ahead what debate, I need to have.
Are there different APIs available for different Windows OS? One for XP for Vista 32-bit, one for Vista 64-bit, for Windows 7... etc.
Or is this the same way, regardless of the platform?
I'm looking for advice.
All would be appreciated.
Thank you
The only way to fill a form in Adobe Reader is to use the file in FDF or XFDF format. They are text-based formats that you can put the form data and a link to the PDF document in and then ask the REader to open it (and the associated PDF file) upwards and fill automatically.
You can't poll drive for more information, however.
-
Get and opening / showing a PDF form 11 GR 2
Hi all
Forms 11 GR 2 - db 11 GR 2 - Fmw 11 GR 2
What is the best way (in terms of performance) for the table of the column a Blob (PDF) and view it in Oracle Forms?
(1) WEBUTIL_FILE. DB_TO_CLIENT
(2) to set up and use the wpg_docload.download_file DAD
(3) Java Beans
BLOBs are PDF reports (stored destination Unpllugable b). and I need to read and display often
Thank you
db_to_client first reads the blob and sends it in junks to the customer; wpg_docload is not that. So if network loops are a concern of yours, then wpg_docload maybe a little more fast.
If you do not directly connect to the database using JDBC in your custom JavaBean you will find especially rewrite the same functionality as webutil_file.db_to_client, so unless you use JDBC (which could introduce a load of other problems) I don't think that's what you want to do. And I would not connect via JDBC from bean either.
Performance wise IMO should not be much difference between wpg_docload and webutil (although you could test this assertion of mine), so I guess it is really what you like the most. The document table feature requires you to various objects get stuck in only one table while webutil does not require a specific structure of the table that contains your blob; However webutil only usable in forms so that you can view / transfer your blob very easily in any tool that is able to make HTTP requests.
For my part it would be through wpg_docload, but especially because we do not use webutil, more you have a strong possibility that I can (and probably should) make use of the functionality in another tool as well.
see you soon
-
Using 'New data value reference' in a loop
Hi all
I just read on the data value references (DVR?) and I'm trying to use them with overall functional (see table).
I don't think that I'm just doing. The final goal is a producer/consumer nickname. My concern is that I don't feel the implementation of the new primitive data value reference and re-stuffing the result in the FGV, should occur in each loop.
Of course I could "spread" data with a single gueue element (where the queue of new data would take place each loop). I just thought that I would play with them.
Beavercreek wrote:
I think that we defend the same point, but I can't seem to understand why this does not work the way I expected. I discovered the DVR (and queues) as a pointer, simply a way that the other vi can know where the data is located. The data that we are after is here. So, why Ch1 does not work in the data_reader.vi?
If we can get Ch1 to work data_reader without re-creating and re-writing of the reference in the FGV each pole (what does Ch2), we find no more what is wrong with my vI or I'm going to learn something that is still beyond me. I hope to hit me in the head this afternoon still
You are missing a fundamental idea: the function you call creates a reference that points to a specific value. To actually interact with this value (read/write), you need to use the structure of the International preliminary examination. At this time what you are creating a single reference for ch1 (which do you nothing with) and creation of multiple references to ch2 (where at each iteration that you replace the reference in the FGV, so you basically lose the old reference), so instead of having two DVRs, you really N + 1 DVR (where N is the number of iterations of the loop runs).
For your code works the way you want, you only need to create two digital video recorders (probably before the loop), then bring them inside the loop and use the structure of the International preliminary examination with nodes in R/W DVR to set the value in the DVR.
For example:
Other problems with the code, but this deal the DVR issue.
-
PDF form - load and save from/to XML
Hello
I am looking for a solution fill and read the value of the fields of a PDF form. I work with Microsoft Framework 2.0 and c# for a desktop application.
At the moment I use a FDF file to fill the fields PDF and iTextSharp to collated fields values once the PDF file is saved. But it does not work with some PDF that are bind to an XML data source. The idea is to drop the FDF solution and try to use XML instead.
So, I have a PDF form (myPdf.pdf) with fields bound to a source of XML (XSD schema file myPdf.xsd).
I have a data XML (myPdf.xml) file in the same directory as the PDF file.
With LiveCycle and JavaScript is it possible to:
- Load the XML data file and fill out PDF when I open the PDF file?
- Export the value of the fields in the XML file when you close or save the PDF file?
If not possible with LiveCycle and JavaScript, you know another solution?
I thought to put a button "Send by HTTP" and use a listener on localhost to get the data, but I need to listen on a particular port and it is unlikely that this port is already used by something else. I'm really not lucky in this case, but it could happen. And from the port are "hardcoded" in the PDF file I have no way to change it if necessary. Or I have not found how.
Thanks for your replies
Yes, you can start the xml (as the FDF) file and it will load th eform as well. To see what you need to do... .put a button on your form, and add the code:
xfa.host.exportData)
for the click event. Now make your form, fill it out and click on the button. It will ask for a file name (it will also be an extension of the XDP on the file). This is the file of XML (called as an xdp file). Open in editor xml and you will see at the bottom the reference to the model. Now if you run the xdp file it will open Acrobat and launch your form and merge the data into the form. Note that if the designer has been installed after Acrobat, then the XDP extension is on the designer (he thinks it is a native template file) and you will get an error. Make sure the xdp extension is registered in Acrobat.
For the record, you can programmatically click the button submit whether it is visible or not.
Paul
-
HOW CAN I COPY AND PAST LINK IN A FORM?
I use acrobat X and formed froms to fill out and send an email to customers so they can examine different real estate property and I want past a link at the bottom of the form. When I receive a warning on a new property There is a hyperlink in the emailand is one I'd like to copy and past on the PDF form described above. I don't want to nake a permanent link on the form that the info will change with each email I receive. If I copy the hyperlink in a text boc happens only as text. I can't believe it's so hard to do. If I copy the link in word or excel, and then save the file in pdf format the link will work, but then I can't use the form. OMG please help!
How about, create a field additional text on the form, which would allow that you paste the link text? This would allow you to save the updated form and the user can easily copy and paste if necessary.
-
Get the date value. MinValue and insert it into the DB
Hello
I'm developing an adf application using jdev11g.
I need to recover the 3 values of page jsf (inputText 2 + 1 date. MinValue) and insert them into DB
so I create a method in appModuleImpl:
{public createAffAgVehNewRow (Date date, around km, veh Integer) Sub
Get the id of the current user
String ag = ADFContext.getCurrent () .getSessionScope ().get("idAg").toString ();
getSequenceNumber
oracle.jbo.domain.Number seq = new oracle.jbo.domain.Number (0);
SequenceImpl seqImpl = new SequenceImpl ("AFF_AV_SEQ", getDBTransaction());
SEQ = seqImpl.getSequenceNumber ();
Insert values into the DB table
Line r = getAffAgVehView1 () .createRow ();
ViewObjectImpl vo = this.getAffAgVehView1 ();
r.setAttribute ("IdAg", Integer.parseInt (ag.toString ()) ");
r.setAttribute ("IdAffAv", seq);
r.setAttribute ("KmDep", km);
r.setAttribute ("IdVeh", veh);
r.setAttribute ("DateAff", date);
r.setAttribute ("KmArriv", null);
r.setAttribute ("ConsoCarb", null);
vo.insertRow (r);
this.getDBTransaction () .commit ();
}
also, I changed the default value of the EO (AffAgVeh) to adf.currentDate () and the user interface as simpleDate format: "MM/DD/YYYY.
the problem as whene I enter 3 inputValues and click on the button I get this message:
Timestamp format must be yyyy-mm-dd hh: mm: [.fffffffff]
someone knows how to solve this problem
Thank you
Mark
Hi Dev
Please pass.
java.sql.SQLException: column type invalid in the adf
Thank you
Subramanian M
-
Scanario
1 Server Machine (database software)
2 oracle installed Client workstation
If it's possible... desktop PC, I want to export data using expdp and dumpfile goes to his local directory?
Rajesh
Hello
You can use this method
http://dbaharrison.blogspot.de/2013/05/expdp-creating-file-on-my-local-machine.html
But it depends on having you another instance on your workstation also.
Otherwise, you will need to sort the database drive will appear on the desktop or vice versa using nfs/samba etc.
See you soon,.
Rich
-
procedure that will dynamically build the query data and table Medallion
Hi people,
I write a procedure that dynamically build the query data and insert in the table "dq_summary".
enforcement procedure with success and data not inserted into the table 'dq_summary '.
I have thin problem in code attached below
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------FOR rep IN cur_di_attr LOOP dbms_output.put_line ('d: '); BEGIN EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab; dbms_output.put_line ('rep_tab: '||rep_tab); run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1'); EXECUTE IMMEDIATE run_query INTO end_rslt; EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id; dbms_output.put_line ('e: '); dbms_output.put_line ('rep_tab: '||rep_tab); dbms_output.put_line ('end_rslt: '||end_rslt); dbms_output.put_line ('f: '); EXCEPTION WHEN no_data_found THEN rep_tab := ''; sum_tab := ''; END; END LOOP;
but in the procedure below must be run several times
Published by: BluShadow on February 7, 2012 12:04create or replace PROCEDURE DQ_REPORT_PROC AS prop di_proposition.pro_name%type; col_var VARCHAR2(100); p_code dq_parameter.para_code%type; sum_tab di_proposition.summary_table%type; run_query dq_parameter.run_query%type; wh_cond dq_parameter.where_cond%type; end_rslt VARCHAR2(20); rep_tab VARCHAR2(50); v_error_msg VARCHAR2(200); v_error_code VARCHAR2(200); v_object_name VARCHAR2(50) DEFAULT 'DQ_REPORT_PROC'; v_iss_no VARCHAR2(20) DEFAULT NULL; CURSOR cur_di_prop IS SELECT upper(replace(replace(pro_name, ' '),'-')) pro_name FROM di_proposition; CURSOR cur_di_para IS SELECT upper(para_code) para_code, run_query, where_cond FROM dq_parameter; CURSOR cur_di_attr IS SELECT attribute_id FROM dq_summary; BEGIN DELETE FROM dq_summary; INSERT INTO dq_summary (attribute_id, entity_name, attribute_name, data_champ) SELECT a.attribute_id, b.entity_name, a.attribute_name, a.data_champ FROM di_attribute_master a, di_entity_master b WHERE a.entity_id = b.entity_id; FOR c_prop IN cur_di_prop LOOP prop := c_prop.pro_name; BEGIN SELECT distinct SUBSTR(column_name, 1, INSTR(column_name, '_')-1), summary_table INTO col_var, sum_tab FROM user_tab_cols a, di_proposition b WHERE a.table_name = 'DQ_SUMMARY' AND upper(replace(replace(b.pro_name, ' '),'-')) = prop AND SUBSTR(a.column_name, 1, INSTR(a.column_name, '_')-1) = upper(replace(replace(b.pro_name, ' '),'-')) AND upper(b.status) = 'Y'; dbms_output.put_line ('col_var: '||col_var); dbms_output.put_line ('sum_tab: '||sum_tab); EXCEPTION WHEN no_data_found THEN col_var := ''; sum_tab := ''; END; dbms_output.put_line ('a: '); FOR para IN cur_di_para LOOP dbms_output.put_line ('b: '); p_code := para.para_code; run_query := para.run_query; wh_cond := para.where_cond; dbms_output.put_line ('c: '); FOR rep IN cur_di_attr LOOP dbms_output.put_line ('d: '); BEGIN EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab; dbms_output.put_line ('rep_tab: '||rep_tab); run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1'); EXECUTE IMMEDIATE run_query INTO end_rslt; EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id; dbms_output.put_line ('e: '); dbms_output.put_line ('rep_tab: '||rep_tab); dbms_output.put_line ('end_rslt: '||end_rslt); dbms_output.put_line ('f: '); EXCEPTION WHEN no_data_found THEN rep_tab := ''; sum_tab := ''; END; END LOOP; END LOOP; END LOOP; COMMIT; EXCEPTION WHEN OTHERS THEN v_error_msg := SQLERRM; v_error_code := SQLCODE; TRACKER_LOG_EXECEPTION(v_iss_no, v_object_name, CURRENT_TIMESTAMP, v_error_msg, v_error_code); COMMIT; END DQ_REPORT_PROC;
addition of {noformat}{noformat} tags. Please read {message:id=9360002} and learn to do this yourself in future.
903830 wrote:
I write a procedure that dynamically build the query data and insert in the table "dq_summary".
enforcement procedure with success and data not inserted into the table 'dq_summary '.I'm sorry. But there is no kind of say that way. The code is undesirable. The approach is wrong. This will not happen. This will cause the fragmentation of memory in the shared Pool. This will lead to another session being impossible to analyze the sliders because of the fragmented memory.
Not only that. The underlying data model is questionable.
All this seems a candidate perfect as an example of how NOT to design and code and use Oracle.
-
How to interpret the data cache setting and the current value of data cache?
How to interpret the data cache setting and the current value of data cache? We found that even, we configure a larger data cache in Essbase 2 GB for example, the current value of the data cache is always much lower. Does that indicate an activities of data at very low recovery or something else?
Thanks in advance!Hello
When a block is requested, Essbase searches the data for the block cache. If Essbase is the block in the cache, it is immediately accessible. If the block is not found in the cache, Essbase in the index for the appropriate block number and then uses the index of the block entry to retrieve from the data on the disk file. Retrieve a block requested in the data cache is faster and therefore improves performance.
So as you say that its current value is much lower then % is very low, that a requested block is in the cache of Essbase data.
Hope that respond you to the.
Atul K
-
I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:
INVOICE (table)
INVOICE_GID INVOICE_SOURCE INSERT_DATE
ABC. AVRT123 I HAVE 11/03/2012-15:49:32
ABC. CNWY234 G 12/03/2012 14:07:30
ABC. UPGF678 M 15/03/2012 20:21:54
INVOICE_REFNUM (table)
INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE
ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32
ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30
ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54
My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')
If I were to write a query on these two tables, the output will resemble the following:
INVOICE_GID INVOICE_SOURCE INSERT_DATE
ABC. AVRT123 ACS 11/03/2012 14:49:32
ABC. CNWY234 ACS 12/03/2012 13:07:30
ABC. UPGF678 Manual 15/03/2012 20:21:54
I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:
SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.
GLOGOWNER. THE INVOICE. INVOICE_GID,
DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').
GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE
OF GLOGOWNER. INVOICE
LEFT JOIN GLOGOWNER. INVOICE_REFNUM
ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID
WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."
AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.
AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.
ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID
Any help is greatly appreciated!
Best regards
-Adam
Hello
Is that what you want?
SELECT i.invoice_gid
CASE
WHEN ir.insert_date<= i.insert_date ="" then ="">=>
WHEN i.invoice_souce = 'I' and THEN 'EDI '.
WHEN i.invoice_souce = 'G' THEN 'debit '.
WHEN i.invoice_souce = am' THEN 'manual '.
END AS invoice_source
, The LEAST (i.insert_date, ir.insert_date) AS insert_date
I have the Bill OF
JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir
WHERE ir.invoice_refnum_value = 'ACS '.
AND ir.invoice_refnum_qual_gid = 'SOURCE '.
AND i.invoice_type = 'I '.
ORDER BY i.invoice_gid
;
There is no reason to do an outer join if you only want the lines with specific values anyway.
What happens if the 2 tables have exactly the same invoice_date? The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.
Or the other of the insert_dates can be NULL?
I hope that answers your question.
Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002#9362002
-
splitting the query string values
all,
I do not remember this, but my problem is that I have a collection of forwarded to my query as string values "X 234234: 23466 X: X 03287: X 457675 ', so my request should be able to divide each data value and use in the filter as below,
Select * from emp where EmpID in ("X 234234: 23466 X: X 03287: X 457675")
so, how can I divide each individual value and pass through the filter?
Thank you.SELECT trim(x.column_value.extract('e/text () ')) CLO
Of
TABLE (XMLSEQUENCE (XMLTYPE (" ").extract('e/e'))) x"
|| REPLACE ('1:2:3:4:6:7:8',': ','')
|| ((("Try customizing the syntax above using the column in the function replace instead of my hard-coded string and pass it to the filter predicate using an in operator.
Edited by: Chandrakaanth Ramamurthy on April 25, 2013 16:29
-
Query - Gohan values in the following columns of aging
Oracle 11.2.0.3...
I have this query... working on it in SQL * Navigator.
We pay all suppliers with Net 20, 25 Net and Net 30 terms due date + 15 days. I'm developing an application that will tell me who is due now, which must be returned within next 7, then 10, then 14 and coming 21 days.
The following query returns not due, owed, due + 7, etc... but just what is due is also displayed in the + 7, + 10, etc - because if it's due, it will be always due in a week!
How can I remove these values if they are already due?
(or, if they are due in 7 days, how can I delete + 10, + 14, etc?)
SELECT
PV. $vendor_name "seller."
NPS.invoice_number "Bill."
NPS.invoice_date "Date of the invoice.
NPS.due_date "due date."
Inv.Terms "terms."
(TO_DATE (sysdate) - nps.invoice_date) "Days entries."
(CASE
When to_date (nps.due_date) < to_date (sysdate)
then (to_date (sysdate) - to_date (nps.due_date))
Another null
end) 'days overdue',
"Remaining amount", NPS.amount_remaining
--0-15
(CASE
WHEN (TO_DATE (sysdate) - nps.invoice_date) < 45
THEN nps.amount_remaining
ANOTHER NULL
END
) "Unmatured,"
(CASE
WHEN (TO_DATE (sysdate) - nps.invoice_date) > = 45
THEN nps.amount_remaining
ANOTHER NULL
END
) "Have."
(CASE
WHEN (TO_DATE (sysdate + 7) - nps.invoice_date) > = 45
THEN nps.amount_remaining
ANOTHER NULL
END
) '+ 7 days. "
(CASE
WHEN (TO_DATE (sysdate + 10) - nps.invoice_date) > = 45
THEN nps.amount_remaining
ANOTHER NULL
END
) '+ 10 days. "
(CASE
WHEN (TO_DATE (sysdate + 14) - nps.invoice_date) > = 45
THEN nps.amount_remaining
ANOTHER NULL
END
) '+ 14 days. "
(CASE
WHEN (TO_DATE (sysdate + 21) - nps.invoice_date) > = 45
THEN nps.amount_remaining
ANOTHER NULL
END
) "21 days".
Of
Inv,
PV,
NPS
WHERE
and nps.amount_remaining <>0
and inv.terms ("Net 20', ' Net 25', 'Net 30')
example of output:
Invoice date of invoice terms due Date day days entered late amount not remaining due not due 7 days + 10 days + 14 days + 21 days
seller 00470871 1 12/27/1 / 2012/2013 Net 30 12 126,62 126.62 26
provider 59355648 2 11/28/2012 12/28/2012 Net 30 41 11 538,75 538.75 538,75 538.75 538,75 538.75
the seller 3 75793062 12/4/1/3 of 2012/2013 Net 30 35 5 950 950 950 950 950
seller 4 52835 12/13/1 / 2012/2013 Net 30 26 298.92 13 298,92 298.92
seller 4 52814 12/4/1/3 of 2012/2013 Net 30 35 5 330 330 330 330 330
any sql gurus have ideas?
Published by: camforbes on January 8, 2013 13:24Hello
It's not very clear what you want, but I think something more or less like that will do what you want:
WITH got_grp AS ( SELECT pv.vendor_name , nps.invoice_number , nps.invoice_date , nps.due_date , inv.terms , SYSDATE - nps.invoice_date AS days_entered , CASE WHEN nps.due_date < SYSDATE THEN SYSDATE - nps.due_date ELSE NULL END AS days overdue , nps.amount_remaining , CASE WHEN nps.invoice_date > SYSDATE - 24 THEN 'Over 21 Days' WHEN nps.invoice_date > SYSDATE - 31 THEN '+21 Days' WHEN nps.invoice_date > SYSDATE - 35 THEN '+14 Days' WHEN nps.invoice_date > SYSDATE - 38 THEN '+7 Days' WHEN nps.invoice_date > SYSDATE - 45 THEN 'Due' ELSE 'Not Due' END AS grp FROM inv JOIN pv ON ... JOIN nps ON ... WHERE nps.amount_remaining != 0 AND inv.terms IN ('Net 20', 'Net 25', 'Net 30') ) SELECT pv.vendor_name , nps.invoice_number , nps.invoice_date , nps.due_date , inv.terms , days_entered , days overdue , CASE WHEN grp = 'Not Due' THEN amount_remianing END AS not_due , CASE WHEN grp = 'Due' THEN amount_remianing END AS due , CASE WHEN grp = '+7 Days' THEN amount_remianing END AS plus_7_days , CASE WHEN grp = '+14 Days' THEN amount_remianing END AS plus_14_days , CASE WHEN grp = '+21 Days' THEN amount_remianing END AS plus_21_days FROM got_grp ;
Whenever you have a question, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
If the results are dependent on when the query is run, give an exact time of execution, or better yet, give a couple of different run times and desired outcomes, the same sample for each data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum {message identifier: = 9360002}
Maybe you are looking for
-
Aggravated with the update from my iPhone It is a list of the problems I have with my iPhone 6plus since updating to IOS 9.3.5. A single date after update my touch screen froze and I was unable to trouble or to use until the battery died and the phon
-
How do I not see my historical Iphone on my macbook to navigation
My iphone safari browser history is synchronized with the history of safari on my macbook (apparently in my apple ID?). Is it possible to not show my phone of historical browsing on my mac? Thank you!
-
Satellite U400 - 12 p - CD/DVD missing driver
Hello Can you send me the drivers for the DVD-ROM?It's MATSU * A UJDA755 that comes with satellite U400 - 12 p 13 "that I own.I can't find anywhere on the net. I can't write DVDs on my machine (recently bought its first owner), I don't have the recor
-
The platform takes supported Print Studio Pro?
I run Photoshop 11 and 12 of Photoshop CS-6. (On my computer), I said that I don't have the proper support for Print Studio Pro. What is the shoring? Chris
-
How to open ports for the connection opened on Xbox 360 on WRT160N V2.
I have the port numbers but do not know how to go from there. Step by step instructions and help would be most appreciated. Router is a WRT160N V2. Thank you