Report the last event (notice) for a device
I could have sworn that I had this work before, but for the life of me I don't remember how I did it and I can't seem to understand this new.I am tracking events by device. A device can have any number of events in a given period of time. I need follow the MOST RECENT event for a device by device. I don't want to have multiple records by device, only the record with the MOST RECENT timestamp.
I made two subsequent attempts, but I still get nowhere.
select
device,
MAX(dt) KEEP (DENSE_RANK FIRST ORDER BY dt) as time_Var
from db_table partition (pPname)
where
Lower(example) like '%example text%'
and dt > sysdate - 5
andselect DISTINCT
device,
(select TO_CHAR( (MAX(table_name.dt)), 'HH24:MI:SS MM/DD/YYYY') "timeVar"
from table_name partition (pPName)
where
Lower(Example) like '%example text%'
and dt > sysdate - 5)
from table_name partition (pPName)
where
Lower(Example) like '%example text%'
and dt > sysdate - 5
order by device Asc;
Hello
Savage solution with
KEEP (DENSE_RANK FIRST ORDER BY dt)
will show you the event the less recent in the last 5 days.
If you want the most recent event, change "FIRST", "Last".
KEEP (DENSE_RANK LAST ORDER BY dt)
or sort in descending order:
KEEP (DENSE_RANK FIRST ORDER BY dt DESC)
If you want to display more than one column in the last row, you will need to use the DUNGEON (DENSE_RANK...) on each of them (except devices).
In this case, you will find may be easier to use an analytical function, such as ROW_NUMBER:
WITH ranked_data AS
(
SELECT device, column_a, column_b, column_c
, ROW_NUMBER () OVER ( PARTITION BY device
ORDER BY dt DESC
) AS r_num
FROM your_table
WHERE LOWER (example) LIKE '%example text%'
AND dt > SYSDATE - 5
)
SELECT device, column_a, column_b, column_c
FROM ranked_data
WHERE r_num = 1;
Tags: Database
Similar Questions
-
Ms more recent update for my VISTA plus old (2008 Acer laptop) was the last event, now cannot start PC... try to recovery without success, a loop back and asking to recover or normal boot... Attached to jumps, safe to ask if I want to recover... I never received an OEM of VISTA version, but the first time having problem after all these years... Help, please... Would contribute to a boot disk, if so, how can I get a copy?... Thanks, Dave * address email is removed from the privacy *
Hello
See if that helps you.
Do a Safe Mode system restore to before the problem started.
http://bertk.MVPs.org/html/restoresysv.html
How to access Safe Mode
http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#Vista
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
If it doesn't, try a startup repair and / or a system restore using a DVD of Vista from Microsoft
Manufacturers recovery disks normally do not have Service Options; they are normally a relocation to the factory only settings option.
Here is the guide to repair Options using a Vista DVD from Microsoft.
If a friend or a work acquantance of yours has one, you can borrow and use it for repairs.
http://www.bleepingcomputer.com/tutorials/repair-Windows-with-Windows-Startup-Repair/
Table of contents
- Overview of Windows Vista repair options
- How to perform an automatic repair of Windows Vista using Startup Repair
- Advanced Tools Overview
- Conclusion
If you do not or can not borrow a Microsoft DVD there is a download of a file ISO of Vista Startup Repair available that you can put on a Bootable floppy to make the above startup repair and that the method is recommended by a large number of posters in these Forums.
Unfortunately, you have to buy it.
Here is a link to it:
http://NeoSmart.net/blog/2011/Windows-Recovery-discs-updated-reinstated/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And here's how to use Recovery of Acer.
http://Acer.custhelp.com/app/answers/detail/A_ID/2631
To start the system recovery:
- Restart the computer.
- When the Acer logo appears on the screen, press the left Alt and F10 keys.
- If you are prompted with a Microsoft Windows splash screen, press the Enter key.
- After that the Acer eRecovery Management application is loaded, select your type of restore.
- Read the review and then click Next when you are ready.
- Click Next to start the restore process. It may take 10 minutes up to an hour fom anywhere to restore.
- Once the restore is complete, your computer will restart. After the reboot it will load Windows and start the installation of your software and drivers. Your computer will restart several times during this process. Once they are all completed, your computer will be like it was when you bought it first.
See you soon.
-
I can't download the last update for Adobe Muse CC. I was directed to this forum. I have an error message "ERROR Adobe Muse CC met a now error and will exit. Please report the last actions bit that you have taken to this error to the Adobe Muse CC team. Try to instantiate UID U4691, but lastAllocatedUID is only: 4491 OK
I would be very grateful if someone can help me solve this problem. I tried the Adobe Muse online chat, but they directed me to you... I'm in the middle of a project for a client and my deadline is Thursday, April 21.
I'm not familiar with the use of the forums.
I looked online updates, I have no idea what to do.
Deb Kelleher
has responded to your other thread, , I can't download the last update for Adobe Muse CC. I was in charge of this formum. I have an error message "ERROR Adobe Muse CC met a now error and will exit. Please report the last actions bit you took for this error to th
-
New iPhone IS does not work with MAC Mini 10.6.8. Apple support says upgrade your iTunes. Its the wrong color icon. WHAT? iTunes is the last 11.4 for my mac. All my music is on my Mac. Help!
That is right. The requires iTunes 12.3.3 and in order to get it, you will need to update OS X to El Capitan. That's how Apple has created for better or worse, I'm sorry.
-
Need to find the version number referring to the last name change for each emplid.
emplID Name age Version --- ----- --- -------- 1 ABC 25 2 1 ABC 26 5 1 def 27 9 1 def 28 15 1 def 29 18 2 JKL 15 5 2 MNO 16 8 2 MNO 17 11 2 PQR 18 20 Need to find the version number referring to the last name change for each emplid.
As indicated by the version number change when there is change in age as well, but I need a query that gives the version number referring to the last name change for each emplid.
with
DATA_TABLE (EmplId, Name, Age, version) as
(select 1, 'abc', 25, 2 double Union all
Select 1, 'abc', 26, 5 Union double all the
Select 1, 'def', 27, 9 double Union all
Select 1, 'def', 28, 15 double Union all
Select 1, 'def', 29, 18 double Union all
Select 2, 'jkl', 15 5 Union double all the
Select 2, 'mno', 16, 8 double Union all
Select 2, 'mno', 17, 11 double Union all
Select 2, 'pqr', 18, 20 double
)
Select emplid,
Max (Name) name of Dungeon (dense_rank last order by version).
Max (Age) age of Dungeon (dense_rank last order by version).
version Max (version)
from (select emplid, name, version,)
-case where name! = lag(name,1,name) on (emplid version order partition)
then "renamed".
end change
of data_table
)
where the change is not null
Emplid group
EMPLID NAME AGE VERSION 1 def 27 9 2 PQR 18 20 Concerning
Etbin
-
I bought the last 13 items for download, but I clicked on the link Windows by mistake when I bought it, I own a Mac, how can I change the Mac platform? The Adobe site seems to indicate that it automatically detect that I own a Mac and change the platform, what then? I can't find anything (probably to the search in the wrong place) on Returns or cancel my order. Any suggestion would be great, thanks.
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)
Get help with orders, refunds and exchanges (non - CC)
-
Hi, back back can check files you opened with "recent files"? With my current setup, I can only see the last 10 files. Can I change the setting to display the last 20 files for example? Thank you
File management preferences is where you can change the number. I don't know the maximum.
-
What is the last downloadable version for Adobe Reader, 11.0.08 or 11.0.09? I saw the 11.0.09 download last Friday 18 September 14 but is no longer seeing her today 22/09/14, just the 11.0.08. In addition, after I downloaded and expanded AdbeRdr11008_en_US.exe, I'm AcroReader.msi that's posted date 23/09/2012. I need to customize the MSI file by using the wizard XI of Adobe Customization for our business environment. Can you direct me on where to download the last file MSI for Adobe Reader? Thank you.
The last MSI made available by Adobe is AdbeRdr11000_en_US.msi
You can get the 11.0.09 http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.09/en_US/AdbeRdr11009_en_US.exe EXE
-
Licenses for the software HP Smartscan for mulitple devices
Dear Forum,
I have an old 7800 scanner that I want to share (with a USB switch), will it take additional licenses for the Smartscan software for other devices? - and if so please could provide you a room code I can order.
Thank you very much.
No, you will not have a license for the software SmartScan. You may not be able to share scanners, however. You can try to see, but you will not have an additional license or nothing.
-
Hi all, I am interested in my Sony Vaio AR41L (under Vista 32 bit SP2) upgrade to Windows 7, but when I run the Windows 7 Upgrade Advisor, it tells me that, for the graphics card, NVIDIA GeForce 8400 M GT, the driver "installed for this device is not compatible with Windows 7.
Apparently, NVIDIA is not a solution and sent people to Sony, and Sony say that they have not updated the drivers for Windows 7 and that we do not know when they expect to do...
All known and solved this problem? Any suggestions would be very helpful!
Thanks in advance.
someone noted that nVidia will come out a new batch of pilots in the coming days. (once a month)
It may be desirable to wait outside and continue with VGA Standard at the moment. Help others, tell us which solves your problem. Click useful Vote for those who help.
-
Latest version of the app not available for some devices
BB App World, the latest version shows approved. But when we try to install in the device, the world of the app in the device (9900) not showing the last version. The name of the application's AACM and latest version 3.1
Please help solve the problem.
Correct, you will not be able to remove a package, but the configuration that you have changed them should solve the problem.
I have re - has approved the release. It can take a few hours to see if the changes have solved the problem of some users not seeing the most recent version.
-
I need to reinstall Lexmark X 422 for imaging devices, as is show a yellow mark and when I click on its properties, it says cannot start code 10
You can download the driver from the following link:
Unplug the printer first, install the driver, it restarts the computer, then connect the printer and see if t is detected.
-
Flex Mobile - which is the last event in a view is displayed
Is there an event that is raised after the contents of the view are displayed on the screen.
Basically, I want to call an API in this case and prior to extract some data for the following view so that it can be charged faster when the user accesses the following view.
OR
Is it possible to do a thorough treatment so that there is no delay on the side of the user interface.
I think that you are looking for the viewActivate event. It fires after the view transition is complete.
If you find that you have seen that take a long time to create this post might be useful: http://flexponential.com/2011/10/05/performance-tuning-mobile-flex-applications/
-
Drop-down menu does not when the navigation bar collapses for mobile devices
My menu drop-down does not work correctly when the navigation bar collapses on mobile devices. The menu, but it's completely to the left, not right where I like it and hidden under a picture so that none of the links are accessible. The site is http://www.medicinedancecounseling.com.
Index-Z = stacking order. So even if you make menu items at the top, they mask your portrait in a most flattering way.
Nancy O.
-
How to transfer the file from Notepad for mobile device?
Hello.. I can transfer files from mobile phone to laptop (with interchange of information) but not the other way around! I tried to use "Wireless file transfer" to transfer file from laptop to laptop but when I click on send, nothing is really happening. Can someone please? Thank you.
BTW, I use a toshiba R500.Salvation, but what mobile device you have?
Maybe you should try the following: uninstall all bluetooth related things, download the latest version of the bluetooth software is available for your computer, install it and try again. It might be a good idea to install the latest bios and drivers.Would appreciate comments on your part.
Welcome them
Maybe you are looking for
-
How do I remove bookmarks of Firefox for Android?
I created bookmaks duplicate and delete the DUP.
-
atikmdag.sys BSOD appears on Satellite C850-19 q after 8.1 Win update
Help, please. I have Satellite C850-19 q (PSCBYE-00L00GY4), Windows 8 x 64, after that I have updated to 8.1 on store, show me BSOD (atikmdag.sys system_thread_exception_not_handled). I tried to reinstall windows and install again all drivers and upd
-
Satellite 1800-400 ME upgrade to XP Pro?
All successful one satisfactory to a Satellite 1800 400 upgrade or similar (384 MB of RAM, 20 GB HD, 800 MHz Celeron) of Win ME? Would prefer to upgrade to XP Pro, but pure install 2nd choice. If I have the HD format for a clean install, an updated X
-
Y70 - 70 - without onekey recovery
Hello How can I recover the Y70 70 without using "key recovery" because the system does not at all. Stucks, does not, hungs, a lot of problems. Computer laptop is new, never used, because it does not work. I try to factory reset, but need some help h
-
After the crash of my computer, I installed Windows Genuien Advantage Kit for Windows. But there is no WORD/EXCEL/PPT. I can now install OFFICE HOME & STUDENT 2007 WITHOUT LOSS of BENEFIT of WINDOWS VISTA?