Logged users for last week or last 7 days
Hi in my application there is log for who is logging and i want to find who logged for last 7 days or last week.i tried the following query and its not workinghow to fix it
select uid,agentid ,logtime from agnt_mst
to_date(to_char(logtime,'dd-mm'),'dd-mm') between to_date(to_char(sysdate,'dd-mm'),'dd-mm') and to_date(to_char(sysdate,'dd-mm'),'dd-mm') - 7;
Here trying for one test table
desc emp_benefit
employee_number varchar2(30)
employee_name varchr2(40)
dob date
select distinct employee_number,dob from emp_benefits
WHERE trunc(dob) >= trunc(sysdate-5)
it shoud return
70935 Mrs. Mervatte 17-AUG
74552 Mrs. Dona 18-AUG
75331 Mrs. Ramesh 20-AUG
76068 Mr. Fernandes 17-AUG
72366 Ms. Rajaa 19-AUG
rgds
raj
Similar Messages
-
How to get Maximum Number of Concurrent users for last few days?
Hi,
How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
Thanks in advance...
Regards,
PravinSorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
Thanks
Pravin -
I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?
Download a free app and try again, you can delete the free app afterward.
-
How do I know what transactions executed by specific user for last month
All
We have a request to find out what transactions are executed by secific user
for last couple of months.
Is there any report in SAP would tell me ?
Please advise.
From
PT.Hello PT,
If you use the search for the term "How do I know what transactions executed by specific user for last month" then I guarantee you some good hits in the result, and further more detailed search terms to use...
Cheers,
Julius
(this time in response to the correct thread...) -
my phone was not worked for last two days it happen after the instalation of new os,this is happen one of my friiends also plssssss find some solution
We are all just phone users here, and no-one can hope to provide any advice with so little information to go on as to what exactly has happened. You need to provide some detail.
-
List of long running Conc Requests required for last 6 days
Hi All,
I need List of long running Conc Requests required for last 6 days.But somewhat my query is not working and giving me the output.
Could anyone please let me know what is wrong in the query which gives me the output for 60 mins but not for the last 6 days as required.
Query:
set echo off
set feedback off
set linesize 97
set verify off
col request_id format 9999999999 heading "Request ID"
col exec_time format 999999999 heading "Exec Time|(Minutes)"
col start_date format a10 heading "Start Date"
col conc_prog format a20 heading "Conc Program Name"
col user_conc_prog format a40 trunc heading "User Program Name"
spool long_running_cr.lst
SELECT
fcr.request_id request_id,
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) exec_time,
fcr.actual_start_date start_date,
fcp.concurrent_program_name conc_prog,
fcpt.user_concurrent_program_name user_conc_prog
FROM
fnd_concurrent_programs fcp,
fnd_concurrent_programs_tl fcpt,
fnd_concurrent_requests fcr
WHERE
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) > NVL('&min',45)
and
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) > NVL('&days',5)
and
fcr.concurrent_program_id = fcp.concurrent_program_id
and
fcr.program_application_id = fcp.application_id
and
fcr.concurrent_program_id = fcpt.concurrent_program_id
and
fcr.program_application_id = fcpt.application_id
and
fcpt.language = USERENV('Lang')
ORDER BY
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) desc,
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) desc;
spool off
Thanks for your time!
Regards,Hi,
I suggest that you look at this line in particular:
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) > NVL('&days',5)and consider whether it is asking the question that you want it to ask.
Furthermore, it looks like you are expecting to get time in minute from the following line, and this definitely does not return minutes:
TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) I recommend finding one or two IDs for concurrent requests that you know are running for a long time, comparing the start and end times, testing that information against the output of the above functions, and adjusting your query accordingly.
Regards,
John P.
http://only4left.jpiwowar.com -
Calculate sales for last 60 days
hello
want to make key figure or formula, which calculate sales for last 60 days, but also i need to add week group in report, so for each week i need sum sales for last 60 days before this ...
is any solution to that?
thank you.Alex,
I'm not very clear on what you are asking.
If you use your time parameters in selections you can use caldays and weeks with your key figures.
ie. Selection 1 has your key figure and calday restricted t the last 60 days.
Selection 2 has your key figure and Fiscal Week but I am not clear on the range required for fiscal week.
Regards
Gill -
How to get a list of Local Users who has not logged in for 3 months or around 90 days
hi
i found this thread to pull out a list of local users
Retrieve all local user accounts information on remote computers (PowerShell)
however, i need to filter out users who has not logged in for 3 months or around 90 days, how can i do further filtering?
i understand dsquery has an -inactive <xweeks> , however i am doing it for local accounts$ErrorActionPreference = "silentlycontinue"
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user' -and $_.lastLogin -gt (Get-Date).AddDays(-90)} | ft name,lastlogin
using the sample from the link extendend with the 90 days criteria, the erroraction preference surpresses the errors you get for accounts with no lastlogon value (guest being a typical one) -
My app status is "inreview" for last 4 days.
I have uploaded my app using itunes connect after 7 days my app got reviewd but they rejected my app and displayed the status like metadata rejected. According to resoltion centre i have given specific info for review and resubmitted without adding new binary.Within hour my app status changed to "In review " but my app not reviewd yet now.It's in same status for last four days.What i need to do now? Is any way to get the reason of delay from apple?
Hi, LTKS.
Thank you for visiting Apple Support Communities.
Try removing the preference to sync calendar events in iCloud preferences. Once this is down enable the preference again and see if this resolves the issue.
Turn iCloud Calendars off and back on:
Quit Calendar (or iCal).
Choose Apple () menu > System Preferences, then select iCloud.
Deselect the checkbox next to Calendars.
Close System Preferences and wait about a minute.
Open System Preferences and select iCloud.
Replace the checkmark next to Calendars.
Close System Preferences.
Open Calendar (or iCal) and test to see if the issue is resolved.
Restart your computer. This may sound simple, but it reinitializes your network and application settings and can frequently resolve issues.
If the issue persists, try all remaining steps in the article below.
iCloud: Troubleshooting iCloud Calendar
http://support.apple.com/kb/TS3999
Regards,
Jason H. -
Have been unable to download telegraph subscription for last 4 days since they up graded the ap. can you tell me how to restore it please?
You're the second person in two days having trouble with the Telegraph update. Step one is a reset. Press and hold both the home and power buttons for 10-15 seconds till the Apple logo appears. Release both buttons. Wait 15-20 seconds till your iPad starts on it's own.
-
Enrollment pending for last 4 days
I tried enrolling to IOS Developer program on 1st Sept 2014. However, till date, I have not got any response, it still says, 'enrollment pending' for last 4 days. Please help. My credit card was successfully charged. Can anyone please provide me the support help desk number?
We've received your order request.
Dear xxxx,
This is a summary of your order request, which will be
processed within 2 business days.
Product:
iOS Developer Program
Payment:
99.00 USD
Best regards,
Apple Developer Program SupportIt's an epidemic everywhere. I now feel it's to get people to move to FIOS. They are too cheap to upgrade their equipment for DSL service. We need to bond together and fight back.
-
Backup Failed for last two days
Dear All,
We are getting Backup failed for last 2 days and it throws below error .
BR0280I BRBACKUP time stamp: 2011-12-09 19.27.17
BR0312E Database instance SRX shutdown during online backup
BR0252W Function remove() failed for 'X:\oracle\SRX\sapbackup\.behkdcyf.013' at location BrCleanup-6
BR0253W errno 13: Permission denied
BR0252W Function remove() failed for 'X:\oracle\SRX\sapbackup\.behkdcyf.014' at location BrCleanup-6
BR0253W errno 13: Permission denied
BR0115I Compression rate for all files 4.4881:1
BR0280I BRBACKUP time stamp: 2011-12-09 19.27.19
BR0301W SQL error -24909 at location BrDbDisconnect-1, SQL statement:
'/* BRBACKUP */ ALTER TABLESPACE "PSAPSR3DB" END BACKUP'
'COMMIT RELEASE'
ORA-24909: call in progress. Current operation cancelled
BR0327W Disconnect from database instance SRX failed
BR0280I BRBACKUP time stamp: 2011-12-09 19.29.45
BR0317I 'Alter tablespace PSAPSR3 end backup' successful
BR0280I BRBACKUP time stamp: 2011-12-09 19.30.19
BR0317I 'Alter tablespace PSAPSR3700 end backup' successful
BR0280I BRBACKUP time stamp: 2011-12-09 19.30.19
BR0301E SQL error -1142 at location BrBackAlter-3, SQL statement:
'/* BRBACKUP */ ALTER TABLESPACE "PSAPSR3DB" END BACKUP'
ORA-01142: cannot end online backup - none of the files are in backup
BR0280I BRBACKUP time stamp: 2011-12-09 19.30.19
BR0318E 'Alter tablespace PSAPSR3DB end backup' failed
BR0280I BRBACKUP time stamp: 2011-12-09 19.30.29
BR0317I 'Alter tablespace PSAPUNDO end backup' successful
BR0056I End of database backup: behkdcyf.and 2011-12-09 19.27.18
BR0280I BRBACKUP time stamp: 2011-12-09 19.30.34
BR0054I BRBACKUP terminated with errors
Note : I have checked till now SAP is not down (ST02 - Startup: 14.09.2011 13:18:46)
Kindly suggest to resolve the issue as well what was the reason behind ...
ThanksHi ,
Thanks for ur valuable reply ..
I have already checked Tablespace status in DB02old , all the Table space are ONLINE , NOT ACTIVE .
Tablespace Size (kb) Free (kb) Used (%) Tab/ind Extents AutoExt (kb) Used (%) Status Backup
PSAPSR3 35.538.944 5.400.960 84 51.141 70.617 55.320.576 54 ONLINE NOT ACTIVE
PSAPSR3700 21.008.384 1.131.648 94 916 6.730 27.164.672 73 ONLINE NOT ACTIVE
PSAPSR3DB 5.816.320 3.763.328 35 3.091 4.581 10.485.760 20 ONLINE NOT ACTIVE
PSAPSR3USR 20.480 20.032 2 6 6 2.097.152 0 ONLINE NOT ACTIVE
PSAPTEMP 901.120 900.096 0 0 0 2.097.152 0 ONLINE NOT ACTIVE
PSAPUNDO 7.740.352 6.877.824 11 19 726 Off 11 ONLINE NOT ACTIVE
PSAPYBMCD 901.120 678.144 24 302 798 2.097.152 11 ONLINE NOT ACTIVE
PSAPYBMCI 901.120 758.208 15 371 912 2.097.152 7 ONLINE NOT ACTIVE
SYSAUX 972.800 716.160 26 1.769 2.898 2.097.152 12 ONLINE NOT ACTIVE
SYSTEM 1.177.600 724.480 38 1.226 2.413 5.242.880 9 ONLINE NOT ACTIVE
Kindly advise .
Thanks -
I am trying to calculate Deviation Measure for the Reports and the formula to calculate is –
(average(last 7 days count ) – today’s count/100 )*10
Problem here is to calculate average for last 7 days .
I am using moving average but if I apply a filter , Moving average is calculated for the number of rows displayed whereas I want it for the number of days.
Formula for Moving average is - MAVG(Row Count,n) where n is number of rows displayed and not number of days. Is there any possible way to do it.(average(last 7 days count ) – today’s count/100 )*10
Filter( avg(col1) using date > current_date-7)) --Average for last 7 days
Filter(count(col) using date = current_date) - today's value -
HT5567 Appstore not loading on my new ipad for last 2 days. Any hep out there?
Appstore not loading on my new ipad for last 2 days. Any hep out there?
http://www.apple.com/support/itunes/contact/
-
any body have a query for last 8 days results
TIMESTAMPADD(SQL_TSI_DAY, -8, CURRENT_DATE) this is resulting only 1 day results only .if i execute this query is it displaying 8th back day results only.
i want all 8 back days results .
anybody have query for this...
Edited by: user12255470 on Apr 28, 2010 7:19 AMThis works fine for me:
SELECT "D0 Time"."T00 Calendar Date" saw_0, "F1 Revenue"."1-01 Revenue (Sum All)" saw_1 FROM "Sample Sales" WHERE "D0 Time"."T00 Calendar Date" BETWEEN TIMESTAMPADD(SQL_TSI_DAY, -8, CURRENT_DATE) AND TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE) ORDER BY saw_0
regards
John
http://www.obiee101.blogspot.com/
Maybe you are looking for
-
Why does the videos looks so slow
why does the videos looks so slow only in the internet
-
Hi, I am using flex datagrid to develop an application in french, as french is having special character in it, i need to sort datagrid column in french. Flex datagrid unable to sort data in french. i need french sorting, if somebody has solution of t
-
Predictive Analytics installation prerequisite
Hi all, so I'm trying to install Predictive Analytics 2.0 on my laptop Helix but the system keeps saying the following error: "This product cannot be installed on the same machine as SAP Predictive Analytics 2.0 All incompatible products must be unin
-
Can't configure CSV pserver on Leopard
I had a CVS repository installed on my PowerMac G5 that I could access remotely from other computers on my network. I recently upgraded the system to Mac OS X 10.5.1 and now the repository is not working. I found a web site that showed how to create
-
IWork for iPhone 5 free (after buying a new device)
Hi, (I'm german please don't blame my englisch ) I bought my iphone 5 a year ago on its release date. Now I heard iWork (Pages. Numbers. Keynote.) is for free but only for devices which are only currently aktivated in September 2013. I understand the