Problem while designing query please help
Hi all,
I have to query to find No of open cases, No of closed cases,
Average of open cases, Average age of closed cases,
Maximum of closed cases for a particulat Current assigne(char).
my desired output is as follows.
CurAssigne Noofopencases Noofclosed cases Avgage(opencases) Max(open)
CurAssigne1 10 20 8 9
CurAssigne1 18 22 9 10
My cube is consists of.
4 Dimensions & 4 key figures
4Dimensions are listed below.
Business Partner{currentassigne, previousassigne,acmanager}
createdon{createdonmonth,createdonday,createdtime}
closedon{closedmonth,closedday,closedtime}
Status{Latest case status-(2 status are available for each case - open,close)}
above the objects between {} are chars.
4 keys are listed below.
no of cases.
age
first response time
research time.
Please help me to design this query friends..
It's very urgent friends please help me.
Hi,
Please share your system configuration on which you are trying to install Ps CS6.
Regards,
Ashutosh
Ps Installer QE
Similar Messages
-
Problem while installing CS6, Please Help
Hello everyone, I almost search every help available around the internet for my problem and can't figure that out. Hope you guys might had better knowledge about that. I am facing a problem while installing Photoshop CS6 version and I already deleted my previous version and I am receiving the pop of "LOW COMPATIBILITY". Please tell me what might be the problems and the way to get out of this situation so that I can continue doing work for my deals site dealaboo.
Hi,
Please share your system configuration on which you are trying to install Ps CS6.
Regards,
Ashutosh
Ps Installer QE -
PROBLEM WITH HIERARCHICAL QUERY - PLEASE HELP
I have got three tables :
CREATE TABLE FIRM
(FID INTEGER NOT NULL PRIMARY KEY,
FNAME VARCHAR(40),
FTYPE VARCHAR(3),
MASTERID INTEGER );
CREATE TABLE FACULTY
(FAID INTEGER NOT NULL PRIMARY KEY,
FANAME VARCHAR(40),
FATYPE VARCHAR(3),
MASTERID INTEGER );
CREATE TABLE EMPLOYEE
(EID INTEGER NOT NULL PRIMARY KEY,
ENAME VARCHAR(20),
ESURNAME VARCHAR(20),
EJOB VARCHAR(3),
MASTERID INTEGER );
This is a hierarchical tree(or is ment to be, I,m complete rookie ) . Firm can be the root or can be slave to another firm. Faculty can be slave to firm, or to another faculty. Employee can be slave to faculty or to another employee(e.g. boss). This connections are specified by MASTERIDs.
I need to write a procedure, which parameter would be node ID. It is meant to create a VIEW from this node as if it was a root (view of a subtree).
I tried CONNECT BY clause but it works only on one table at a time and I have here three tables.
I completely don,t know how to write it. Please help.create view hierarchy as
select id, master_id, name from table1
union all
select id, master_id, name from table2
union all
select id, master_id, name from table3
Then do your connect by query against hierarchy.
It will not work in 8i (connect by on views not allowed), so you will need to materialize the view.
Kirill -
Creteria Problem with my Query Please Help!
My Query is pulling all Note_Types even tho I specify to pull only Note_Type equal to PHA can someone help?
Thanks! If this is not the right place or more information is needed please let me know.
SELECT
nm.note_type,
a1.auth_number,
a1.auth_type,
a1.place_of_service,
a1.overall_status,
a1.closed_reason,
a1.denied_reason,
TO_CHAR (ap.decision_date,'mm/dd/yy') "Decision Date",
ap.advisor_decision,
pm.last_name,
pm.provider_id,
nm.note_text,
TO_CHAR (a1.insert_datetime,'mm/dd/yy') "Insert Date",
a1.active_physician_advisor,
mv.Line_of_business
FROM windsoradm.auth_master a1
INNER JOIN windsoradm.auth_phys_advisor ap
ON a1.auth_number=ap.auth_number
INNER JOIN windsoradm.prov_master pm
ON ap.seq_prov_id=pm.seq_prov_id
LEFT JOIN windsoradm.note_master nm
ON nm.seq_memb_id=a1.seq_memb_id
INNER JOIN windsoradm.member_mv mv
ON mv.seq_memb_id=a1.seq_memb_id
Where mv.Line_of_Business 'SFS'
AND nm.note_type='PHA'
AND note_date > sysdate-'60'
AND a1.active_physician_advisor = 'Y'
AND a1.closed_reason ='A06'
OR a1.closed_reason is Null
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/05/2012','MM/DD/YYYY')My Query is pulling all Note_Types even tho I specify to pull only Note_Type equal to PHA can someone help?You have specified a left join (aka left outer join) with windsoradm.note_master which will return all record. However later you specify of "PHA" which breaks the left join syntax as it should have been in the ON clause. Why are you using like this?
Below is how you use left out join along with constant
SELECT *
FROM TABLE1 LEFT OUTER JOIN TABLE2
ON TABLE1.COL1 = TABLE2.COL1 AND
TABLE1.COL2 = TABLE2.COL2 AND
SOME_CONSTANT = TABLE2.COL3Also the condition compared below does not look right which looks to be the cause of your problem
-- Existing
AND a1.closed_reason ='A06'
OR a1.closed_reason is Null
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/05/2012','MM/DD/YYYY')
-- Suggested - Use OR in paranthesis
AND ( a1.closed_reason ='A06' OR a1.closed_reason is Null )
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/05/2012','MM/DD/YYYY')
{code}
In Oracle syntax it should look like
{code:sql}
SELECT NM.NOTE_TYPE,
A1.AUTH_NUMBER,
A1.AUTH_TYPE,
A1.PLACE_OF_SERVICE,
A1.OVERALL_STATUS,
A1.CLOSED_REASON,
A1.DENIED_REASON,
TO_CHAR (AP.DECISION_DATE,'MM/DD/YY') "DECISION DATE",
AP.ADVISOR_DECISION,
PM.LAST_NAME,
PM.PROVIDER_ID,
NM.NOTE_TEXT,
TO_CHAR (A1.INSERT_DATETIME,'MM/DD/YY') "INSERT DATE",
A1.ACTIVE_PHYSICIAN_ADVISOR,
MV.LINE_OF_BUSINESS
FROM WINDSORADM.AUTH_MASTER A1,
WINDSORADM.AUTH_PHYS_ADVISOR AP,
WINDSORADM.PROV_MASTER PM,
WINDSORADM.NOTE_MASTER NM,
WINDSORADM.MEMBER_MV MV
WHERE A1.AUTH_NUMBER = AP.AUTH_NUMBER
AND AP.SEQ_PROV_ID = PM.SEQ_PROV_ID
AND A1.SEQ_MEMB_ID = NM.SEQ_MEMB_ID(+)
AND MV.SEQ_MEMB_ID = A1.SEQ_MEMB_ID
AND MV.LINE_OF_BUSINESS = 'SFS'
AND NM.NOTE_TYPE(+)='PHA'
AND NOTE_DATE > SYSDATE - 60
AND A1.ACTIVE_PHYSICIAN_ADVISOR = 'Y'
AND (A1.CLOSED_REASON ='A06' OR A1.CLOSED_REASON IS NULL )
AND A1.INSERT_DATETIME BETWEEN TO_DATE ('04/01/2012', 'MM/DD/YYYY') AND TO_DATE ('04/05/2012','MM/DD/YYYY')
{code} -
i'm using firefox 3.6.10 in windows xp it always crushes while playing farmville please help me to resolve my problem i already disabled some of my adds on and i re-install firefox, now i cannot totally open any games in face book. it says you must upgrade your flash player but it is updated. i tried to open it in google chrome and in other browser there was no problem. what should i do? please help me. thanks in advance. GOD BLESS!
Looks like a problem with the MyWeb Search bar.
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]] -
Problem while designing an RPD
Hi Experts,
I have a problem while designing a chat.
Basically I have a pivot table with X axis as calendar week ( 9 weekend dates) and Y axis as value a A
Value of A in Y Axis
X axis as : 2/6/2010, 1/30/2010, 1/23/2010, 1/16/2010, 1/9/2010, 1/2/2010, 12/26/2009
Now my customer wants percentage value of
1. Current week verses last week i.e value of 2/6/2010 with 1/30/2010
2. Current week verses last month 1st week.2/6/2010 with 1/2/2010
It will be great if someone can give me an idea how to design this ( might be in RPD/Answers/Chat/Pivot table)
Someone suggested me
It will be easy to do at RPD. YOu have to create metrics based using time series functions. Use Ago() function and calculate WeekAgo and Month Ago metrics. "
But how? Could you please explain me in detail?
I appreciate all your help
Regards
JanThere is a solution in answers, but not bullet proof,. But give a shot if you like it
assuming you have date column, metric column( like quantity sold) in your report,.
1. Add metric column to the report again and change the column formula to following and check this table view. Which gives you prior week value in every row.
msum(Sales."Quantity Sold",2)-Sales."Quantity Sold"
2. then add metric column again to report, change the folmula like following
((msum(Sales."Quantity Sold",2)-Sales."Quantity Sold" )* 100) / Sales."Quantity Sold"
make you are closing braces correctly. above formula give you % change from last week to this week. Then use this new column in chart to show values.
You can try same logic for Month Ago week value. but you need to change Msum function to get 4 weeks before value.
liek this.... msum(Sales."Quantity Sold",5)-msum(Sales."Quantity Sold",4) will give 4 rows back value.
for all this you report is sorted by date. -
HT5642 Unable to download app this time error while downloading app please help!!!
when i download some app from apps store i get the following error
"Unable to download app this time error while downloading app" please help!!!
i ve tried these Things but
didnt workout yet
1) i tried hard reset
2)i tried logout/login Itune & appstore
3)Connected to pc and rest setting Network and Full Rest
all of no use... i dont want to update my softwre from IOS 6.0
Plx help!1Hey Prahaladvatsan,
Thanks for the question. If I understand correctly, there is a blank app icon on the home screen. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
Restart or reset your iPhone, iPad, or iPod touch - Apple Support
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
Thanks for using Apple Support Communities.
Have a good one,
Mario -
I have tried everything but I can't connect my iphone to my laptop. It says that apple mobile device failed to be installed. I have read everything on the internet and did everything but still am facing the same problem. Can you please help me.
Again without stating the trouble shooting steps you have taken, its hard to direct you with any information.
Try a different port on the computer.
Does the iphone beep when u plug it up. ?
Plug iphone into computer and give it 3 to 4 minutes to see if it connects and is running slow.,
Delete the apple mobile device from your computer.
Upgrade itunes to newest version.
Is you USB cord defective ?
Any USB 3.0 on your system ? .
Delete or Disable any antivirus program on your computer ?
I will tell u the problem is your computer not the phone.
We could do this for hours. -
How to improve the performance of the attached query, Please help
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1Hello,
This has really nothing to do with the Oracle Forms product.
Please, send the SQL or/and PL/SQL questions in the corresponding forums.
Francois -
Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help ?
You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(104569) -
Developer 6 Timer Problem... Please help
Hi all,
I have installed Developer 6(Oracle Product) on my system. I am facing a strange problem whenever I try to use Create_Timer built in. The cursor moves to starting of the Item being modified as soon as the space bar is pressed (timed for timer expiration). If I remove the Built-in the problem is resolved.
Please help urgently.
Regards
AnandUpgrade to the latest patch and the problem shoudl go away - this issue was fixed I think in 6.0.8.13+
You can also try setting Keey Cursor position to Yes on the item. -
HT1926 i've tried so many times but the problem still exists! please help!!
i've tried so many times but the problem still exists! please help!!
Could you describe what your problem is, please?
-
What to do when iTunes cannot sync my iPad 3. Problem Event Name: BEX
Please Help to solve...Hi Ahmed,
In iTunes, go to the Store in the left menu, select iTunes Store, wehn it opens, make sure you are on the home screen (icon of a house in the menu bar) and from the righthand side, select Account.
Next you will see all of your account information. Just a little don, you will find: Apple ID overview, there it says, Authorised computers; click on the button to deauthorise.
And you should be done.
Grtz, Carl. -
No sound for incoming calls but it works using speaker and earpiece. I can't hear anything but the other party can hear me clearly. I was told it's hardware problem. Would anyone please help me? Thanks
This is an annoying problem for many people. Most likely your dock connector (on the bottom where you plug in your phone) is dirty or screwed up and is probably just coincidence that it happened after you updated. Some people have had success cleaning the port with a dry clean tooth brush. There is a long discussion going on at the thread I linked below. Good luck...
https://discussions.apple.com/thread/2475631 -
Soap2JDBC : Problem while designing data structure for Query
Hi ALL,
I am doing webservices(SOAP) to JDBC(syn) scenario without using BPM.We are sending the request from portal and getting the response from database.
I have lot of Queries.I am going to design based on the database Query.Please find the following Query.
SELECT ALL DBTEST.REQMASTBL.RQTR,
DBTEST.REQMASTBL.RQN_NO,
DBTEST.REQMASTBL.RQN_DATE,
DBTEST.REQMASTBL.APPROVE_BY,
TO_NUMBER(DBTEST.REQMASTBL.RQN_AMT), DBTEST.REQMASTBL.RQN_TYPE,
DBTEST.REQMASTBL.ROS_DATE,
DBTEST.REQMASTBL.RQN_STATUS
FROM DBTEST.REQMASTBL
WHERE DBTEST.REQMASTBL.RQN_STATUS='AP' AND
DBTEST.REQMASTBL.APPROVE_BY LIKE UPPER('GM%') AND DBTEST.REQMASTBL.RQTR='GM211' AND DBTEST.REQMASTBL.RQN_DATE BETWEEN (:frmDate) AND (:toDate) ORDER BY DBTEST.REQMASTBL.RQN_NO
All most all the queries having the same functionality.Could anyone please guide me how to design and how to map the source and the target fields using the Boolean(and,or.like,between) functions.
Now the problem is How to design the data stucture in Integration Repository using this query and how to extract these(and,or.like,between) functions.
urgent response is highly appreciated
rgds,
VeenaHi Gurus
Iam getting the error like this
HTTP error:could not post file
'/XISOAPAdapter/MessageServlet?channel=:BS_SS:soap_communicationchannel&version=3.0&Sender.service=BS_SS&Interface=http%3A%2F%2Fsoap2db1%5Eportalsoap_outbound_messinterface' on server
this is the message iam getting from Portal side.Here iam testing using altova xml spy tool.
in this context
BS_SS is my sender business system
soap_communicationchannel i s my sender communication channel
Sender.service=BS_SS (again my sender business system)
portalsoap_outbound_messinterface is my message interface
I badly required the help from experts.
Regards
Veena
Maybe you are looking for
-
Hi all, I have created WD Abap iviews on Portal (EP 7.0). These iviews are behaving weirdly. Initially they were working fine, however they have suddenly started flickering. The application does not load when i open the iview, infact it simple keeps
-
Help with Starting My Project [Project AM]
I apologize in advance if this is not in the correct forum. //The next two paragraphs are a rundown of why I am doing this project and my previous experience with Java// Here's where my story starts, I've just started out a new year of school and I'v
-
How to create an email "leave a reply" section
I need to know how to create somthing like the "leave a reply" section from this link. http://www.magpress.com/blog/introducing-adobe-edge-web-fonts-alternat ive-to-google-web-fonts
-
Hello! Users are trying to submit data within a form, but they get the following error message: <<The cell or chart that you are trying to change is protected and therefore read-only. To modify a protected cell or chart, first remove protection using
-
Is there any hope for my HD?
Hi, hoping someone can help me out here. My G4 froze up this morning, when I restarted I got the flashing question marks, and it won't boot from the HD. I've rebooted using the software CD, and it tells me that it can't recognise the HD. I've run Dis