SQL for extracting industries, users and their reports?
Hello
I could get in sql, users and their reports or business sectors and their users, but I can't recover the business sectors, users and reports in the same sql.
I searched in the tables of eul without success. I guess someone has already done?
Thank you
Hello
The problem you have is that you try to mix items that don't go together.
As you have already determined, you can have a script for users to query with access to business areas, and you can also have a script for queries users who access or own reports. However there is no link between the districts and business reports.
Discoverer reports are validated against the records, not business districts. If a report uses 2 files and there are 10 industries that contain these files what industry do you that the report has been written against? The answer is none of them. You just happened to have a business district that is open at the time the drafting of the report, but frankly you might have used an any of them. Therefore, if a user opens a workbook that uses the files found in several business sectors, discoverer by default to the first business district name that contains all the files used and the user has access to.
Hope this helps
Best wishes
Michael
Tags: Business Intelligence
Similar Questions
-
SQL for extraction of the employee details
I have faced this requirement more often these days, but that you do not have how to write effectively.
an example:
Need to find employees of companies with at least 5 managers 3 admin 2 clerks (total 10 roles) and their details
EMP table:
Identifiant_composant, Emp_id, Emp_name, Emp_role
Company:
Identifiant_composant, ComputerName
-I tried to look for existing similar questions. Unable to find anything relevant.
I already gave you solution. The only difference is that you have 2 tables which means just a simple join:
with t as)
Select id_comp,
emp_id,
emp_name,
emp_role,
count)
case emp_role
When 'manager', 1
end
)
during the manager_count (identifiant_composant score),
count)
case emp_role
When 'admin', 1
end
)
during the admin_count (identifiant_composant score),
count)
case emp_role
When 'clerk' then 1
end
)
during the clerk_count (identifiant_composant score),
count)
case emp_role
When 'manager', 1
end
)
during the manager_rn (partition identifiant_composant, emp_role order to emp_id),.
count)
case emp_role
When 'admin', 1
end
)
during the admin_rn (partition identifiant_composant, emp_role order to emp_id),.
count)
case emp_role
When 'clerk' then 1
end
)
during the clerk_rn (partition identifiant_composant, emp_role order to emp_id)
WCP
)
Select ComputerName,
emp_id,
emp_name,
emp_role
t,.
company c
where t.comp_id = c.comp_id
and manager_count > = 3
and admin_count > = 2
and clerk_count > = 2
and)
manager_rn between 1 and 3
or
admin_rn between 1 and 2
or
clerk_rn between 1 and 2
)
order of t.comp_id
/
COMPUTERNAME EMP_ID, EMP_NAME EMP_ROLE
------------------------------ ---------- ------------------------------ ----------
PEPSI 7 Krishna admin
PEPSI 8 Hari admin
PEPSI 10 Shoaib clerk
PEPSI 11 Satish clerk
Manager of PEPSI 1 Siva
Manager of PEPSI 2 Nari
PEPSI Manager 3 Chandra
HONDA 7 BJL admin
HONDA 8 BB admin
HONDA 11 BE clerk
HONDA 12 BF clerkCOMPUTERNAME EMP_ID, EMP_NAME EMP_ROLE
------------------------------ ---------- ------------------------------ ----------
HONDA 1 BCD manager
HONDA 2 BEF manager
HONDA 3 BGF manager14 selected lines.
SQL >
SY.
-
SQL Analysis: Extract column expression and SQL query tags
Hi all
I have a requirement and posted earlier reg. this.
An SQL statement must be parsed and column names must be extracted separately.
I can't use dbms_sql. I need to extract the names of columns through manipulating strings in PL/SQL only.
I don't have to validate the SQL code.
for example.
SELECT EMPNO, Upper (ENAME), DEPTNO Emp_Name, DECODE (Deptno, 10, 'ACCOUNTING', 20, 'HR', 'OTHER') Dept_Name OF double
Output should be,.
Column names
--------------------
(1) EMPNO
(2) Emp_Name Upper (ENAME)
(3) DEPTNO
(4) Dept_Name DECODE(Deptno,10,'ACCOUNTING', 20,'HR','OTHERS')
How can I retrieve the names of columns using PL/SQL for the above format?
Pls help.
Kind regards
SamIf the requirement is to have them come forward...
SQL> ed Wrote file afiedt.buf 1 declare 2 v_sql VARCHAR2(4000) := q'[SELECT EMPNO, Upper(ENAME) Emp_Name, DEPTNO, DECODE(Deptno,10,'ACCOUNTING', 20,'HR','OTHERS') Dept_Name FROM Dual]'; 3 v_cols VARCHAR2(4000) := regexp_replace(v_sql, 'SELECT (.*) FROM .*', '\1'); 4 PROCEDURE parse_col(p_cols IN VARCHAR2, lvl NUMBER) IS 5 v_str VARCHAR2(4000); 6 v_br NUMBER := 0; 7 v_pos NUMBER := 1; 8 begin 9 LOOP 10 EXIT WHEN v_pos > length(p_cols); 11 CASE SUBSTR(p_cols,v_pos,1) 12 WHEN '(' THEN 13 v_br := v_br + 1; 14 WHEN ')' THEN 15 v_br := v_br - 1; 16 WHEN ',' THEN 17 IF v_br = 0 THEN 18 DBMS_OUTPUT.PUT_LINE(to_char(lvl,'fm99')||': '||trim(v_str)); 19 parse_col(SUBSTR(p_cols,v_pos+1),lvl+1); 20 v_str := NULL; 21 EXIT; 22 END IF; 23 ELSE NULL; 24 END CASE; 25 v_str := v_str || SUBSTR(p_cols,v_pos,1); 26 v_pos := v_pos + 1; 27 END LOOP; 28 IF v_str IS NOT NULL THEN 29 DBMS_OUTPUT.PUT_LINE(to_char(lvl,'fm99')||': '||trim(v_str)); 30 END IF; 31 end; 32 begin 33 parse_col(v_cols,1); 34* end; SQL> / 1: EMPNO 2: Upper(ENAME) Emp_Name 3: DEPTNO 4: DECODE(Deptno,10,'ACCOUNTING', 20,'HR','OTHERS') Dept_Name PL/SQL procedure successfully completed. SQL>
-
We are running XP and have 3 different user desktop accounts. We are very excited about the features of Firefox4, but one user a lot less comfortable with changes and does not want to lose the comfort of navigation in 3 until it had a chance to get used to using 4. May take a while...
Is it possible to download Firefox 4, perhaps to a new location. Or a new user account. And use that as a "teaching tool" while maintaining the 3?
Or can we move on 4, re-download a version 3 and import previous bookmarks for this user to new 3 download, until we him uncomfortable.
The answer is probably not. But if there is a creative way to do that, without another available computer, that would be great. Otherwise, improve us and deal with the frustration and whining here... 4 is too good to pass up.
Ideas?
LindaWhen you install Firefox 4, choose the custom installation option and change the install location of Firefox. You'll then 2 versions of Firefox are installed.
As you have different user accounts, each user will have its own Firefox profile (location where are stored bookmarks, passwords, etc.). You should not pass between the different versions of Firefox with the same user profile. For those who want to use Firefox 4, make sure that you use a Firefox shortcut that opens Firefox 4, even for one who wants to stay with Firefox 3, just keep their shortened origin of Firefox and it should open the old version.
-
Write procedure for extraction of files and tight... as an object of Type
I want to extract the records in a table using Type... as... Oppose so I created a procedure but it gives me an error and I tried many things but can not remove the error please tell me the correct code.
Here is my code
create or replace type SheikYerbouti as object)
EmpNo number 4,
name varchar2 (10),
number (7.2) salary.
use varchar2 (10),
HireDate date,
number (7.2), comm.
DEPTNO number (4));
----------------------------------------------------------------------------------------------
create or replace procedure p (no number)
is
SheikYerbouti v;
Start
SELECT name, salary, job, empno, hiredate, comm, deptno in v from emp where empno = no;
insert into emp5 values(v.empno,v.name,v.salary,v.job,v.hiredate,v.comm,v.deptno);
end;
---------------------------------------------------------------------------------------
but it gives an error
LINE/COL ERROR
-------- ------------------------------------
5/58 PL/SQL: ORA-00947: not enough values
5/1 PL/SQL: statement ignored
I'm not able to remove the error don't know where I am wrong please helpI would like to add - you cannot select in variable uninitialized object, you must use a constructor like this
select emp_rec(empno,name,salary,job,hiredate,comm, deptno) into v from emp where empno = no;
-
SQL for substr first name and family name
Hi How can I subtr first name and family name
Select first_name + lastname of employee
for example if I have michael james I what to have JMichael
Select your table instead of two. We do not have your tables and does not have the validation of samples, results, etc...
Select upper (substr (one, 1, 1)) | initcap (substr (one, instr (1,' ') + 1)) result
from (select job |) ' ' || Ename a
WCP
)
RESULT Kill MBlake MClark MJones AScott AFord CSmith SAllen Ground vegetation SMartin STurner CAdams CJames CMiller Concerning
Etbin
Post edited by: Etbin
example of the EMP
-
Get all users and their EmailIDs of a group of database
Hi all
I use LC 8.2. My requirement is like I need to send e-mail to all members of a particular group. I don't want to hardcode an ID by e-mail.
I think in the workbench, there is no way to get all Member of a particular group email IDS (if so please let me know). So I think that the best approach is to get the data from the database.
I wrote a query that is able to get the ID of the database mail, but the thing is that I'm not able to restrict it to a particular group; as I'm not finding any table with the name of group to a string format. Please help in the execution of the query.
Select lcuser.canonicalname, lcuser.email
from edcprincipalentity as lcuser, EDCPRINCIPALGRPCTMNTENTI as lcgroup
where lcuser.id = lcgroup.refchildprincipalidThank you
Deepak
Hello
Group ID stored in DB in this format - CD4B792D - 06-CA - 6A 82-416 a-7C1758B0F839. You can directly put this id to the query.
It comes to query for data capture by group name:
SELECT prin.COMMONNAME, ROM. EMAIL FROM EDCPRINCIPALENTITY prin
INNER JOIN EDCPRINCIPALGRPCTMNTENTI ON prin.id = GR REFCHILDPRINCIPALID grAND genetic resources. REFPARENTPRINCIPALID = (SELECT prinGr.id from EDCPRINCIPALENTITY prinGr where pringr.commonname = 'group name');
Best regards
-
I'm tired of be driven out by the updates and Firefox compatibility problems... but otherwise updates are great.
Can I disable automatically updates please
Thank you people
easily soluble: firefox > options > advanced > updates
-
A query to return all the SQL executed for a particular user instructions.
Hello
Is it possible to find all the instructions SQL for a particular user using the views v$? I can do it 10g but I am currently using 9i, the query below does not work.
I guess that some columns in these views do not exist in 9i. The output of 9 that I use is 9.2.0.1.0.select a.username,a.logon_time,b.sql_fulltext from v$session a,v$sqlarea b where a.sql_id=b.sql_id and a.username='USER' order by a.logon_time desc
Your help is very appreciated.
Thank you
Select this option.Dear mark!
I suggest you use the audit instead of v$ sqlarea. Onlinedocumentation said the next thing Oracle v$ sqlarea:
>
V$ SQLAREA lists statistics on the shared SQL area and contains a line by the SQL string. It provides statistics on SQL statements that are stored, analyzed and ready for execution.
>
This means that you will only get the SQL statements that are currently in memory. Older statements which are already deleted from memory are not visible for your query.Incidentally, if you simply want to know what's wrong with your query then please post your errormessage.
Yours sincerely
Florian W.
Published by: Florian W. the 29.07.2009 12:03
-
The HARD drive that was my OS (Windows XP Pro SP3) failed and lost quite a few areas which are essential for the operating system running. Other data is still readable. A got another HARD drive and installed Windows XP SP2, Firefox and other programs. I was able to retrieve the bookmarks, security certificates, and other profile information using the information found in bandages.
None of them addressed how do to recover the modules or their data. Specifically, there are several large, elegant scripts that took months to develop and customize.
Articles related to migration and other do not work for me because they require the old copy of FF is functional, that is not because the OS on this HARD drive is damaged. Is it possible to recover these data, similar (or not) about how I could get the other profile info?
Have you copied the entire folder C:\Documents and Settings\username \Application Data\Mozilla\Firefox\ on the old drive?
If this is not the case, can you?
If so, make a copy and save this folder just in case.If so, you could replace this folder on the new facility by \Profiles\ [with your profiles inside] folder and the profiles.ini file [delete all other files / folders that may also be in the folder "Firefox"] -and then replace with the same folder named from the old failed drive. Note that you will lose what you already have with the new installation / profile!
Your profile folder contains all your personal data and customizations, including looking for plugins, themes, extensions and their data / customizations - but no plugins.
But if the user logon name is different on the new facility that the former, any extension that uses an absolute path to the file in its prefs will be problems. Easily rectified, by changing the path to the file in the file prefs, js - keep the brake line formatting intact. The extensions created after the era of Firefox 2.0 or 3.0, due to changes in the 'rules' for creating extensions usually are not a problem, but some real old extensions that need only "minor" since that time can still use absolute paths - even though I have not seen myself since Firefox Firefox 3.6 or 4.0.View instead of 'Modules' I mentioned the 4 types of 'Modules' separately - Plugins are seen as 'Add-ons', but they are not installed in the profile [except those mislabelled as a "plugin", when they are installed via an XPI file], but rather in the operating system where Firefox 'find' through the registry.
Note: Migration articles can tell you do not re - use the prefs.js file, due to an issue that I feel is easily fixed with a little inspection and editing. I think you can manage that my perception is that you have a small shovel in your tool box, if you encounter a problem you are able to do a little digging and fixing problems with the paths to files - once you have been warned.
Overall, if you go Firefox 35 35 or even Firefox 34 to 35, I don't think you will run in all the problems that you can not handle [that I cross my fingers and "hope" that I'm not on what it is obvious].
With regard to the recovery of the 'data' for individual extensions - there are many ways that extension developers used to store their data and pref. The original way should save in prefs.js or their own file RDF in the profile folder. While Firefox has been developed more, developers started using their own files in the profile folder. And because Mozilla has started using sqlite database files in Firefox 3.0, Mozilla extended their own use of sqlite, as have extension developers.
Elegant uses the file stylish.sqlite to store 'styles', but something in the back of my mine tells me that 'the index' maybe not in this file with the data. But then again, I can be confusing myself a question I had with GreaseMonkey awhile back where I copied the gm_scripts folder in a new profile and with already installed GreaseMonkey but with no script. These GM scripts worked, but I could not see them or modify them - they do not appear in the user GM extension interface window in Firefox. -
Control user access to reports in vROPs
Hello
I noticed that in vRealize operations Manager, we can say whether allow us a user to view or not (models + those generated) reports page, but I want to know if there is a way to show only some of them about the permissions of the user to the object whose report was generated on.
I also have a user who has the right to access an object (for example a vCenter). By my Admin account, I generated a report on this vCenter. I connected with my test user account, and I did not see the report generated, even it was generated on a vCenter that I have access to, but it does not show because it was generated by another user, and the report is not shared.
Any idea? I hope that I was clear. Thank you very much.
Unlike the dashboards, you cannot share the views and reports. You can only export the model and import it into the user account.
-
Groups, users, and Provisioning information Migration using LCM
Hi all
I need to migrate groups, users and their configuration information from one application to another application with dev server itself. Can someone tell me how can I do this using LCM. I'm getting confused in the options available under applications-> Foundation groups-> Shared Services in LCM.
There are many options available as the native directory
Groups a) (b) users) c d) Native directory roles->-> assigned roles planning-> "App name".
So, what options to choose to migrate groups, users and their configuration information.
2ndly the application names are different because they are on the same server. In what files I need to change the name of the application (files will be created just by making export FCL like Group.csv etc)
I'm working on 11.1.1.3 version. My requests are classic planning apps.
Thank you
AshuIt is possible to copy the provision by right-clicking a Shared Services planning application and select "Copy Provisioning" and then select the application to copy the commissioning to.
If you want to do through LCM > Foundation > Shared Services > native Directory > planning > PlanningAppName
ExportSecurity/ImportSecurity planning utilities are only for export/import of planning permissions.
This can be done using LCM > select the planning application > Security > access permissionsSee you soon
John
http://John-Goodwin.blogspot.com/ -
Recently bought a Dell Dimension 3847 with Windows 7 Pro to replace a workstation that is connected to a network that uses Windows Server 2003. I already set up two other PC's (not same model) with Win 7 Pro, for existing users and had no problems whatsoever. The user of this workstation is an existing one (implemented as an administrator). I've set up his account and she joined the working group. The other computers in the workgroup are listed under network location. However, when I tried to access the server computer in the Working Group, I got a pop-up window asking for a username and password. This would not have taken place. However, I entered the username and password for that particular user and received a message that the user name and password were not valid. I set up my user account (it has administrative privileges too), on this computer, joined the Working Group, Windows recognizes the other computers in the workgroup, but when I tried to access the server computer I got the same pop-up and had the same problem with my credentials not being recognized. While remaining under my user name, I tried and then access the server computer again but when I arrived at the prompt for the user name and password, I used the 'Administrator' user name with the appropriate password (the credentials used to connect to the server computer) and it worked. I registered to the account of the other user and used the same method to access the server and it worked as well. Any ideas why the user credentials, other than the administrator account, are not recognized?
Hello
Sorry for the late reply.
This problem is better suited in the TechNet forum where we have experts working on the same topic.
Please post your request in the below link:
https://social.technet.Microsoft.com/forums/en-us/home
I hope this information helps, get back to us if you need help with Windows.
Thank you.
-
problem setting users and groups in the areas of security
Deploy my application ADF of my R2 Jdev11G, but the funniest, it is there is always deletion of the parent to my user setting group layout.
for example. in Weblogic server: security realms > myrealm > users and groups, and then choose a user can then see 4 tabs 'General', 'Passwords', 'Attributes' and 'Groups' settings for the selected user, and then in the 'Groups' tab, if I choose a group in the column ' Group Parent: available ' in another column "elect." It will be removed later when I re - deploy application to the J-developer the next time, could you let me know how I could avoid this deletion? Thank you!
Kind regards!
My question is not clearly described or is it Bug Oracle? Do please help me to thay! Thank you!
Edited by: xsyang January 6, 2012 01:14
Edited by: xsyang January 6, 2012 01:25See the options in the app (menu)-> Application Properties-> deployment-> Weblogic (subnode under deployment in GR 11, 2), specifically the "migrate the following security objects' 'users and groups' checkbox.
There is little documentation available on the options here: http://docs.oracle.com/cd/E24382_01/web.1112/e16182/adding_security.htm#BGBFJDED
CM.
-
Get a variable name for a connected user
My application displays dynamic elements based on the value of a variable userid i.e. If userid is 1, all the items in my collection of table with 1 user ID will be displayed in a tilelist component.
What I want to do, is to have a log in the system which will connect users but also to get the ID for this specific user and set it as my userid variable in my application, so the app knows what the user is connected and can display information related to that user.
My mysql table that stores all users has the columns user ID (the value I want which is specific to each user) user name and password.
I've been using this tutorial that lets the user open a session and if the connection is successful, a message is displayed, but this solution does not have the application store that the user is connected through userid: -.
http://cookbooks.Adobe.com/post_Create_a_login_system_with_Flex_and_PHP-7243.html
Can someone give me advice on how to do or what I need to do to change this example to get the user ID for the user that is logged into my userid variable in my application please or recommend something similar?
This is the PHP code. Let me know if you need Flex code as well. I tried to comment as much as possible. Let me know if you need clarification on any room.
\n"; $xmlOutput .= "
\n"; $xmlOutput .= " \n"; echo $xmlOutput; } ?>$message \n"; $xmlOutput .= "$data\n"; $xmlOutput .= "$function \n"; $xmlOutput .= "Sorry for the late response. I had to attend a workshop.
Maybe you are looking for
-
You can get more effects to keynotes
is it possible to get more effects for keynotes?
-
I get this error 8007006E Code when I try to install Windows updates
Original title: 8007006E error Code I get this error when I try to install the updates that my computer is telling me to install. Error Code 8007006E please help. I think this is the beginning of a domino effect more major problems.
-
I have a new HP Touchsmart 620-1130 3D desktop computer and everytime I open the HP music I get an error message titled "MS Visual C++ Runtime Library" with details indicating "Cyberlink Media Library Service has stopped working" - and the problem ev
-
BlackBerry Torch 9810 Nuked Blackberry smartphones
Please help how to make fixed it
-
Smartphones from blackBerry Desktop Manager to start the laptop
I installed Desktop Manager and is set to auto-start whenever I restart my laptop. How can I change to manually start menu programs?