Intresting query
hi
could someone explain this behaviour to me
I have two tables A and B whic are similar .
I have 5 rows in table A
SQL> desc a
Name Null? Type
SR_NUM NUMBER(1)
NAME VARCHAR2(25)
SQL> desc b
Name Null? Type
SR_NUM NUMBER(1)
NAME VARCHAR2(25)
The data in A is
SQL> select * from a;
SR_NUM NAME
1 a1
2 a2
3 a3
4 a4
5 a5
Now I want to copy the data in A to B
So I issue the following command
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
2 rows created.
I issue it again
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
2 rows created.
Now 4 rows are copied
the data in both table A and B looks like
SQL> select * from b
2 ;
SR_NUM NAME
3 a3
4 a4
1 a1
2 a2
SQL> select * from a;
SR_NUM NAME
1 a1
2 a2
3 a3
4 a4
5 a5
here is where it gets intresting
when I issue the command again to copy the 5th row
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
0 rows created.
but if I issue the subquery it self
SQL> select * from (select * from a minus select * from b) where rownum < 3;
SR_NUM NAME
5 a5
it works.
The momment I put the insert into statement it does not works.
Here is where it gets even more intresting
if I change the insert into statement to
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 2);
1 row created.
BOOM it works !!!!!!!. I basically changed from rownum < 3 to rownum < 2;
Any body has explanation for this.
Bye
Aruna
null
hi
could someone explain this behaviour to me
I have two tables A and B whic are similar .
I have 5 rows in table A
SQL> desc a
Name Null? Type
SR_NUM NUMBER(1)
NAME VARCHAR2(25)
SQL> desc b
Name Null? Type
SR_NUM NUMBER(1)
NAME VARCHAR2(25)
The data in A is
SQL> select * from a;
SR_NUM NAME
1 a1
2 a2
3 a3
4 a4
5 a5
Now I want to copy the data in A to B
So I issue the following command
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
2 rows created.
I issue it again
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
2 rows created.
Now 4 rows are copied
the data in both table A and B looks like
SQL> select * from b
2 ;
SR_NUM NAME
3 a3
4 a4
1 a1
2 a2
SQL> select * from a;
SR_NUM NAME
1 a1
2 a2
3 a3
4 a4
5 a5
here is where it gets intresting
when I issue the command again to copy the 5th row
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 3);
0 rows created.
but if I issue the subquery it self
SQL> select * from (select * from a minus select * from b) where rownum < 3;
SR_NUM NAME
5 a5
it works.
The momment I put the insert into statement it does not works.
Here is where it gets even more intresting
if I change the insert into statement to
SQL> insert into b (select * from (select * from a minus select * from b) where rownum < 2);
1 row created.
BOOM it works !!!!!!!. I basically changed from rownum < 3 to rownum < 2;
Any body has explanation for this.
Bye
Aruna
null
Similar Messages
-
Intresting query!!! may be for me...
Hello Friends
Please can you help me with your query for the following table
SQL for Oracle 10g table containing following data
Table 1
slNo Project issueno date
1 Prj1 issue11 2000-1-19 - project 1 added
2 Prj1 issue12 2001-2-11
3 Prj1 issue13 2002-3-12
4 Prj1 issue14 2003-4-13
5 Prj1 issue15 2004-5-14
6 Prj1 issue16 2005-6-15
7 Prj2 issue21 2002-2-11 - project 2 added
8 Prj2 issue22 2003-3-1
9 Prj2 issue23 2004-3-1
10 Prj2 issue24 2005-4-1
11 Prj2 issue25 2006-5-1
12 Prj2 issue26 2007-6-1
13 Prj3 issue31 2003-1-10 - project 3 added
14 Prj3 issue32 2004-2-1
15 Prj3 issue33 2005-3-1
16 Prj3 issue34 2006-4-1
17 Prj3 issue35 2007-5-1
18 Prj3 issue36 2008-6-1
19 Prj4 issue41 2003-1-12 - project 4 added
20 Prj4 issue42 2004-2-13
21 Prj4 issue43 2005-3-14
22 Prj4 issue44 2006-4-15
23 Prj4 issue45 2007-5-16
24 Prj4 issue46 2008-6-17
Can you write the sql in oracle to find out the number of projects added in each month (YYYY-MM)
Assumption: A project is created on the same day as first issueno
Period(YYYY-Q) Count of Projects
2000-1 1
2000-2 0
2000-3 0
...... 0
..... 0
2002-1 1
...... 0
...... 0
2003-4 2
Can we get this using Group by ROLLUP or just group by?
Please post your query on reply, Your comments would be much appreciatedYes I can write it. So can a lot of people. But this
is your schoolwork and you need to do it yourself.
You can do so using GROUP BY.Why make it simple when you can make it fun (especially bearing in mind the specification is to have 0's for the months without a project start)
SQL> ed
Wrote file afiedt.buf
1 WITH table1 as (select 1 as slNo, 'Prj1' as Project, 'issue11' as issueno, to_date('2000-1-19','YYYY-MM-DD') as dt from dual union all
2 select 2, 'Prj1', 'issue12', to_date('2001-2-11','YYYY-MM-DD') from dual union all
3 select 3, 'Prj1', 'issue13', to_date('2002-3-12','YYYY-MM-DD') from dual union all
4 select 4, 'Prj1', 'issue14', to_date('2003-4-13','YYYY-MM-DD') from dual union all
5 select 5, 'Prj1', 'issue15', to_date('2004-5-14','YYYY-MM-DD') from dual union all
6 select 6, 'Prj1', 'issue16', to_date('2005-6-15','YYYY-MM-DD') from dual union all
7 select 7, 'Prj2', 'issue21', to_date('2002-2-11','YYYY-MM-DD') from dual union all
8 select 8, 'Prj2', 'issue22', to_date('2003-3-1','YYYY-MM-DD') from dual union all
9 select 9, 'Prj2', 'issue23', to_date('2004-3-1','YYYY-MM-DD') from dual union all
10 select 10, 'Prj2', 'issue24', to_date('2005-4-1','YYYY-MM-DD') from dual union all
11 select 11, 'Prj2', 'issue25', to_date('2006-5-1','YYYY-MM-DD') from dual union all
12 select 12, 'Prj2', 'issue26', to_date('2007-6-1','YYYY-MM-DD') from dual union all
13 select 13, 'Prj3', 'issue31', to_date('2003-1-10','YYYY-MM-DD') from dual union all
14 select 14, 'Prj3', 'issue32', to_date('2004-2-1','YYYY-MM-DD') from dual union all
15 select 15, 'Prj3', 'issue33', to_date('2005-3-1','YYYY-MM-DD') from dual union all
16 select 16, 'Prj3', 'issue34', to_date('2006-4-1','YYYY-MM-DD') from dual union all
17 select 17, 'Prj3', 'issue35', to_date('2007-5-1','YYYY-MM-DD') from dual union all
18 select 18, 'Prj3', 'issue36', to_date('2008-6-1','YYYY-MM-DD') from dual union all
19 select 19, 'Prj4', 'issue41', to_date('2003-1-12','YYYY-MM-DD') from dual union all
20 select 20, 'Prj4', 'issue42', to_date('2004-2-13','YYYY-MM-DD') from dual union all
21 select 21, 'Prj4', 'issue43', to_date('2005-3-14','YYYY-MM-DD') from dual union all
22 select 22, 'Prj4', 'issue44', to_date('2006-4-15','YYYY-MM-DD') from dual union all
23 select 23, 'Prj4', 'issue45', to_date('2007-5-16','YYYY-MM-DD') from dual union all
24 select 24, 'Prj4', 'issue46', to_date('2008-6-17','YYYY-MM-DD') from dual)
25 ,proj_start as (select slNo, project, issueno, trunc(dt, 'MM') as dt
26 from (select slNo, project, issueno, dt, min(issueno) over (partition by project) as min_issue
27 from table1)
28 where issueno = min_issue)
29 ,mm_dates as (select min(dt) as min_dt, max(dt) as max_dt from proj_start)
30 ,dates as (select add_months(min_dt,rownum-1) as dt
31 from mm_dates
32 connect by rownum <= months_between(max_dt,min_dt)+1)
33 -- END OF TEST DATA
34 select to_char(d.dt, 'YYYY-MM') as dt, count(p.dt) as cnt
35 from dates d LEFT OUTER JOIN proj_start p ON (p.dt = d.dt)
36 group by to_char(d.dt, 'YYYY-MM')
37* order by 1
SQL> /
DT CNT
2000-01 1
2000-02 0
2000-03 0
2000-04 0
2000-05 0
2000-06 0
2000-07 0
2000-08 0
2000-09 0
2000-10 0
2000-11 0
2000-12 0
2001-01 0
2001-02 0
2001-03 0
2001-04 0
2001-05 0
2001-06 0
2001-07 0
2001-08 0
2001-09 0
2001-10 0
2001-11 0
2001-12 0
2002-01 0
2002-02 1
2002-03 0
2002-04 0
2002-05 0
2002-06 0
2002-07 0
2002-08 0
2002-09 0
2002-10 0
2002-11 0
2002-12 0
2003-01 2
37 rows selected.
SQL> -
Compare data between two tables of same schema
Folks,
I have one very intresting query which i would like to share with you all and looking forward for the solution asap.
Scenario
I have two table say TableA and TableB, both having same structre say as below
TableA
Col1 Var(10)
Col2 INT
TableB
Col1 Var(10)
Col2 INT
I want to compare data between these two tables and store compared data into third table, let me expalin the whole scenario.
TableA
ColA ColB
INDIA 1
PAKistan 2
TableB
ColA ColB
INDIA 1
PAK 3
I want result like
Difference
ColA ColB
True 0
False -1
I want to store this difference in thrid table.
i.e. when comparing text, i need TRUE when compare 100% else False, Caption is not considered.
When comparing numeric value, simple sub is requried , TableA-TableB
Note - I dont want to use any external tool to compare the table data, i required sql query to do the same.
Thanks
Amit Srivastava
Amit
Please mark as answer if helpful
http://fascinatingsql.wordpress.com/Whereas the abbreviation of countries that exist in Table2 table are the first three letters of the name of the country*, here's a suggestion:
-- code #1 v2
INSERT into [Difference] (Col1, Col2, ACol1, BCol1)
SELECT case when A.Col1 = B.Col1 then 'true' else 'false' end,
(IsNull(A.Col2, 0) - IsNull(B.Col2, 0)), A.Col1, B.Col1
from TableA as A full outer join
TableB as B on (A.Col1 = B.Col1
or Left(A.Col1, 3) = B.Col1);
Is the COLLATE database case insensitive? If not, the code #1 above will have to be modified, using the upper () function or using COLLATE case insensitive in A.Col1 and B.Col1 columns.
But if the abbreviation of the country follow the
ISO 3166-1 alpha-3 standard, will require a fourth table containing the symbol and name of countries.
-- code #2 v2
;with
TableB_2 as (
SELECT case when Len(Col1) = 3
then (SELECT Country_name from [ISO 3166-1 a3] where Cod = Col1)
else Col1 end as Col1, Col2
from TableB
INSERT into [Difference] (Col1, Col2, ACol1, BCol1)
SELECT case when A.Col1 = B.Col1 then 'true' else 'false' end,
(IsNull(A.Col2, 0) - IsNull(B.Col2, 0)), A.Col1, B.Col1
from TableA as A full outer join
TableB_2 as B on A.Col1 = B.Col1;
Structure and data to test:
use tempdb;
CREATE TABLE TableA (Col1 varchar(10), Col2 int);
CREATE TABLE TableB (Col1 varchar(10), Col2 int);
CREATE TABLE [Difference] (Col1 varchar(10), Col2 int, ACol1 varchar(10), BCol1 varchar(10));
INSERT into TableA values ('INDIA', 1), ('PAKistan', 2), ('China', 12);
INSERT into TableB values ('INDIA', 1), ('PAK', 3), ('Bhutan', 3);
go
CREATE TABLE [ISO 3166-1 a3] (Cod char(3) primary key, [Country_name] varchar(30));
INSERT into [ISO 3166-1 a3] values
('IND', 'India'), ('PAK', 'Pakistan'), ('CHN', 'China'), ('BGD', 'Bangladesh'),
('BTN', 'Bhutan'), ('MMR', 'Myanmar'), ('NPL', 'Nepal');
go
(*) If the short form of the country name using the first three letters of the country name,
false positives can occur. For example,
Mali and Malta or
Angola and Anguilla.
José Diz Belo Horizonte, MG - Brasil -
Transport Order Query(qite intresting)question
HI,
in the transport request i having the inti IP and delta IP
if i'm transported delta IP,is it possible?if yes can u explain?.
if it is not can u explain those scenario's.
thanks
Lekha.hi Lekha,
talking possibility, it's possible from transport point of view, you can delete init IP from that request if not released yet, and make copy request then delete if it's released yet. but you will need both init and delta IP in QAs/Production.
hope this helps.
please take a little time to review your other threads, in one thread you said it's urgent, would love to know if our answers help or not.
if help, we'll feel glad, and please don't forget to reward.
Data selection in info package using ABAP routine.
******Creation of a loading selection for cube in info package level
How to transport BW object -
Is a WITH...SELECT query more efficient than a SELECT query ?
Hi folks,
Is the WITH...SELECT just a convenience or is it really efficient than a simple SELECT with UNION ALL ? e.g. is the following:
with rset as (select dname,empno,ename,hiredate,sal from emp e,dept d where e.deptno=d.deptno)
select dname,empno,ename,hiredate,sal,
case
when trunc(hiredate) < to_date('19800101','yyyymmdd') then 'Hired before 1980'
when trunc(hiredate) between to_date('19800101','yyyymmdd') and to_date('19851231','yyyymmdd') then 'Hired between 1980 and 1985'
else 'Hired after 1985'
end as notes
from rset
union all
select dname,empno,ename,hiredate,sal,
case
when sal < 500 then 'Salary less than 500'
when sal between 501 and 1500 then 'Salary between 501 and 1500'
else 'Salary greater than 1500'
end as notes
from rset;
better than the following:
select dname,empno,ename,hiredate,sal,
case
when trunc(hiredate) < to_date('19800101','yyyymmdd') then 'Hired before 1980'
when trunc(hiredate) between to_date('19800101','yyyymmdd') and to_date('19851231','yyyymmdd') then 'Hired between 1980 and 1985'
else 'Hired after 1985'
end as notes
from emp e,dept d where e.deptno=d.deptno
union all
select dname,empno,ename,hiredate,sal,
case
when sal < 500 then 'Salary less than 500'
when sal between 501 and 1500 then 'Salary between 501 and 1500'
else 'Salary greater than 1500'
end as notes
from emp e,dept d where e.deptno=d.deptno;
I am a newbie at sql tuning. Apparently, the first query should be faster because it runs the actual query only once and then just works on the resultset obtained. Is this thinking correct ?
Thanks a lot!!
JPAlso I tried a test here with a ten million row emp table queried five times, and explain plan showed the optimizer would read emp five times and not once.
Re: Intresting question
Apparently, the first query should be faster because it runs the actual query only once
and then just works on the resultset obtained.But my test combined with Jonathan's article made me question whether materializing ten million rows somewhere would be faster than querying them five times. Somehow I doubt it. -
Query takes very very long time to display on the web portal.
HI Gurus
My query takes very very long time to display the result on the web.It takes almost 30 mins to show the
results.However when I execute the same query in analyzer it shows the result in 10 Sec.
Gurus could u please let me what r the steps required to increase teh performance of it.
What steps BI Consultant take to resolve it . Is it a portal issue.
Regards
loyeeHi,
you can use the following parameters to the start URL: &PROFILING=X&TRACE=X. They could be set in iView of Portal as well as the url of the webtemplate. You will get information about performance of the web application.
Additional check this notes:
NW 7.0 BI Web Applications: Performance Problem Analysis
SAP Note Number: [1048691|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
Performance problems when you start a query in Java Web
SAP Note Number: [950602|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler]
Also intresting threads:
Re: Poor performance Web vs Bex
Re: BEx vs the Web : Which provides better performance
Regards
Andreas -
Is it possible to create a query on master data infoobject ?
Client is intrested to see material attributes in query and when I was trying to create a query , i did not find an option of Infoobject .
PLease suggest .Insert the characterstics as info provider and then only this object will be available for u in the Query designer
and then as u drag and drop in query designer to create query u can proceed
Thanks
Shivani -
1 Workbook, 1 Query, Many reporting criteria
Hello Experts,
I suspect this has been asked before but I simply can't find a matching thread.
Requirement: a single page to report on daily sales by country. There are 2 countries of intrest: UK & Switzerland.
Current Solution: For ease of maintenance, I have a single query that prompts for Country. Enter 'UK' and daily sales for the UK are reported. Enter Switzerland and Swiss daily sales are reported. Great.
A workbook has been created and the query embedded into it twice. One should report UK Daily Sales and the other Swiss.
Challenge: On workbook refresh, a prompt forces country selection. Then both queries display the same result set. (UK if Country variable selected is 'UK').
Question: How do I continue to use a single query, and yet be able to display Daily Sales for UK & Switzerland on the same page of a workbook?
Many thanks for your input, points will be assigned of course.Hi,
Just remove country variable. Try to put hard coding on country code and see if it works.
Thanks and regards
Kiran -
TDS Certificate (Form 16A) for intrest to Securities (194A)
Hi All,
I have a query, My client receives Security Deposit from its Customers and pay Interest to them. Due to this, it has to deduct TDS also on the Interest Paid.
I have created Withholding tax Code for Intrest on Securities which is Section Code (194A). My client have more than 3000 customers for this scenario, How can I print Form 16A for this particular customer?
Please let me know.
Thanks
Best Regards
Shashi.MHi,
Thanks for your reply. But I am encountering the following issues.
1. J1INMIS - I am not getting the data customers with this T-Code. Only thing is I can see the transactions which I posted to Vendors
2. J1INCC - I believe that to print form for customer we need to use J1INCC T-Code. But through this T-code I am not getting the right format (I have assigned the same EWT- J_1IEWT_CERT- Form). Alingment is getting changed for customer. What could be the reason?
Please let me know
Thanks
Best Regards
Shashikanth.M
Edited by: shashi mantripragada on Apr 7, 2010 9:40 AM
Edited by: shashi mantripragada on Apr 12, 2010 2:14 PM -
Query regarding BT having incorrect info
Hi there
Im currently a Sky broadband customer after moving properties im intrested in getting Infinity - when I had my original line activated the BT engineer confirmed that the cabinet im connected to does indeed have fibre hardware - however every checker I put my details in said no.
After having another engineer out a second time to fix a line fault I queried this with him again and he confirmed that the old block of flats that were here before used to be connected to a differnt cabinet and the new flats details havent been upgraded by BT to reflect this. I have checked and found the green cabinet in question too!
How do I go about recifying this? The service im getting with Sky isnt amazing and id obviously like more speed! It will just mean ending the contract with Sky early! Erk - wonder how much that is going to cost!!
Any help appreciated
JCThanks for the info Im actually pretty au fait with the technology and its definately a fibre cabinet (sad but ive actually watched the openreach training video http://www.youtube.com/watch?v=53NcsctuxV0)
PMing the mods and seeing what they can do if anything anyway! Just hope the engi wasnt pulling my leg!
Thanks JC -
BEx Query designer : Run-time error '457'
Hey,
We installed the standard query's for HR. When we try to change the query 'Average age of employees', and we try to restrict on 'Calender year/month' then we receive this error.
Run-time error '457' : This key is already associated with an element of this collection.
We're using version 3.50.
I already saw oss note 517232 but that was for version 2.0 and not intresting for my case... Anybody any idea?
Kind regards,
Tom
PS : I also saw : https://forums.sdn.sap.com/click.jspa?searchID=1049118&messageID=1649858 & https://forums.sdn.sap.com/click.jspa?searchID=1049118&messageID=2243413Hi,
Check this conditions as I haven't checked the queries ......make sure that these two conditions are not getting into picture after you make the changes to the query.
1) When we are making restricted key figures we cant use same variable to restrict to two different Characteristics in the same RKF.
2)Once a Variable used to restrict a characteristic in one RKF you cannot use it to restrict it other characteristic in other key figures i.e. You can use it to restrict that particular characteristic only in other key figures.
Hope it helps
Thanks -
Need help to change BO generated query at universe leavel
Hi
Is there any possiblity to change sql at universe leavel.Kindly help me i am new to designer.
The below is the BO generated query.
SELECT specObjID
FROM SpecObj
WHERE SpecClass = dbo.fSpecClass('UNKNOWN')
Users are not intrested to go for coustomised sql in report leavel.
I need to change the above sql accordingly due to some performance issues.
The feilds that specify in the where clause SpecClass = dbo.fSpecClass('UNKNOWN') move to from clause.
Like below
SELECT specObjID
FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN')
WHERE
Kindly suggest me greatly appriciated.
Thanks.
RajHI,
As per your expectation query like below is not possible to give condition in from clause as per my understand,
SELECT specObjID
FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN')
WHERE
I think your expected result can be achieved by giving condition while creating the object SpecObj.
Steps:
Go to universe, then edit the object SpecObj there you can give the where clause condition
WHERE SpecClass = dbo.fSpecClass('UNKNOWN')
This will increase your performance.
Regrds,
Ragoth.C -
Unusable cause very slow automatic query
SQLdeveloper frequently freeze up for minutes in our development instances (EE 11.2.0.3), which have an huge amount of schema, objects and synonyms.
Freezing is due to following query, I suppose automatically issued in order to discover accessible objects:
/*+ NO_SQL_TRANSLATION */
SELECT 'SCHEMA' type, username owner, username object_name, null column_name, null column_id, null data_type
FROM all_users
WHERE rownum <=50 and username like :1 union all /*+ NO_SQL_TRANSLATION */
SELECT object_type type, owner, object_name, null column_name, null column_id, null data_type
FROM all_objects
WHERE object_type ='TABLE' and object_name not like 'BIN$%' and rownum <=50 and object_name like :2 union all /*+ NO_SQL_TRANSLATION */
SELECT object_type type, owner, object_name, null column_name, null column_id, null data_type
FROM all_objects
WHERE object_type ='VIEW' and object_name not like 'BIN$%' and rownum <=50 and object_name like :3 union all /*+ NO_SQL_TRANSLATION */
select 'TABLE' type, SYS_CONTEXT('USERENV','CURRENT_SCHEMA') owner, synonym_name object_name, null column_name, null column_id, null data_type
from all_synonyms
where synonym_name like :4 and rownum <=50 and owner in (SYS_CONTEXT('USERENV','CURRENT_SCHEMA') ,'PUBLIC')
The query is from a SQLDeveloper v. 3.2.09, but we had similar problems with older versions.
I tried ad-hoc profile with EM's sql tuning advisor, but the gain in minimal. Looking at execution plain seems like the major problem is the union with the all_synonyms views, actually slow by itself (a known issue with our architecture since Oracle DB 10.2.0.4, as far as I remember).
Are there any workarounds to avoid the query or any parameter to force it using instead "user_synonyms"? Synonyms of other users are rarely intresting in object tree panel, we gladly gladly renounce to them...This forum is actually for SQL*Developer questions. Your qustion is about SQL and performance and should probably be posted in the SQL and PL/SQL forum.
You can verify if it is SQL*Developer issue (possible but unlikely) by running it in another evironment like SQL*PLUS.
However, since we are here anyway ...
I performed searches in Google, My Oracle Support, and the 11gR2 documentation for NO_SQL_TRANSLATION and found nothing of any use. Did you mean NO_QUERY_TRANSFORMATION? If the hint you are using does not exist it will be ignored and by itself cause no problems. If it does exist (unlikely because there are lists of undocumented hints to be found on the internet) it shoud probably not be used since nothing is known about it. Does anything happen if you remove it and run the query?
Post an execution plan of your SQL.
A visual scan of your query (hard because it was unformatted)0
1. lever SQL joined by unions. hard to read since the UNION operators were randomly placed in the SQL
2. Multiple queries against data dictionary. If not queried by keys reading data dictionary tables can be slow -
Is there any way where I can see the frequently used reports?
Hello,
Spoorthy if u r working on BI 7.0 then u need to install BI statistics cubes i.e. 0tct_c01 which captures aggregated run time query statistics.
Once it is installed you can create your own queries on this infoprovider.
Important key figures in your case wud be :
0tctwtcount: no. of times a BI application(web template) is accessed.
0tctqucount: no. of times a BI Application Object(Query) is accessed or navigated.
The metrics obtained from this infoprovider is very useful for intresting analysis.
Do let me know via this thread if you need any help on this topic.
Thanks and Regards
Priyanka
Edited by: Priyanka on Jan 22, 2009 4:00 PM -
Error while running a query-Input for variable 'Posting Period is invalid
Hi All,
NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
Diagnosis
Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
System Response
Procedure
Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
Procedure for System AdministrationOK.
Well, if the variable is not used in any interval selection, then I would say "something happened to it".
I would make a copy of the query and run it to check if I get the same problem with period 12.
-> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
If so, then try removing the variable completely from the query and hardcode restriction to 12.
-> If problem still persists, I would have to do some thinking.
If problem is gone, then add the variable again. Check.
-> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
Good luck!
Jacob
P.S: what fisc year variant are you using?
Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM
Maybe you are looking for
-
Hi, I created a PDF form with fields and combo boxes. some of them have to be filled before sending the form. but this only works with the textfields and not with the combo boxes. these are not marked with red rectangle as the text fields. please hel
-
My online pdf viewer does not seem to display the menu bar (as in the ones that pop up when you click a link for a form or journal). I have tried F9 and Alt-T, but none of them seem to work.... A little help please? Thanks
-
I installed my ipod nano today and my computer recognizes the ipod but itunes wont' work. when i click on it to start it it brings up the license agreement and then it disappears and itunes never starts. can anyone help?
-
Enable personalization option in masthead for the custom role
enable personalization option in masthead for the custom role for end user without using eu_role or admin roles
-
How to replace the "Recently Added" and "Recently Played" folders
Don't ask, I accidentally erased them thinking I was erasing the list under each of those two folders. Help!