Combining the 2 CODES (thanks)
I want to combine the first code (below) with the second.Then the second code gives me the unit and the number of people per quarter.
I want to use the first code to alaculate the slope, etc. transmitted... from code 2 below
Just want to know how to join both
1 CODE
SELECT REGR_SLOPE(CNT,RN) R_SLOPE,
REGR_INTERCEPT(CNT,RN) R_INTERCEPT,
REGR_COUNT(CNT,RN) R_COUNT,
REGR_R2(CNT,RN) R_R2,
regr_avgx(cnt,rn) r_avgx,
REGR_AVGY(CNT,RN) R_AVGY,
REGR_SXX(CNT,RN) R_SXX,
REGR_SYY(CNT,RN) R_SYY,
REGR_SXY(CNT,RN) R_SXY
from (select count cnt,row_number() over (order by terms) rn
from the_data
)
where cnt != 0
R_SLOPE R_INTERCEPT R_COUNT R_R2 R_AVGX R_AVGY R_SXX R_SYY R_SXY
0.241071429 66.58035714 8 0.007238845 9 68.75 336 2697.5 81
I want to compbine it with this codeCODE 2
SELECT unit, UNIT_TITLE, acad_org,
term_1201,term_1202,term_1203,term_1204,term_1205,term_1206,
FROM (SELECT unit,UNIT_TITLE,acad_org,
term_1201,term_1202,term_1203,term_1204,term_1205,term_1206,
ROW_NUMBER () OVER
(PARTITION BY unit
ORDER BY
term_1201 DESC,term_1202 DESC,term_1203 DESC,term_1204 DESC,term_1205 DESC,term_1206,
) rn
FROM (select UNIT, UNIT_TITLE, acad_org,
nvl(max( decode( term, 1201, d_pct )),0) term_1201,
nvl(max( decode( term, 1202, d_pct )),0) term_1202,
nvl(max( decode( term, 1203, d_pct )),0) term_1203,
nvl(max( decode( term, 1204, d_pct )),0) term_1204,
nvl(max( decode( term, 1205, d_pct )),0) term_1205,
nvl(max( decode( term, 1206, d_pct )),0) term_1206,
from (select E.sub|| E.cat = c.sub || c.cat unit, E.TERM,C.UNIT_TITLE, C.acad_org,
COUNT (E.OUA_ID) d_pct
from TABLE1 E, TABLE2 C
WHERE E.sub|| E.cat = c.sub || c.cat
and E.year = c.year
AND E.YEAR = '2012'
GROUP BY E.subject_cde || E.catalogue_no, E.TERM, C.UNIT_TITLE, C.acad_org)
GROUP BY UNIT, UNIT_TITLE, acad_org))
WHERE rn = 1
order by unit
Makes me:UNIT UNIT_TITLE ACAD_ORG TERM_0801 TERM_0802 TERM_0803 TERM_0804 TERM_0805 TERM_0806
ABC11 Taxation CURTN 19 14 15 0 0 12
So when the two are to combine my final answer would be something like:RESULT
UNIT UNIT_TITLE ACAD_ORG TERM_0801 TERM_0802 TERM_0803 TERM_0804 TERM_0805 TERM_0806
ABC11 Taxation CURTN 19 14 15 0 0 12
WITH THAT.All on a single line
R_SLOPE R_INTERCEPT R_COUNT R_R2 R_AVGX R_AVGY R_SXX R_SYY R_SXY
0.241071429 66.58035714 8 0.007238845 9 68.75 336 2697.5 81
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64biThank you
Published by: Chloe_19 on 08/02/2012 00:07
Maybe (just extend the other final step)
with
base_data as
(select e.subject_cde || e.catalogue_no unit,
c.unit_title,
c.acad_org,
e.term,
count(e.oua_id) d_pct
from table1 e,
table2 c
where e.sub || e.cat = c.sub || c.cat
and e.year = c.year
and e.year = '2012'
group by e.subject_cde || e.catalogue_no,e.term,c.unit_title,c.acad_org
),
regr_calcs as
(select unit,unit_title,acad_org,
regr_slope(d_pct,rn) r_slope,
regr_intercept(d_pct,rn) r_intercept,
regr_count(d_pct,rn) r_count,
regr_r2(d_pct,rn) r_r2,
regr_avgx(d_pct,rn) r_avgx,
regr_avgy(d_pct,rn) r_avgy,
regr_sxx(d_pct,rn) r_sxx,
regr_syy(d_pct,rn) r_syy,
regr_sxy(d_pct,rn) r_sxy
from (select unit,
unit_title,
acad_org,
d_pct,
row_number() over (partition by unit,unit_title,acad_org order by term) rn
from base_data
where pct != 0
)
group by unit,unit_title,acad_org
),
pivoted as
(select unit,unit_title,acad_org,
term_1201,term_1202,term_1203,term_1204,term_1205,term_1206
from (select unit,unit_title,acad_org,
term_1201,term_1202,term_1203,term_1204,term_1205,term_1206,
row_number() over (partition by unit
order by term_1201 desc,term_1202 desc,term_1203 desc,
term_1204 desc,term_1205 desc,term_1206 desc
) rn
from (select unit,unit_title,acad_org,
nvl(max(decode(term,1201,d_pct)),0) term_1201,
nvl(max(decode(term,1202,d_pct)),0) term_1202,
nvl(max(decode(term,1203,d_pct)),0) term_1203,
nvl(max(decode(term,1204,d_pct)),0) term_1204,
nvl(max(decode(term,1205,d_pct)),0) term_1205,
nvl(max(decode(term,1206,d_pct)),0) term_1206,
from (select unit,unit_title,acad_org,term,d_pct
from base_data
)
group by unit,unit_title,acad_org
)
)
where rn = 1
)
select p.unit,p.unit_title,p.acad_org,
p.term_1201,p.term_1202,p.term_1203,p.term_1204,p.term_1205,p.term_1206,
r.r_slope,r.r_intercept,r.r_count,r.r_r2,r.r_avgx,r.r_avgy,r.r_sxx,r.r_syy,r.r_sxy,
(r.r_intercept - p.term_1201) / r.r_slope new_term_1201,
(r.r_intercept - p.term_1202) / r.r_slope new_term_1202,
(r.r_intercept - p.term_1203) / r.r_slope new_term_1203,
(r.r_intercept - p.term_1204) / r.r_slope new_term_1204,
(r.r_intercept - p.term_1205) / r.r_slope new_term_1205,
(r.r_intercept - p.term_1206) / r.r_slope new_term_1206
from pivoted p,
regr_calcs r
where p.unit = r.unit
p.unit_title = r.unit_title
p.acad_org = r.acad_org
Concerning
Etbin
Tags: Database
Similar Questions
-
Is it possible to apply several discount business catalyst Online Store Shopping Cart codes? Out of the box, only can be applied / indeed.
Looking to apply the discount by product codes:
Product A gets 50% off
Product B gets $ 25 off
The entire order gets free shipping
Hey,.
I'm afraid that this is not possible at the present time, the discount code that only one can be applied per order.
Kind regards
Mihai
-
When you drag the file on the external drive I get the error code-43? What it means? How to fix? Thank you!
Restart the computer and try again.
-
Hello, my HP is locked because my child tries to open it. the display code is 53822445 THANKS a lot!
Hello
Enter: 42780481
Kind regards
DP - K
-
Ideas:
- When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you
I tried to download the RegCure as advised, but the problem still exists...
Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.
See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
3310xi is to get an 0xc05d2381 error code. Ink system has failed. Unable to copy, receive phases or printing. See documentatiom of the printer. Thank you for your help. Windows XP
Generally, these 0 x codes indicate an internal error state in the printer. Generally, these are related to the ink system, but not always. Your printer says ink system failure in the error message?
Also, see the steps in the document found here to solve this error code. Let me know how it goes.
-
Hello, I got a serial number for adobe package I installed 3/4 years ago, but I don't know where I put the serial number and now I need it! Is anyway to find the series through the application code? Thank you!
If it's a Windows machine, and then try running Belarc Advisor
http://www.Belarc.com/free_download.html
For a Mac, you can try:
-
Help me please. Deactivation of the system code [88479353]. Thank you
Hello
Enter: 37551995
Kind regards
DP - K
-
I wrote a simple html Web page with menus and pull-down (using Dreamweaver) which also includes a contact form. The contact form is in PHP. However, when I run the html file, all right and that the contact form appears, however, she does not run PHP code. Do I have to make any changes of setting or download all the files? Thank you very much
If you run your own apache server, then you need also a mail server, but if you use a hosted service then your host should have the scripts and HTML on their Web site. Otherwise, you can use Wufoo free version and you can create your own form and code (JavaScript) that can be integrated into your HTML page. I used Wufoo in Joomla sites and it works very well.
-
Explain to me please copy the following code (in English)! Thank you.
Hi all
I work with some AS3 code that someone else wrote. The code creates data tables and filled by pulling of a webservice .NET using SOAP and data tables.
I copied and pasted the code below. Most of it makes sense and I understand it, however, there are some things that I've never seen before and have not been able to find on the internet. Most of the things I have a problem with, I created uppercase comments with my questions.
If someone could take a look and tell me what's going on I'd be happy.
Thank you.
//Load result data into XMLList structure var xmlData:XML = XML(myService.GetViewResults.lastResult); //gets the DataTables data, length of tableXML is the number of Tables you got var tableXML:XMLList = xmlData.GetViewResultsResult.DataTables.children(); //gets the number of tables returned in the result var numTables:int = tableXML.children().length(); //seperates out the data for each table var tempXMLArray:Array = new Array(); var tempXML:XML; for (var i:int=0; i<numTables; i++) { tempXML = tableXML[i]; tempXMLArray.push(tempXML); } //create a datagrid for each table var datagrid1:DataGrid, datagrid2:DataGrid, datagrid3:DataGrid; //create array collections to feed datagrids var ac1:ArrayCollection, ac2:ArrayCollection, ac3:ArrayCollection; var currentTableXML:XML; var columns:Array = new Array(); var dgc:DataGridColumn; var obj:Object; // WHY IS THIS OBJECT NEEDED? //CREATING TABLE 1 currentTableXML = tempXMLArray[0]; datagrid1 = new DataGrid(); datagrid1.width = 1000; datagrid1.height = 200; datagrid1.y = 0; columns = new Array(); for (i=0; i<currentTableXML.Columns.children().length(); i++) { dgc = new DataGridColumn(currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i].toString()); dgc.dataField = currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i]; columns.push(dgc); } datagrid1.columns = columns; ac1 = new ArrayCollection; // looping through each piece of data in the row for (i=0; i<currentTableXML.Rows.children().length(); i++) { trace("table 1:creating row " + i); // I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY? obj = { // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR??? AND WHY STORE IN AN OBJECT??? ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0]), ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[1]), ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[2]), ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[3]), ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[4]), ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[5]) }; ac1.addItem(obj); } datagrid1.dataProvider = ac1; this.addChild(datagrid1); //Adding populated datagrid to the screeen
The following code creates a variable of type obj Object. You must declare the variable, and you don't want to do that inside the loop where the object is built, because then it will be to be worn in the block of the loop, so it is first declared outside the loop.
var obj:Object; // WHY IS THIS OBJECT NEEDED?
Now, you construct the object. Here's the logic of what happens.
Objects of this type in Flex are constructed as follows:
objName = {}
fieldName1: fieldVal1,.
fieldName2: fieldVal2,.
fieldName3: fieldVal3
};
In this code, the field names are:
(datagrid1.columns[0] as DataGridColumn).dataField.toString()
and you must first caste as DataGridColumn.
The field values are:
(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0])
It seems here that you take the first element in the element of the chain of the ith values element, which is obtained by the analysis in the currentTableXML, the lines, the element NHRCViewResultRow element.
// I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY? obj = { // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR??? AND WHY STORE IN AN OBJECT??? ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[0]), ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[1]), ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[2]), ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[3]), ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[4]), ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[5]) };
-
Error code 50?
Hi Madeline,.
Please see the thread below where the issue has been addressed:
CC desktop - the infamous error code 50 is back
Cannt day creative cloud at CC2015... It gives me the error code: 50? HELP PLEASE.
Kind regards
Sheena
-
I'm sorry if this post is not in the right place, or if it is a duplicate. I couldn't find help anywhere for the problem that I am facing.
I worked for a few days now trying to get a DirectX control to load on some computers in my organization. The code we have written works fine on some machines (perhaps 50%), but fails to initialize DirectX during the creation of the unit on others machines with an exception containing the code of error D3DERR_NOTAVAILABLE. We use the DirectX 9 SDK for development. We did ensure that the DirectX (version 10) runtime is installed on the computers of problem as well (we believe that the runtime must be backward compatible). I wrote the code to attempt to create a device using all possible combinations of the available settings and still no device can be created! The code I used to try to find any working device is less. I'm doing something wrong? Code (written in c#) starts in the InitializeGraphics() function and calls the GetAcceptableDevice() function. The GetAcceptableDevice() function returns zero on our computers of problem:
private GetAcceptableDevice device (DeviceType deviceTypes, Format [] backBufferFormats, DepthFormat [] depthStencilFormats []) {}
ListacceptableAdapterFormats As new List ();
{foreach (adapter AdapterInformation in Manager.Adapters)
{foreach (DeviceType deviceType in deviceTypes)
{foreach (backBufferFormat in backBufferFormats Format)
Now, make sure that the depth buffer meets one of the required formats.
{foreach (DepthFormat depthStencilFormat in depthStencilFormats)
PresentParameters pp = new PresentParameters();
pp. AutoDepthStencilFormat = depthStencilFormat;
pp. BackBufferCount = 1;
pp. BackBufferFormat = backBufferFormat;
pp. BackBufferHeight is this. Height;
pp. BackBufferWidth is this. Width;
pp. FullScreenRefreshRateInHz = 0; Must be 0 in windowed mode.
pp. DeviceWindow = this;
pp. DeviceWindowHandle is this. Handle;
pp. EnableAutoDepthStencil = true;
pp. ForceNoMultiThreadedFlag = false;
pp. MultiSample=MultiSampleType.None;//Anti-alias settings
pp. MultiSampleQuality = 0;
pp. PresentationInterval = PresentInterval.Default;
pp. PresentFlag = PresentFlag.None;
pp. SwapEffect=SwapEffect.Discard;//Required to be scrapped for anti-aliasing.
pp. windowed = true; Must set to true for the controls.
Treatment of vertex createFlags=CreateFlags.SoftwareVertexProcessing;//Software CreateFlags should always work.
Device functionalDevice = null;
try {}
functionalDevice = new device (adapter. Adapter, deviceType, createFlags, pp);
Return functionalDevice;
} catch {}
Just skip it and try the following.
}
}
}
}
}
Returns a null value.
}public void InitializeGraphics() {}
Device = MakeBasicDevice ();
{if(Device==null)}
Device = GetAcceptableDevice)
DeviceType.Software is rarely used. DeviceType.NullReference produced a device, on which you can not attract.
New DeviceType [] {DeviceType.Hardware, DeviceType.Reference},
All display formats listed on in the case where we want to try them all (for the exhaustive tests).
New Format [] {Format.A16B16G16R16, Format.A16B16G16R16F, Format.A1R5G5B5, Format.A2B10G10R10, Format.A2R10G10B10, Format.A2W10V10U10,
Format.A32B32G32R32F, Format.A4L4, Format.A4R4G4B4, Format.A8, Format.A8B8G8R8, Format.A8L8, Format.A8P8, Format.A8R3G3B2,
Format.A8R8G8B8, Format.CxV8U8, Format.D15S1, Format.D16, Format.D16Lockable, Format.D24S8, Format.D24SingleS8, Format.D24X4S4,
Format.D24X8, Format.D32, Format.D32SingleLockable, Format.Dxt1, Format.Dxt2, Format.Dxt3, Format.Dxt4, Format.Dxt5,
Format.G16R16, Format.G16R16F, Format.G32R32F, Format.G8R8G8B8, Format.L16, Format.L6V5U5, Format.L8, Format.Multi2Argb8,
Format.P8, Format.Q16W16V16U16, Format.Q8W8V8U8, Format.R16F, Format.R32F, Format.R3G3B2, Format.R5G6B5, Format.R8G8B8, Format.R8G8B8G8,
Format.Unknown, Format.Uyvy, Format.V16U16, Format.V8U8, Format.VertexData, Format.X1R5G5B5, Format.X4R4G4B4, Format.X8B8G8R8, Format.X8L8V8U8,
Format.X8R8G8B8, Format.Yuy2},
All depth formats listed on in the case where we want to try them all (for the exhaustive tests).
new DepthFormat [] {DepthFormat.D15S1, DepthFormat.D16, DepthFormat.D16Lockable, DepthFormat.D24S8, DepthFormat.D24SingleS8, DepthFormat.D24X4S4,
DepthFormat.D24X8, DepthFormat.D32, DepthFormat.D32SingleLockable, DepthFormat.L16, DepthFormat.Unknown}
);
{if(Device==null)}
throw new Exception ("could not get an acceptable DirectX graphics adapter. Your graphics card may not support DirectX. ») ;
}
}
}I also read on various places on the Internet that a type of software with the software vertex processing will work always, even if it's slow. I also wrote code to try to create a unique feature of software with the software vertex processing and apparently not worked either. The code is as follows:
private MakeBasicDevice() {} device
try {}
PresentParameters pp = new PresentParameters();
pp. AutoDepthStencilFormat = DepthFormat.D16;
pp. BackBufferCount = 1;
pp. BackBufferFormat = Manager .Adapters .default .CurrentDisplayMode .format.
pp. BackBufferHeight is this. Height;
pp. BackBufferWidth is this. Width;
pp. FullScreenRefreshRateInHz = 0; Must be 0 in windowed mode.
pp. DeviceWindow = this;
pp. DeviceWindowHandle is this. Handle;
pp. EnableAutoDepthStencil = true;
pp. ForceNoMultiThreadedFlag = false;
pp. MultiSample = MultiSampleType.None;
pp. MultiSampleQuality = 0;
pp. PresentationInterval = PresentInterval.Default;
pp. PresentFlag = PresentFlag.None;
pp. SwapEffect = SwapEffect.Discard;
pp. windowed = true; Must set to true for the controls.
DefaultDevice device = new Device(Manager.Adapters.Default.Adapter,DeviceType.Reference,this,CreateFlags.SoftwareVertexProcessing,pp);
DefaultDevice return;
} catch {}
}
Returns a null value.
}One might think that DirectX may run on any graphics card, even if it ran slowly on the low-end cards. Is it possible that DirectX does not work on some graphics cards? It is somewhat disturbing, because about half of our computers will not initialize our DirectX control and our control of OpenGL works fine on these machines. Is there something else we can try, perhaps related to some system settings that are more fundamental than the initialization code? Any help is appreciated. Thanks in advance.
Hi grahamde,
Thanks for posting in Microsoft Answers.
The question you posted would be better suited to the community Microsoft Developer Network (MSDN). Please visit the link below to find a community that will provide the best support.
http://msdn.Microsoft.com/en-us/default.aspx
Kind regards
Arona - Microsoft technical support engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
I tried to install the updates, but I get the error code 641
I tried to install updates that have been downloaded.
Try to install the result in the error code 641
Original title: what is the error code 641
The other post:
My problem is on an old computer (not this one) running Windows Vista Home Premium. Show downloads are KB2690729, 2656353, 2656370, 2604111, 2604121, 2656368, 2656045 and 2686827. When I tried to download individually, the first and the third update (above) showed as being downloaded correctly, yet when I checked the list of updates successfully, none of these appeared. Since that time, the system generated downloads 8 updates have been fruitless.
Like the other reviewers, I run IOL System Mechanic and have noted your comments about the interaction between the SM and windows. Personally, I hesitate to attempt changes to the registry based on the stories of war, with that I've heard of people who do not have the knowledge/experience/skill to work in the more than causing registty problems they started. I have not contacted LIO, wondering if this was done either by Microsoft with others who have similar problems.
I hope that you have more tips to share what to do: this problem.
Thanks for your help.
Hi rob3274,
I combined the message you did in another thread to this original to avoid confusion.
In response to another poster asking if System Mechanic caused their code error 641, one of our MVP, PA bear MS MVPreplied with this:
There is no doubt in my mind that System Mechanic caused this!
And you have plenty of company, too. See these recent discussions-online
~~~~~~~~~~~~~~~~~~~~~~~~
OPTION A: If you have backups of ALL System Mechanic has EVER done on your computer changes, restore ALL the & restart and test - and then uninstall System Mechanic & some other registry cleaners. [1]
OPTION B: Execution of RESOLUTIONS methods 1, 2 and 3 in http://support.microsoft.com/kb/2642495 then reboot & test.
OPTION C: Contact System Mechanic (iolo.com) support, assuming you have purchased System Mechanic Professional.
===========================================================
[1] TIP: If you still think again your registry database must be cleaned, repaired, amplified, to the point, healed, twisted, fixed, enlarged, "swept" or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions. See also http://blogs.technet.com/markrussinovich/archive/2005/10/02/registry-junk-a-windows-fact-of-life.aspxSince the thread here.
I hope this helps!
Debbie_H
-
What is the key code to lock the curve 9300 BlackBerry device?
I want to programmatically combined lock, I'm able to do in other handsets, but unable to block of 9300 curve,
because in 9300 curve, this will be done by long press on the mute button, so then I know the key code for the key mute for this
handset?
Thank you & best regards
Yes I did it using code below
If (Keypad.Key (keycode) == Keypad.KEY_LOCK |) Keypad.Key (keycode) is 273)
{
UiApplication.getUiApplication () .invokeLater (new Runnable()
{
public void run()
{
Dialog dialog = new dialog box (Dialog.D_OK, "Lock Key Press", 0, null, Dialog.FIELD_HCENTER);
Ui.getUiEngine () .pushGlobalScreen (dialog box, 1, UiEngine.GLOBAL_MODAL);
}
});
Returns true;
} -
How to send two requests to separate from OBI and combine the results
Hi all
I'm trying to understand how to combine the results of two queries in OBI. Here's the scenario.
There are three tables, users, security roles however joined a bridge Table Role_User
Each user has multiple roles, the roles to which a user has access is identified by a column of flag with value T otherwise there F value.
I am creating an analysis as below
ID of the user Access roles Roles have no access Therefore, column 2 shows all roles with indicator T for the particular user and column 2 shows all roles with indicator F for the same user.
I tried to create two fact tables and using the filter condition on the value of the indicator, but in the analysis, I could use only one at a time. When I add the two columns, I get the error as none of the fact table are compatible with the query request. I would like to hierarchies for dimensions created and assigned in terms of content for all the facts and decreases in intensity.
Any advice will be highly appreciated.
Thank you
Found the solution. I'm posting here in case where someone faced with a similar question.
I've added the SQL code in the Advanced tab:
Select A.saw_0 saw_0, A.saw_1 saw_1, B.saw_1 saw_2
FROM (Select Col1, Col2 FROM Table1 saw_1 saw_0) a LEFT OUTER JOIN
(Saw_0 select Col1, Col2 saw_1 FROM Table2) B
on A.saw_0 = B.saw_0
I created the logic of the facts using the source even with two different filter conditions and were used with a subquery as above
Maybe you are looking for
-
Stuck on black scree with Apple logo
my iMac stuck on the black screen with the logo of Apple and dialogue saying installation software update about 14 minutes. It was an hour ago, what should I do?
-
According to the Firefox Add-ons Manager and the page control plug-in, I use the 11.6.602.180 Shockwave Flash version, so I went to the Adobe site to download the latest version (16.0.0.296). Adobe says that I already use the most recent version; the
-
Black ink works very well for text and text with little color, but when you print photos (on HP Advanced paper which is recommended), printed black areas aqua green, or deep. Other colors are fine. How can I fix it?
-
I get not much sound on my pavilion dv6 notebook
I bought my Pavilion DV6 two months back. But the last 15 days I only get much sound. (sound out put is very less)
-
I have a HP mini 1151nr 1000 with a BIOS password that prevent the operating system system halt loading code is CNU9137KB if anyone can generate a master password for this then jemti would appreciate it. Help, please.