Help creating a report
Hello people I need some help creating a report on 9i. So far:
SELECT TRUNC(sampled,'MM'), c.name country, o.name operator, SUM(SMS)
FROM TEST s, operators_info o, countries_info c
WHERE sampled >= '01/01/2010' AND sampled < '01/01/2011'
AND s.dest_id = o.id
AND o.country_id = c.id
GROUP BY TRUNC(sampled,'MM'), c.name, o.name
ORDER BY 1, 2, 3;
I am getting:
01/01/2010 UK OPERATOR1 100
01/01/2010 UK OPERATOR2 150
01/01/2010 USA OPERATOR3 500
01/01/2010 USA 0PERATOR4 650
01/02/2010 UK OPERATOR1 50
01/02/2010 UK OPERATOR2 170
01/02/2010 USA OPERATOR3 550
01/02/2010 USA 0PERATOR4 670
01/12/2010 UK OPERATOR1 0
01/12/2010 UK OPERATOR2 270
01/12/2010 UK OPERATOR3 150
01/12/2010 USA OPERATOR3 570
01/12/2010 USA 0PERATOR4 800
How can I create a more efficient report like:
........................01/01/2010...01/02/10...01/12/2010
UK OPERATOR1...100.............50.............0
UK OPERATOR2...150.............170...........270
UK OPERATOR3......................................150
USA OPERATOR3.500..............550............570
USA 0PERATOR4.650..............670.............800
Thank you very much in advance
Hi,
That's called a Pivot , and this thread shows you how to do it:
Help for a query to add columns
Pivoting the output requires more work, so it probably won't be any more efficient that what you're doing now.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
Explain how you get those results from that data.
Always say what version of oracle you're using.
Similar Messages
-
Help creating a report with Financial Reporting Studio.
Hi,
Im new at Financial Reporting Studio so my question might be something very easy, for beginners.
Im trying to create a report with two columns where in each column there is the year dimension. In the first column there is the current POV for year, but in the second column I would like to set the prevoius year of the POV automatically, without using a prompt. Is there any function or way to do it?
Tanks foy yuour help!
EduUse the relative function.
The first column will be set to use the User POV.
For the second column... see the tab named "Functions". Select the function "RelativeMember". For the Member row - select User POV. For the offset enter -1... that will automatically select the prior year. -
Help: Creating a report based on STORED PROCEDURE in Oracle DB
Hi,
We are creating an application with FORMS and REPORTS. A set of stored procedures were created for the FORMS and the ref cursor from the select statement are the same for the REPORTS.
Is there a way that directly use relevant stored procedure to create REPORTS and how?
Thanks in advance.
JimmyWhat I am really interested in is calling STORED PEOCEDURE in DB, not the one that attached with report. What good about this is that the procedures can be shared by FORMS and REPORTS. REPORTS call the procedure with select statement.
Thanks. -
I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...
Hi Leo22,
Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
Jeremy L.
National Instruments
Jeremy L.
National Instruments -
Need help on creating a report after defining some criteria
Hi everybody,
I have been through some of the ebooks and got the idea of apex.
To give an example what I would like to do is that I want to open two date picker fields and creating the report between the dates which were defined in the date pickers
Those date picker field could be on the same page of report or they could be on another page. Once create button is pressed then the report between the defined dates should appear
Any thoughts?
Thanks from nowOkay, two date pickers are date to and date from, logically date to must be equal or after date from, right?
i defined a validation as pl/sql expressin saying that date to >= date from to the expression field
there is no problem when I put a former date on date from and a latter date to date to.
the problem occurs when I put same dates on the date pickers. An interesting point here is that when I put the same dates and click the submit button it gives an error BUT when I push again it works!
it gives me the rows from the table of the date picker date. is there a problem about the caching and how can I solve it.
Or, as you recommend you can show me an example on your workspace, that would be helpful as well -
Sold-To Party and Reported missing when doing Help - Create Support Message
Sorry, I know this has been asked multiple times, but I'm missing something in the responses. The responses I am finding either don't seem to apply to my situation, or aren't detailed enough to explain what I'm supposed to be doing.
Solution Manager 7.0 EhP1 SAPKITL435.
If we try to do a "Help - Create Support Message" from within our production Solution Manager system, the "Reported by" field is correct, but the Sold-To Party is blank.
If we try to do a "Help - Create Support Message" from within our non-production Solution Manager system, both the "Reported by" and Sold-To Party fields are blank.
If we try to do a Help - Create Support Message" from another SAP system whose RFC is pointing to our non-production Solution Manager system, both the "Reported by" and Sold-To Party fields are blank.
I've looked at IB52, as well as the SPRO activities under "Partner Determination Procedure." I think a big part of my problem is that they just don'e make sense to me yet, because I can't figure out what I should be changing.
For example, IB52 looks to me like it only applies if you want to assign something to the same person all the time. Am I missing something there, or is that an answer to a different question?
I also can't figure out if I need to create something new in "Define Access Sequences," or modify something existing, and, if I modify, to what?
Does anyone know where I could find specific instructions for setting this up?Hi Brenda,
Regargind this issue, please check if Sold-To party is maintained for
your system with IB52 in your solman system as the steps below:
SOLUTION MANAGER system
->IB52
->select the system on left hand side
->click on 'goto' on top menu
->Select 'partner'
->Now maintain Sold-To party
Also check below note:
1165357 Sold-to-Party is not assigned to Service Desk messa
As you said ou already assigned then i would request you to please check if you have assigned at the system level or not. Somtimes people define at top of the tree and also at system level. Please assign at system level and delete all other. Most of the times this is the issue Sold-to-party doesnt fill automatically.
For reported by field:
Please check the note: 824640: Customizing missing for Service Desk in Solution
read this note carefull and this will help you fixing the reported by issue.
Please, make sure you have applied the following corrections:
1439191 Incident Create: Message Reporter or Processor is not saved
1486132 Incident Create: Enhance search help of Reporter field
1497700 Work center: Message details not updated after refresh
After this if you still having issue you need to provide more details but i think this will fix the issue.
Thanks
Regards
Vikram -
in SSRS 2008 2 years ago created Commission with sub reports added, it was working fine, some how started to get error
message when we entered some invoice # see below screen shot of error message
but same time if I enter different invoice # it process the report without any error message , donot understand the problem
what's causing this issue, I have looked each sub report,
can some one suggest any idea,
I have spent hrs to figure it out, no luck so far.
thanks in advance
see the 2nd screen shot with report process
any help will be greatly appreciatedHi Wendy
thanks for your reply
I tried creating new report , I have 1 main report and 3 sub report on this
on main report when I enter some invoice# and accountnum data shows up with no problem,
but same time if I enter different invoice# and accountnum , there is no data return on same query, I have checked my query so many times, donot understand this issue, what's causing this problem, since all the data pulling from same tables, why its
not pulling for some invoices,
other strange thing , I created this report , year ago, there was no problem until now,
all of the sudden this problem just shows up,'
I am not that expert in sql , can I really use advise
see below by query , if you can tell me what's wrong with my query I will be really greatfull I have spend so much time to figure it out, but so far no luck
SELECT VENDTRANS.DATAAREAID, SALESTABLE.SALESID, VENDTRANS.VOUCHER, SALESTABLE.SALESTYPE, SALESTABLE.SALESSTATUS, VENDTRANS.TRANSDATE,
CUSTINVOICEJOUR.INVOICEAMOUNT, VENDTRANS.INVOICE, VENDTRANS.PAYMMODE, VENDTRANS.ACCOUNTNUM, VENDTRANS.TRANSTYPE,
VENDTRANS.LASTSETTLEVOUCHER, VENDTRANS.TXT, CUSTINVOICEJOUR.INVOICEACCOUNT, CUSTINVOICEJOUR.INVOICINGNAME,
VENDTRANS.LASTSETTLEDATE, LEDGERJOURNALTRANS.ACCOUNTTYPE, LEDGERJOURNALTRANS.AMOUNTCURCREDIT, LEDGERJOURNALTRANS.LINENUM,
CUSTINVOICETRANS.INVOICEDATE
FROM SALESTABLE INNER JOIN
CUSTINVOICETRANS ON SALESTABLE.DATAAREAID = CUSTINVOICETRANS.DATAAREAID AND SALESTABLE.SALESID = CUSTINVOICETRANS.SALESID
INNER JOIN
CUSTINVOICEJOUR ON CUSTINVOICETRANS.INVOICEID = CUSTINVOICEJOUR.INVOICEID AND CUSTINVOICETRANS.SALESID = CUSTINVOICEJOUR.SALESID
AND
CUSTINVOICETRANS.INVOICEDATE = CUSTINVOICEJOUR.INVOICEDATE INNER JOIN
VENDTRANS ON CUSTINVOICETRANS.INVOICEID = VENDTRANS.INVOICE AND CUSTINVOICETRANS.DATAAREAID = VENDTRANS.DATAAREAID
AND
CUSTINVOICEJOUR.DATAAREAID = VENDTRANS.DATAAREAID AND CUSTINVOICEJOUR.INVOICEDATE = VENDTRANS.TRANSDATE INNER JOIN
LEDGERJOURNALTRANS ON VENDTRANS.DATAAREAID = LEDGERJOURNALTRANS.DATAAREAID AND
VENDTRANS.ACCOUNTNUM = LEDGERJOURNALTRANS.ACCOUNTNUM AND CUSTINVOICETRANS.LINENUM = LEDGERJOURNALTRANS.LINENUM AND
VENDTRANS.INVOICE = LEDGERJOURNALTRANS.INVOICE AND VENDTRANS.VOUCHER = LEDGERJOURNALTRANS.VOUCHER AND
VENDTRANS.PAYMMODE = LEDGERJOURNALTRANS.PAYMMODE AND VENDTRANS.TRANSDATE = LEDGERJOURNALTRANS.TRANSDATE
WHERE (VENDTRANS.DATAAREAID = N'AR1') AND (SALESTABLE.SALESTYPE = 3) AND (SALESTABLE.SALESSTATUS = 3) AND (VENDTRANS.ACCOUNTNUM = @Accountnum)
AND (VENDTRANS.INVOICE = @Invoice) AND (LEDGERJOURNALTRANS.ACCOUNTTYPE = 2) -
Need help in creating custom reports
hello,
I am using EM 10.2.0.2 on windows 32-bit.
All EM components are installed on a single machine.
Have installed AGENT 10.1.0.5 for managing targets which are on LINUX 2.1
Please help me in getting the solution for the following queries:
(a)I need to create a custom report regarding the CAPACITY MANAGEMENT .
(b)I have some UDM defined but I am not able to use these UDM while creating custom report.
(c)Also is there any possibility that we can use views other than REPOSITORY VIEWS. What I meant was : instead of using REPOSITORY VIEWS can we use the tables of the target instances.
Thanks in advance.Same post
Need help on repository views for creating custom capacity planning reports -
Creating A Report need PHP MYSQl HElP
I have a table "officers" table two with 4 fields all with
variable char which will end up just being names. However, I need
to create a report that counts each the occurance of each name and
ouputs the name with the count next to it. The names in table
"officers" are concatinated from a first name field and last name
field in a separate table "persons";
I need some help figuring out how to write this using
PHP.Hi Shashank,
SQL Server Reporting Services provides a full range of ready-to-use tools and services to help us create, deploy, and manage reports for our organization, as well as programming features that enable us to extend and customize our reporting functionality.
With Reporting Services, we can create interactive, tabular, graphical, or free-form reports from relational, multidimensional, or XML-based data sources. To create a basic table report, we can refer to the tutorial as below:
http://msdn.microsoft.com/en-IN/library/ms167305(v=sql.110).aspx
For more information and tutorials about Reporting Services, please refer to the following documents:
Reporting Services (SSRS)
Reporting Services Tutorials (SSRS)
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Need Help in creating BPC Report
Hi,
I want to develop a BPC report as shown below .
.........................2010.TOTAL... 2011.TOTAL......2011.Q1..... 2011.Q2......2011.Q3.......2011.Q4
............................ ACTUAL ........PLAN..............PLAN....... .PLAN..........PLAN............PLAN
REVENUE
COGS
(.......) have been used for only formatting the report in above format.
I am not very much trained in BPC . I have loaded the actual data for 2010 with the proper hierarchy and i am able to see it on the report but i am facing difficulty in below two things.
1] I am not able to create a report where i can see the Actual of 2010 and i can enter the forecast for 2011.
2] My 2010.TOTAL is not getting rolled up , I have used proper hierarchy in Time dimension and i have selected YTD as measure.
Please help.Hi,
I stumbled across SAP note 1506275 today which dieals with the issue, but unfortunately is not helpful at all. What SAP are saying is: replace the pipe with a comma. Well, this quite obviously gives a different result than the one you were aiming at with the pipe in the first place, but that's the official answer.
Now, I'm wondering, has anyone successfully used the pipe, and in which service pack of BPC? MS or NW? I'm on 7.5 NW SP7 and the pipe casuses the error message mentioned in this post.
Cheers
Matthias -
Please help create this matrix report
Hi,
I'm using Reports6i.
I want to create a matrix report like below.
Country JUN2008 JUL2008
Teu Feu Teu Feu
INDIA 13 9 1 10 .....
.With the query i've written, i get the data like
Country Dt Cnt Typ
IN JUN2008 9 Feu
IN JUN2008 13 Teu
IN JUN2008 10 Feu
IN JUN2008 1 TeuPlease Help
Edited by: Divya on Jun 21, 2011 5:55 AMWhich tool are you using to create the report Divya?
You may use PIVOT to create the matrix like report.
For Ex;
SELECT *
FROM (SELECT product_code, quantity
FROM pivot_test)
PIVOT (SUM(quantity) AS sum_quantity FOR (product_code) IN ('A' AS a, 'B' AS b, 'C' AS c));
A_SUM_QUANTITY B_SUM_QUANTITY C_SUM_QUANTITY
210 90 160 -
Creating Webdb Report Links (Help wanted)
(1) I am creating a report that simply pulls in rows from a table
>
(2) We have created "static" HTML biographies (Dynamic Pages) for each one
of these representives and stored them in our schema CIWEB.
(3) I simply want to link each row in that table with their respective
biography
(4) the only way i know to link to something from the report is from the
"links" option. However, this seems to only link each row in that table to
"one" link that you specified...
(5) How do i go about creating a separate link for each record (biography
link) from that report??
Help would be appreciated,nullYou need to be able to take information from the row in the table and use it to define the report you are going to. How I would do it is a) create a QBE report on the table.
b) Define the link to call a FORM you build based on a procedure, taking as parameter(s) the data from the row that defines the report you want.
c) In the procedure on which you based the linked to form, take the parameter and use it in some way to construct the name of the destination report and then
d) call this report from the procedure using dynamic PL/SQL and the constructed name.
e) If you don't want to see the actual form that is based on this procedure add the following code to the section '...after displaying the footer' of the PL/SQL code exits area:
htp.script('<name of form>.submit()','Javascript');
Hope this helps.
Fran Brickhill -
Urgent help! trying to create basic report with prompt.
Hi,
I'm trying to create a report which allows a user to select a item_id value (using either a LOV or manually entering a text_id) and then too display output.
for some reason apex does not like the '&' prompt, in the SQL.
Any help or suggestions, would be great? this is quite straightforward so it must be something I'm doing wrong!
sql statement below:
select i.item_id, i.title, d.date_logged, d.details
from tracking_issues i, tracking_details d
where i.item_id=&item_id
and i.item_id=d.item_idSmiley,
Apex is building a JSP, so instead of you running the page and it poping up a input box that you might be familar with if you run your sql in TOAD or SQL Nav it is waiting on your input(text box/LOV) to populate the item_id field. You need to build your LOV on something like select item_id d, item_id r from items and then once you select that item in the LOV the page will(should - based on how your branch is set up) to the page you are on and your report is displayed.
Also make sure in your branch you are setting the LOV item name to the value you select for it in the branch since the page needs re-submit.
Your select statement for your report should look like:
select item_id, title
from tracking_issues
where item_id=:p1_LOV
--where p1_lov is the name of your LOV
-David -
Pls help out me to create a report for entry tax
hi all,
pls help out me to create a report for entry tax.
and give some logic how i can do this.
thanks and regards
vikasSELECT < Columns>
from pay_payroll_actions ppa,
pay_all_payrolls_f papf,
per_time_periods ptp
where papf.payroll_id = ppa.payroll_id
and ppa.effective_date between papf.effective_start_date and papf.effective_end_date
and ppa.action_type IN ('Q','R')
and ptp.payroll_id = papf.payroll_id
and papf.payroll_name = :pPayrollName
and ppa.date_earned BETWEEN ptp.start_date AND ptp.end_date
and :pDate BETWEEN ptp.start_date AND ptp.end_date
Pass Any Date and Payroll Name. The query should list down all payroll runs in the period in which the date falls. -
Need help creating a specific report
I am trying to create a specific report but to-date can not get it to work the way I want it to. I am trying to create a report that does the following:
- lists all my groups I have
- if the group has not registered a meeting in a specific week then highlight that group in Bold (or a specific color)
I have 2 tables: 1 containing the groups and the other containing the meetings they have registered.
I have managed to get the list of groups on the page and I have worked out the formula to check if the meeting date is in a specific week but when ever I try to include the meeting date then the groups are listed per meeting and not 1 entry per group.
Tables - Sample Data
SGFID GroupID Facilitator MeetingDate Description
1 20 38 02/26/2009 First Meeting
2 10 72 03/19/2009 Second Meeting
3 20 38 03/12/2009 First Meeting
4 12 1 03/19/2009 Second Meeting
5 20 38 03/05/2009 First Meeting
GroupID GroupName Htel
10 Group1 123456
12 Group2 987654
20 Group3 678345
What I get is the following:
20 Group3 678345
10 Group1 123456
20 Group3 678345
12 Group2 987654
20 Group3 678345
What I want is the following. If I am looking for all meetings in the week where the 19th falls in then:
10 Group1 123456
12 Group2 987654
20 Group3 678345
Edited by: Garth Truter on Mar 31, 2009 1:34 PMHiya,
OH! I just noticed that I didn't tell you to suppress to details section in the original post, which is why you might be concerned about the use of groups - My bad!
So, given that, do try the solution. There may be another way using arrays, but it's kludgy and far more complicated....
Try using your "Group" table (I see confusion happening here!) as the master/left table in your join, with the "Meetings" table on the right.
Groups -
(Left Outer Join)----> Meetings
Then create a group on Groups.GroupID (or similar) and follow the steps I posted earlier - it really should work!
Maybe you are looking for
-
Downloading new version of itunes onto my laptop and now when I start up there is an error message "the proceedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll" Can anyone advise on how to correct t
-
Safari 2.0: javascript can't change title of popup "Untitled"
With a javascript generated popup window, Safari 2.+ titles the window "Untitled" and will not allow the title to be changed with either html "<title>" tag or with javascript "document.title()" property. Safari 1.+, IE 5.0 and Firefox 1.+ all reset t
-
The box does not give any clue as to the result, and I did not want to have to redo tabs if it would not save.
-
[SOLVED]Some unicode symbols is not showing
Im trying to use special unicode characters like the equivalence sign and other logical signs. Some of them are missing. How may I get more characters than those displayed when giving the command in vim: :digraph And i may use ctrl + K, and the digra
-
Hello! i want to build one computer where I am going to use mostly After Effects and Premiere. Can somebody tell me what would be a good computer for it? not just the minimal nor something exaggerated, but something that will respond me very good whe