Query potal limits the Row in Query designer
Hi All,
When i am executing the query in Query designer 7 it is showing as 4 or 5 columns only. We need to show the complete report.Everytime we are clicking on next page and going forward. Because of this reason we are going for WAD.
Is there any alternate solution where we can show the maximum number of row in the first time execution itself??
Thanks in Advance
Regards
Sathiya
Hi Sathiya,
this can be done by enhancing the standard template. Check: [How to Enhance SAP BEx Web Analyzer (0ANALYSIS_PATTERN|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/200d6cb6-080e-2b10-84a5-b96723ad8f18]). This link will give you information howto...
Additional:
http://help.sap.com/saphelp_nw04s/helpdata/en/f9/7f12403dbedd5fe10000000a155106/frameset.htm
Go in you copy of 0ANALYSIS_PATTERN described in how to and help.sap link to WAD and modify the analysis web item. Paramter: BLOCK_COLUMNS_SIZE
http://help.sap.com/saphelp_nw04s/helpdata/en/76/489d39d342de00e10000000a11402f/frameset.htm
After that go to SPRO>SAP Netweaver>Business Intelligence>Settings for Reporting and Analysis>BEx Web>Set Standard Web Templates>Ad Hoc Analysis.
You have to restart the J2EE Engine that you changes will overwrite the existing ones...
Regards
Andreas
Similar Messages
-
Can you please explain how this query is fetching the rows?
here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
WHERE P1.SAL >= P2.SAL
GROUP BY P2.SAL
HAVING COUNT (DISTINCT P1.SAL) <=3 ;
here is the data i used :
SQL> select * from psal;
NAME SAL
able 1000
baker 900
charles 900
delta 800
eddy 700
fred 700
george 700
george 700
Regards,
Renu... Please help me in understanding the query.
Your query looks like anything but a Top-N query.
If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
Given below is some brief information on the same:
test@ora>
test@ora> --
test@ora> -- Query 1 - using the non-equi (theta) join
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
12 p2.NAME AS p2_name
13 FROM psal p1, psal p2
14 WHERE p1.sal >= p2.sal;
P1_SAL P1_NAME P2_SAL P2_NAME
1000 able 1000 able
1000 able 900 baker
1000 able 900 charles
1000 able 800 delta
1000 able 700 eddy
1000 able 700 fred
1000 able 700 george
1000 able 700 george
900 baker 900 baker
900 baker 900 charles
900 baker 800 delta
900 baker 700 eddy
900 baker 700 fred
900 baker 700 george
900 baker 700 george
900 charles 900 baker
900 charles 900 charles
900 charles 800 delta
900 charles 700 eddy
900 charles 700 fred
900 charles 700 george
900 charles 700 george
800 delta 800 delta
800 delta 700 eddy
800 delta 700 fred
800 delta 700 george
800 delta 700 george
700 eddy 700 eddy
700 eddy 700 fred
700 eddy 700 george
700 eddy 700 george
700 fred 700 eddy
700 fred 700 fred
700 fred 700 george
700 fred 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
43 rows selected.
test@ora>
test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
- Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
- Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
- Row 3: 7 times again... and so on.
- So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
test@ora>
test@ora> --
test@ora> -- Query 2 - add the GROUP BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
700 32 32 4 700 1000
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
So, the last 3 rows are the ones you are interested in, essentially. As follows:
test@ora>
test@ora> --
test@ora> -- Query 3 - GROUP BY and HAVING
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal
20 HAVING COUNT(DISTINCT p1.sal) <= 3;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>
test@ora>That's what you are doing in that query.
The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
A much simpler query is as follows:
test@ora>
test@ora>
test@ora> --
test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
900
test@ora>
test@ora>
test@ora>And for Top-3 distinct salaries:
test@ora>
test@ora> --
test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT DISTINCT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
800
test@ora>
test@ora>
test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
DENSE_RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
HTH
isotope -
Query help, getting the row that fits the date
Here is a sample dataset
CREATE TABLE #TESTDATA (
TableID INT IDENTITY(1,1),
SomeCode VARCHAR(50),
SomeDescription VARCHAR(50),
EffectiveFrom DATE
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah1','2014-01-03')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah2','2014-01-10')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah3','2014-01-15')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah4','2014-01-30')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah1','2014-01-01')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah2','2014-01-05')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah3','2014-01-20')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah4','2014-01-30')
The dates in the EffectiveFrom column indicates the date from which SomeDescription applies to SomeCode. So when someone asks what was the SomeDescription for SomeCode = A on 2014-01-04, the answer would be blah1.
On '2014-01-10', it would be blah2.
Anything on or past '2014-01-30' would be blah4.
Nothing if before '2014-01-03'
So how would I do a query that says give me every SomeCode and SomeDescription pair that was effective on @Date. I purposely left out the EffectiveTo date which would make this query very easy by doing a between clause.Are you looking for the below?
CREATE TABLE #TESTDATA (
TableID INT IDENTITY(1,1),
SomeCode VARCHAR(50),
SomeDescription VARCHAR(50),
EffectiveFrom DATE
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah1','2014-01-03')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah2','2014-01-10')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah3','2014-01-15')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('A','blah4','2014-01-30')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah1','2014-01-01')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah2','2014-01-05')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah3','2014-01-20')
INSERT #TESTDATA (SomeCode,SomeDescription,EffectiveFrom) VALUES ('B','blahblah4','2014-01-30')
Declare @somecode varchar(10) = 'A', @sDate date = '2014-01-14'
Select Top 1 * From #TESTDATA where SomeCode = @somecode and EffectiveFrom <=@sDate Order by EffectiveFrom desc
Drop table #Testdata -
Querying database for the row above & below
Assuming I am extracting a database info with the ID = 2345.
How do I query the database for the ID number before and after this
current ID number? This is assuming that the ID number is not
sequential.
I'm trying to do a back and next button for an article
feature for my website.
Thanks.quote:
I'm trying to do a back and next button for an article
feature for my website.
Then you don't need to do this the way you have
asked.
<!--- Create some parameters --->
<cfparam name="startRow" default="1">
<cfparam name="maxRows" default="1">
<cfparam name="next" default="0">
<cfparam name="previous" default="0">
<!--- output the query --->
<cfoutput query="qry_result" startrow="#statRow#"
maxrows="#maxRows#">
</cfoutput>
<cfset next = startRow + 1>
<cfset previous = startRow - 1>
<cfif previous GT 0>
<a href="myPage.cfm?startRow=#previous#">Previous
Record</a>
</cfif>
<cfif next LTE qry_result.recordcount>
<a href="myPage.cfm?startRow=#next#">Next
Record</a>
</cfif>
This will then navigate through the recordset.
Ken -
Hi All,
i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
basically query is checking the rows count from couple of user tables in servers.
issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
could you please suggest how can i achieve this?Copy to what?
SELECT COUNT(*) FROM sys.objects
Running the above statement returns two columns (server name and count)
All the servers SS2005 and onwards , then use
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'name',
@recipients = '[email protected]',
@query = 'SELECT COUNT(*) FROM sys.objects',
@subject = 'Count rows'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Business Objects is not returning all rows from Query
We set the rowcount to 1000000 and the business objects query only returns 16,960 rows. We then uncheck the limit for the rowcount and the first run of the query returns 65,535. The subsequent run of the query returns all the rows which is greater than 65,535. We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set. What would be causing the rowcount to be reset and how can it be fixed?
We set the rowcount to 1000000 and the business objects query only returns 16,960 rows. We then uncheck the limit for the rowcount and the first run of the query returns 65,535. The subsequent run of the query returns all the rows which is greater than 65,535. We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set. What would be causing the rowcount to be reset and how can it be fixed?
-
Warning Query has exceeded 200 rows.
Hello gurus,
I am currently getting a warning message when I run a page and click on a tab more than once.
The page I am running is a customer html form at the site level. The name of the page is ArAcctSiteOverviewPG.
There are 7 tabs on this page. When I click on the Site Details tab more than once I get this warning message: "Query has exceeded 200 rows. Potentially more rows exist, please restrict your query."
If I click on the other tabs more than once I do not get a warning message.
Anyone encountered this error before?
This is a standard oracle html form, no customizations has been made. Running R12.1.3.
Thanks in advanced!Query has exceeded 200 rows
Re: Query has exceeded 200 rows
Thanks
--Anil
http://oracleanil.blogspot.com/ -
BEx : several gl accounts in the rows
Hi Experts,
I need to display a few GL accounts in the rows and the respective 0balance in the columns but does not want to use hierarchy nodes for these.
Any clue how this can be created?
Regards
M RussoDear Friends,
I would like to clarify my question as follows :
I am using 1 keyfigure only for the query.
In the rows, I need to just display certain GL accounts .
No hierachy node is to be used.
I dragged gl account characteristic to the rows and 0balance to the column.
But I do not know how to restrict to certain GLs like this :
Char_GL-Account______KF
GL10000001__________100
GL20000001__________200
GL30000001__________101
After I dragged the GL account characteristic to the rows, I right-clicked on the characteristic to restrict but seems like no such function.
Pls advise. Thanks.
regards
M Russo -
Return the rows of the table where a column contains a specific value first
I want my query to return the rows of the table where a column contains a specific values first in a certain order, and then return the rest of the rows alphabetized.
For Example:
Country
ALBANIA
ARGENTINA
AUSTRALIA
CANADA
USA
Now i want USA and CANADA on top in that order and then other in alphabetized order.
Edited by: 986155 on Feb 4, 2013 11:12 PM986155 wrote:
If it is 2 then i can write a case... i want generalised one where may be around 5 or 6 mentioned should be in descending order at the top and remaining in ascending order there after.Computers tend not to work in 'generalized' ways... they require specifics.
If you store your "top" countries in a table you can then simply do something like...
SQL> ed
Wrote file afiedt.buf
1 with c as (select 'USA' country from dual union
2 select 'Germany' from dual union
3 select 'India' from dual union
4 select 'Australia' from dual union
5 select 'Japan' from dual union
6 select 'Canada' from dual union
7 select 'United Kingdom' from dual union
8 select 'France' from dual union
9 select 'Spain' from dual union
10 select 'Italy' from dual
11 )
12 ,t as (-- top countries
13 select 'USA' country from dual union
14 select 'United Kingdom' from dual union
15 select 'Canada' from dual
16 )
17 select c.country
18 from c left outer join t on (t.country = c.country)
19* ORDER BY t.country, c.country
SQL> /
COUNTRY
Canada
USA
United Kingdom
Australia
France
Germany
India
Italy
Japan
Spain
10 rows selected. -
How to sum the result rows at query designer
Hi,
We want to sum the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
exp:
..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
X..1............9..........6..............7........10.........13..........?????
Edited by: zarata on Oct 23, 2011 12:49 PM
Edited by: zarata on Oct 23, 2011 1:07 PMHi,
Could you please provide some more information.
if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
Regards,
Pravin -
Query Designer - Key Figures on the Rows
Hi experts,
I inserted in a query the key figures into the rows.
I would like to see on the report the "KEY" of these key figures and not the "TEXT", but I can't find a way to do that.
Can anyone help me?
TIA
c.Hi,
I developed the couple of reports but iam able to see the text in char and can u tell me where is the option to see key and text for keyfigure.if not is not theere explanin little bit and busines requirement
would like to see on the report the "KEY" of these key figures and not the "TEXT", but I can't find a way to do that. -
Maximum number of records displayed on the browser using Query Designer.
When you display a query on the web using Query Designer is there a maximum limit of how many records (rows) it can display? For example, can it handle 25 million records?
Thanks.Hi Sebastian,
I still find such a requirement weird as one cannot definitely go thru' so much of data at a time - it would thus always make sense to perhaps filter on some criteria which would make analysis & perhaps even download much faster. The limit as I understand is approx 750,000 data cells. Maybe the below link & SAP notes can help validate
Limitation in No. Of data cells displayed in BEx Analyzer
SAP Notes :-
Note 1040454 - Front-end memory requirement of the BEx Analyzer
Note 1030279 - Reports with very large result sets/BI Java
Note 1411545 - BExAnalyzer: safety belt for large resultsets
--Priya -
Posting Period coming into the rows at the query runtime & couldn't drop it
Hi All,
We have a query on an InfoCube that we have copied to the Multiprovider containing two cubes, exact copies of the original cubes.
Two cubes are one for the previous years and one for the current year.
Now, the query is copied from original cube to the MultiCube.
The query looks exactly the same in the Query Designer. But when run in Analyzer or on Web, Posting Period is coming into the rows automatically and in Analyzer, when I double click on the Posting Period to take it away from the report, it doesn't go away. Similarly in web, I do not have a option 'Remove Drilldown from rows', against posting period. I have identified posting period in both the cubes in the MultiCube configuration.
Thanks in advance for any suggestions that you have.
Best Regards,
- Shashihmm, we have now something interesting....
but this means that you have two structures defined in your query right?
Is your query cell based? It looks to me that this is the case; you have elements using created using the posting period thus it can be moved to the free chars and must be included in the drilldown.
Remove the posting period again and perform a check before saving the query; this may give the element defined with your posting period.
hope this helps...
Olivier. -
APEX 4.0 Report Query column limitation, 43 column maximum for the result!
Hi there,
I'm trying to generate report from Apex 4.0.1, but I got stucked with column limitation when I'm executing the report query.
Case:
Environment: oracle 11g, apex 4.0.1, oracle BI 11, windows xp
Table: My test table is quite simple, by creating a sample table with 44 columns, the column name is random, i.e. column1..column44, column data type is varchar2 (20)
report query:my report query is also simple, by "select * from testtable"
Data: no data in my sample table
Error: then I'll get the error: "HelpORA-06502: PL/SQL: numeric or value error: character string buffer too small"
solution: If I shrink the table column from 44 to 43, then the report can be generated to xls, pdf, etc.
Question: Is there any column limitation for Apex report query? I know there's a 32k row size limitation for varchar, but since there's no single data in my table, it shouldn't be the case.
Does anybody get this issue before? Thanks for any generous input!! :)
Horatiohi marko,
Thanks for the reply, but i can't find the 45 column limitation from report query and report printing. any clue for this call?
Regards
Horatio -
A,b rows in query designer
Hi,
When I drag and drop a characteristic into the Rows window in a query designer ,
two rows a,b are showing for a single characteristic .What is the reason for that ?
ThanksHI,
In the query designer , when i drag and drop the characteristic ( material for example) in the rows window, I can see amaterial and b material ( 2 rows) in the PREVIEW window at the lower right corner.
It is not 2 characteristics but "a " and "b" rows for a single characteristics.
What is the significance of this amateriail and bmaterial rows ....
thanks
Maybe you are looking for
-
15" Macbook Pro will not boot up
15" Macbook Pro, from late 2007 early 2008. I have tried everything, resetting pram, smu etc. Reseating RAM, removing battery, booting in safe mode, booting from OS disc, booting in target mode, nothing work, seemingly tried everything. The firewire
-
Trigger in a same step of sequence ...
Hello. I use a PCI-MIO-16E-1 acquisition card with LABView 7.0 on a Celeron 333 MHz with 256 Mo RAM, and I 've a big problem with a trig. I explain. I generate a square waveform with a determinated time of emission on DACOUT 1, and this signal (by ex
-
Secure Checkout and Registration?
I've been away for some time. A client whose e-commerce site I set up last year, is having issues with non-secure forms. I think the code may be out of date. Have things changed such that I may need to go back to the Web Forms and recreate the che
-
Faulty usb port connection hp ENVY M6-1188ca
One of my USB ports has been faulty from the beginning, I am now 8 months out of warranty, and can't find anyone in Victoria BC who can repair it. Does anyone know where I can get a bad USB port repaired on my HP ENVY that I bought in Nov 2012?
-
Hi friends, The requirement is something like this. When we post a document using tcode FB01, in few cases we get a warning message "Tax entered incorrect (code P1, amount 0.00)". We get this Warning message, when we click on Save button. N