List of users who will connect activity above a certain threshold
I'm trying to get a query that returns a list of users who exceed a number of thresholds of activity recorded in any arbitrary hour. I initially coded it upward using analytical functions with fenestration:with the log in form
(select "Fred" as username, to_date ('2009-07-01 08:05 ',' yyyy-mm-dd hh24:mi:ss') as logtime Union double all the)
Select 'Fred' as username, to_date ('01-07-2009 08:12:14 ',' yyyy-mm-dd hh24:mi:ss') as logtime Union double all the
Select 'Wilma' as username, to_date ('2009-07-01 08:01 ',' yyyy-mm-dd hh24:mi:ss') as logtime Union double all the
Select 'Wilma' as username, to_date ('2009-07-01 08:03:15 ',' yyyy-mm-dd hh24:mi:ss') as logtime Union double all the
Select 'Wilma' as username, to_date ('2009-07-01 08:04:18 ',' yyyy-mm-dd hh24:mi:ss') as logtime Union double all the
Select 'Wilma' as username, to_date ('2009-07-01 08:06:59 ',' yyyy-mm-dd hh24:mi:ss') as double logtime
)
-Select * log
Select distinct
username
Of
(select
username
, count (*) more
(user name partition
order of logTime
lines between 2 previous and the current line
) as group_count
, min (logTime) more
(user name partition
order of logTime
lines between 2 previous and the current line
) as min_group_logtime
, max (logTime) more
(user name partition
order of logTime
lines between 2 previous and the current line
) as max_group_logtime
the journal
)
where group_count = 3
and max_group_logtime - min_group_logtime < = 1/24
-Try out: -.
-UserName
-- --------
-Wilma
--
-- --------------------------------
Is there a better way to do this?
Kent Waldrop
Hi, Kent,
If you want to know who has 3 rows within a period of 1 hour. right?
The query you posted can be simplified:
WITH got_prev_logtime AS
(
SELECT username
, logtime
, LAG (logtime, 2) OVER ( PARTITION BY username
ORDER BY logtime
) AS prev_logtime
FROM log_table
)
SELECT DISTINCT username
FROM got_prev_logtime
WHERE logtime <= prev_logtime + (1 / 24);
In your original request, max_group_logtime was just the logtime since the current line.
You have been calculated for groups of up to 3 lines, and then calculating the min_group_logtime and finally to test to see if the Group contained really 3 rows.
LAG (logtime, 2) combines these steps. Returns NULL if there is not at least 2 previous lines and otherwise the logtime of the older.
Thanks for posting the sample data in a useable form. It is a big help.
Published by: Frank Kulash, July 17, 2009 10:59
Tags: Database
Similar Questions
-
To find the list of users who have access to the specific cube in essbase
Hi team,
I have EMP 11.1.2.2. Can you please let me know how to find the list of users who have access to the individual of the cube in shared services or by using script maxl essbase. I don't get the answer you need using the commissioning report.
Thanks for your time and your help.
Try the display Privilege, you must then filter for that particular cube. Why is commissioning report does not?
Concerning
Celvin
-
How to obtain the list of users who have logged vCenter
Y at - it a script that lists the users who have signed in a specific vcenter? I couldn't seem to find a.
Take a look on Get vCenter full session info
-
I have a subscription to creative cloud (at least) but I would like to add another user, who will use a Mac... is there a way I can do this?
Hello
You can have the creative cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the Adobe using your Adobe ID website, download the desktop app from clouds, then download the software. Sign on a computer that should not be used: log in and log out of the desktop Adobe Creative Cloud application
You can download the installer for Creative Cloud from here:
Creative cloud help | Creative cloud desktop.After you install the creative Cloud desktop application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications
-
Request to retrieve the list of users who do not have an updated resource service
I try to get the list of users who are not a particular resource put into service. I can't seem to find a table that links the object resource information and user information. I need to generate a CSV file. No matter who's done this before, or have any ideas. If so, any information would be very useful.
Thank youSelect * usr where usr.usr_key not in)
Select usr.usr_key from usr, obi, obj, Ouedraogo, ost
where oiu.usr_key = usr.usr_key
and oiu.obi_key = obi.obi_key
and obi.obj_key = obj.obj_key
and obj.obj_name =: obj_name
and oiu.ost_key = ost.ost_key
and ost.ost_status not in ('revoked'))-Kevin
-
List of users who have been granted to a particular function in oracle apps R12 db?
Hello
I need to list all the users who have been granted special function (suppliers) of Oracle apps R12 server. The user-> RESP-> Menu-> submenu/function. I have two queries as follows:
-Sql query below gives all users those
access of the application of purchase and Payables.
SELECT u.user_id, SUBSTR (u.user_name, 1, 30) UNIQUE user_name,.
SUBSTR (r.responsibility_name, 1, 60), responsibility
SUBSTR (a.application_name, 1, 50) application
U fnd_user,
fnd_user_resp_groups g,
fnd_application_tl has,
fnd_responsibility_tl r
WHERE g.user_id (+) = u.user_id
AND g.responsibility_application_id = a.application_id
AND a.application_id = r.application_id
AND g.responsibility_id = r.responsibility_id
AND a.application_name in ('Purchasing', 'Accounts payable')
ORDER OF SUBSTR (user_name, 1, 30),
SUBSTR (a.application_name, 1, 50),
SUBSTR (r.responsibility_name, 1, 60);
-Under a sql query gives the function name.
SELECT function_id, user_function_name, creation_date description
OF applsys.fnd_form_functions_tl where function_id = 1348;
What the other tables join to get all users with this feature (suppliers) given?
ConcerningThe grant is ok. When I connect on the toad using
& issued the following command, the message error gives sufficient privileges. ALTER PACKAGE
COMPILATION PACKAGE; > ALTER PACKAGE BODY build; Can you reproduce the problem of SQL * more?
If the grant on the package is OK, please go through the code of the package and make sure that the READ-ONLY user has right to select on all tables referenced in the package specification/body.
Thank you
Hussein -
You can only amplify the noise above a certain threshold?
I am trying to raise the floor of a topic that I interviewed in a video clip at an event where people are wandering around in the background. A simple amplification could raise his speech, but also the level of background noise. Is there a way to amplify a few servings of a signal that cross above a certain level (by example, - 12dB) and let alone all the other elements of the signal?
A filter compressor seems to do the reverse, bringing spikes in the rear volume in relation to the volume of all the rest. I want to emphasize the stronger parts while minimizing background noise.
Well, I won't be quite as inactive on the idea that my other two friends (and they'll probably be right and me wrong), but...
It depends on how much improvement you want to put up with on the treatment plan.
If you configure the effects/Amplitude effect and treatment of the Compression/dynamic a little bit like that, it will indeed start amplify all signals above - 12 (roll out slightly below 0) without touching the stuff below - 12. If you want to be really drastic, you could add another point to the line and do the things under - 12 are slightly reduced.
However, you will be using a set up as this can easily make the pump sound a bit and you may not like the sound. I always suggest experimenting until you get the best combination of usable sound quality and an acceptable level of process objects.
-
Play a sound from an above a certain threshold. Data table 1 d type
I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.
Ihab El-Sayed
Why did you create a new thread? All you need to do is add a response to the previous, attaching the VI you have forgotten to attach.
Please keep any further discussion in this thread.
As to your question: I have no idea why you use a Type Cast on a table 1 d of Boolean. Did you randomly choose a function off the pallet until you found one that does not give you a cut wire? It seems to me that since you compare an array of values to a certain threshold, then you probably want to beep if one of them is out of range. In this case, you would like to if none of the elements of the array, Boolean is set to True. This implies an OR condition. And that means that you must use the function to the array element or. This will return a value of True if any value in a table Boolean is set to True.
-
I did the following steps:
1. create a user
2. assign the Group root (remove all the other group of the user)
What's my not just?
Thank you!
It is the way to do it. Either you must be part of the root group to be given to the role admin (or a bespoke) at the level of the host to access the DCUI.
If you create a user is added to the root group, but is assigned all permissions (either singularly or through a group) on the host then, then the user will be able to connect to the DCUI but not the client vSphere (or any other method of the API).
-
How to get the length of a waveform above a certain threshold?
A simple problem... I have acquire the data of the DAQ Assistant and read it back draw the measures file using read.
My signal will be with just a peak (see figure)
I need to find the duration for which my wave form value is more than 150.
I am unable to find that the waveform of time first crosses threshold... but the second point waveform the threshold comes in... I'm not able to find
second attachment is part of the created vi...
If I can find the second time where the wave goes the threshold, I can calculate the time using dt...
As David and VSH have hinted at, you can use threshold spikes. I did it several times... See the attached VI.
-
system is insufficient connect resources to the user who is already open log on to this computer
What does this error message mean?
This means that your system is low on resources (processor, memory, maybe same hard drive), and you must connect on another user who is already active. Your PC is so low on the basic resources that it cannot support any more users to be connected at the same time. To resolve this issue, try to disconnect all the users that you are currently using.
Rifdhan
-
Is it possible to filter the console room of the ACC in the list of users?
I want to be able to hide from the user who is connected to the console of the room from the list of users. Is it possible to identify this user?
For a particular account, there should be that a single user can connect to
the console (the account owner) - that the user will have a fixed username
(WCD-xxxxxx). You can use (provided same user is not connect to)
the actual application and expect to be seen).
Nigel
-
How to find the list of users in the rac database?
Friends,
OS: OEL 6.3 64-bit
DB: 11 GR 2 (11.2.0.3)
2 node rac ASM.
in node 1, I connected as sys.
and in the second node, I logged as hr
When I try to check user names in v$ session in node1... I have not found the hr user name...
How can I check the list of user name for all users who are connected to the rac database?
If I check in the session of each node v$ I come, but how can I check any node for all the loggedin user names. ?
Thank youuse gv$ session
INST_ID select lets you know which instance.
-
Retrieve the list of users of DefaultDom via API
Hi all
I know we get retrieve list of users to a group by using findGroupMembers(). Is it possible that I can get the list of users who are part of DefaultDom using adobe provided API?
Requesting help because I am not able to find any useful info on this.
Thank you.
ServiceClientFactory myFactory = ServiceClientFactory.createInstance (connectionProps);
DirectoryManagerServiceClient dirClient = new DirectoryManagerServiceClient (myFactory);
PrincipalSearchFilter psf = new PrincipalSearchFilter();
psf.setSpecificDomainName ("DefaultDom");
psf.setPrincipalType (UMConstants.PrincipalTypes.PRINCIPALTYPE_USER);
psf.setRetrieveOnlyActive ();
List
principalList = dirClient.findPrincipals (psf); Pit iterator = principalList.iterator ();
String oid = "";
User testUser = null;
While (pit.hasNext ()) {}
testUser = (User) (pit.next ());
System.out.println (TestUser.getCommonName ());
}
-
original title: security
Here's the question-problem: when not in use Windows will change screen what ever I've sat and go the first screen where it asks who is connect and it crashes my computer. All I have to do is click on the little box that says locked and I go back to what I was doing. I don't want to do this. I have magic jack phone service and when she did this, I do not get calls? Is it possible that turns off. I have only one user of this computer.
Go to Start\Control Panel\Hardware and Sound\Power Options\Edit the parameters of the Plan
Change the option put the computer to sleep time forever!
Maybe you are looking for
-
Of course the Pages not the functionality of the MS Word has. Are there plans to provide similar functionality, such as the creation of forms/templates?
-
All the addons disabled themselves.
Hi guys,.My browser did weird stuff today and now all the addons are disabled with only one option to remove, select not. What the devil? I don't think that I'm not in Mode safe, as it is an option in the Help menu to get back with all the addons dis
-
I just downloaded Firefox 5.0.1 and one of the themes I want to download and try says it works with Firefox 4.0b9pre - 7.0a1. Upstairs, however, it is said that the theme is not available for my platform. He arrived with a few other themes as well, b
-
HP envy 14 t-u000 cto: is that my laptop has subwoofer?
I want to know what is the configuration of the speakers of my laptop? What 2 speakers or subwoofer or what? given that I could not even find the specifications of the laptop to anywhere (and disappoints me as much as even the HP website itself does
-
Satellite A70-S249: how to change the video memory from 64 to 128 MB
all RNSI have an A70-S249in the user guide, it says that I can't adujst tha vedio memory64MB ATI MOBILITY Radeon IGB 9000\9100 to 128 MBbut tone did not say how I can do it. If anyone can tell me how to do? (my bios is phonex 1.5) thanx