How to filter IN and OUT punch timings for Attendance in Day and Night shifts in oracle SP?
I am developing Attendance system which having day and night shift I am unable to filter the IN and OUT punches of the employees? below is my current logic
shift timings on 29-Jun-2013 IN 22:00 OUT 07:00 and on 30-Jun-2013 IN 15:00 OUT 22:30
I am filtering the IN and OUT punches based on shift timings and swipe time along with date, but when the employee changing from night shift to day shift I am getting problem.
the below is the one scenario
the employee : 101 has worked on 29-Jun-2013 on night shift punched at 22:00 and he left at next day means 30-Jun-2013 07:00 AM and again the same day (30-Jun-2013) he came to office at 15:00 on 30-Jun-2013 and he left at 22:30 on the same day now if the punches will come daily then there is no problem, however due to any problem punches are not received for 30-Jun-2013 07:00 AM then the punches IN 15:00 OUT 22:30 on 30-jun-2013 already in database now the out punch of 29-Jun-2013 is 30-Jun-2013 at 07:00 AM it is difficult to find this as previous day out punch
Note: some times the employees forgot to swipe IN/OUT punch
so if any body have solution please update
Like
Employee ID
Date
Time
PunchType
Comments
101
29-Jun-13
22:00
IN
101
30-Jun-13
7:00
OUT
If this row is not there & next row is with IN flag, the email should be triggered to employee
101
30-Jun-13
15:00
IN
101
30-Jun-13
22:00
OUT
I have another scenario for you -
Employee ID
Date
Time
PunchType
Comments
101
29-Jun-13
22:00
IN
101
30-Jun-13
7:00
OUT
101
30-Jun-13
11:30
IN
how do you know it is not the continuation of 29-Jun shift? I believe you might have to define a rule here that if a person swipes IN say in n(4.5 in this case) hrs gap, it would be considered as Next Day
101
30-Jun-13
22:00
OUT
Regards,
Similar Messages
-
R12: How to filter AP and PO Accrual Reconciliation Report based on GL Date
Hi,
Anybody know how to filter AP and PO Accrual Reconciliation Report based on GL Date from and GL Date to in R12?
Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
We need to run the report only for specific date only. Please share with me if anyone know about this.
Thanks.In 12 you can rebuild and run the report for a particular period, but not a single day if that's what's required
-
How to Export Snapshots and Materlized View in Oracle 9i
Hi,
How to Export Snapshots and Materlized View in Oracle 9i .
I require to Migrate from 9i to 10g with either Export or Script.
Please helpUsing exp-imp for snapshots generally causes problems, at least for me. I would prefer taking their creation scripts and running them on the new database.
By the way, what do you mean by "migrate from 9i to 10g"? Are you trying to create the same snapshots in another (10g) database or are you trying to upgrade your 9i database to 10g? If it is the latter then you can just upgrade the database automatically with the upgrade assistant or manually using upgrade scripts. -
How to get the elements out of a for loop simultaneously during the loop execution
Hi,
I am student. I would like to know how to get the counter values outside the For loop parallely while the loop runs rather that getting the finally value outside the For loop. Looking forward for answers.
Thanks,
Athira
Solved!
Go to Solution.You could use a notifier (since it is a single value) or a reference (with a property node) to a control that gets the value elsewhere in another VI.
If it is within the same VI, you could use a property node (right click > create > property node > value) from the control within the same VI located outside the loop.
If you promiss NOT to abuse the use of Local Variables, you could use that to only write from ONE location within the For Loop to a control outside the loop, similar to the property node mentionned earlier. (Of course, I will be struct by lightening for mentionning that and scolded by other LabVIEW coders for having a change of heart on the use of Locals.... Shivers are already crawling up my spine).
You could use a queue, but that might be an overkill, unless: the count is generated faster than it is being read elsewhere...
As crossrulz mentionned, can you describe what you will be doing with the count? Because synchronizing data (fresh / stale / etc) is very important within LabVIEW as it executes based on dataflow rather than a sequential order.
Hope this helps.
EDIT:
You have not fully provided the answer. We figured that much of your code from your description, but what is reading the value of the count? Is it in a separate loop? If not, it may only deal with the first value, which is likely 0. The proper advice depends on how you process the received data (count). -
How to store images and video clips in Oracle
All,
Can anyone guide me how to store the images and video clips in oracle through pl/sql and also the way to retirve it.
Edited by: sikander on Sep 7, 2010 3:27 AMSome sample code
connect sys schema --if scott has no privs to create directory
--where physical file store in the same machine where database load
CREATE DIRECTORY IMAGES AS 'D:\images';
GRANT READ ON DIRECTORY IMAGES TO SCOTT;
connect scott/tiger
create table my_book_diagrams (Image BLOB);
DECLARE
v_file_loc BFILE;
v_diagram_loc BLOB;
v_diagram_size INTEGER;
BEGIN
v_file_loc := BFILENAME('IMAGES','Layout.bmp');
DBMS_LOB.FILEOPEN(v_file_loc );
v_diagram_size := DBMS_LOB.GETLENGTH(v_file_loc);
INSERT INTO my_book_diagrams (Image) VALUES (EMPTY_BLOB())
RETURNING image INTO v_diagram_loc;
DBMS_LOB.LOADFROMFILE(v_diagram_loc, v_file_loc, v_diagram_size);
END;
commit; -
How to monitory Siebel and E-business with Oracle Grid Control 12c
Hi All,
Please i need any documents for Monitoring Siebel and E-business with Oracle Grid Control 12c.
Thanks in advance,
MostafaI would think this is indeed the only way to monitor the URL.
Perhaps you could try a solution in creating your own plug-in.
Check http://www.oracle.com/technetwork/oem/extensions/index.html for this.
Regards
Rob
http://oemgc.wordpress.com -
How to identify the maximum data loads done for a particular day?
Hi all,
There is huge volume of data been loaded on a last monday, and then data was deleted from the cubes on the same day. And hence i needs to see which are all the cubes which was loaded wtih lot of records for a particular day,
i happened to look at rsmo, i am unable to see the ods nor the cube data loads,
were do i seet it?
ThanksSee if the table RSSELDONE helps. This will give you the recent data load details. Based on those loads , you can search the targets.
And also check table TBTCO which will give the latest job details. You will have to analyze the same jobs to know what loads were done . Give a selection for date. -
How to filter disabled accounts out of Dynamic Distribution Groups/Lists?
As far as I understand it, OPATH does not support bitwise and/or flags, so excluding disabled accounts from dynamic distribution lists is impossible, unless I am missing something super simple.
Many have found what they believe to be a valid solution by using -not(UserAccountControl -eq 'AccountDisabled, NormalAccount') in their filter, but this only equates to "anything NOT with a UserAccountControl value of 514 (integer)". Simply
adding "password does not expire" option on the account breaks that filter even if the account is disabled.
Further, it appears anytime you create an OPATH filter, Exchange does create an LDAP equivalent filter that can be read, however it seems you cannot directly edit the LDAPRecipientFilter. If I could, I could put in the necessary bitwise operation needed
for this, e.g. (!UserAccountControl:1.2.840.113556.1.4.803:=2), but it doesn't seem possible.
Unfortunately I cannot rely on the ExchangeUserAccountControl flag as that relates to just hiding from Address Lists, and I have disabled accounts that need to be in the GAL. Further I have active mailboxes for disabled AD accounts so I cannot use IsMailboxDisabled.
Is this by design? If so I don't understand why. Are there any options (even with Exchange 2013)?Hi Simon. Thanks for your response.
I'm not sure what additional information I can provide that I have not already regarding the my suggestion/requirement, short of re-stating my original query.
With Exchange 2003, we could simply exclude disabled accounts from dynamic distribution lists via the use of an LDAP filter that used bitwise logic against the UserAccountControl attribute, e.g.
(!UserAccountControl:1.2.840.113556.1.4.803:=2)
With Exchange 2007, direct LDAP queries were deprecated in favor of OPATH. Unfortunately as a result, we can no longer filter out disabled accounts because OPATH does not support bitwise logic -xor -xand, etc. Because of this we can no longer
effectively use the UserAccountControl flags to exclude disabled accounts. We can use this attribute by specifying explicit combinations of flags, e.g.
UserAccountControl -ne 'AccountDisabled, NormalAccount'
But because this attribute is a culmination of bits representing many different account options, there are a large number of combinations of values that could include Disabled Accounts whereby a filter such as above would NOT work. E.g. simply adding
an option to not expire the password on the account renders the filter above invalid.
Currently our only option is to use workarounds which are not very effective (e.g. using a different attribute to store information about disabled accounts and filter on that instead). As accounts can be disabled simply with a right-click in ADUC,
enforcing the use of an additional attribute is not effective.
I would like to understand why OPATH excludes this functionality, e.g. is it a design decision? Or is it simply an oversight? Further I'd like to see this functionality added. -
How to filter data and display
hi there
i have a product page and ploduct list menue. i want to be
able to filter products.
for example on my list i have shose. and they come in
diffrent sizes.
when cutomers selects size 10 from down down list databse
lists all shose size 10. how can i get mysql to show all products
when customer selects show all products from drow down list?
SELECT *
FROM shoetable
WHERE shoesize = colname
what value should i pass to mysql to show all products.
if colname = 9 it works fine lists all products with size 9.You could do something like this with the SQL:
if(!isset($_POST['size'])){
$query_rsShoes = "SELECT * FROM shoetable";
else {
$query_rsShoes = "SELECT * FROM shoetable WHERE shoesize =
$_POST['size'] . "'";
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"elyas2004" <[email protected]> wrote in
message
news:fqaq2c$t25$[email protected]..
> hi there
>
> i have a product page and ploduct list menue. i want to
be able to filter
> products.
>
> for example on my list i have shose. and they come in
diffrent sizes.
>
> when cutomers selects size 10 from down down list
databse lists all shose
> size 10. how can i get mysql to show all products when
customer selects
> show
> all products from drow down list?
>
> SELECT *
> FROM shoetable
> WHERE shoesize = colname
>
>
> what value should i pass to mysql to show all products.
>
> if colname = 9 it works fine lists all products with
size 9.
>
>
> -
How to filter parent and child tables data in impdp?
Hi Friends,
i hope everyone doing good..
I have two tables in my schema like below.
STUDENT_DTLS:-
SID Sname CID
1 venkat 001
2 uppy 002
3 deepu 003
4 trinath 003
5 naveen 004
6 ramesh 005
COURSE_DTLS:-
CID CNAME Fee
001 Oracle 2000
002 java 6000
003 sieble 4000
004 informatica 3000
005 obiee 4000
if I load only few Student details say sid=1,2,3 into another environment using impdp,corresponding to those students course details from COURSE_DTLS table only need to be loaded.Not all course details.
Iam Expecting Result in new schema as below:-
SID Sname CID
1 venkat 001
2 uppy 002
3 deepu 003
CID CNAME Fee
001 Oracle 2000
002 java 6000
003 sieble 4000
But when i am using the below import scrit,The COURSE_DTLS is loading first and its query option(select cid from STUDENT_DTLS) is returning no rows.Because at that time no data is insertred into STUDENT_DTLS yet.
secondly it is importing data into STUDENT_DTLS with query option where sid=in (1,2,3) which is loaded propelry.
Thirdly it is trying to enable primary key and Foreign key constraints which is also failing because of no data in COURSE_DTLS table.
i have changed the order of tables in TABLES clause like tables=COURSE_DTLS ,STUDENT_DTLS.But still COURSE_DTLS table is loading first.
impdp pa_data_sub/******* NETWORK_LINK=qdssih30 tables=STUDENT_DTLS,COURSE_DTLS query='STUDENT_DTLS:"where SID IN(1,2,3)"','COURSE_DTLS:"where cid in(select cid from STUDENT_DTLS)"', CONTENT=all table_exists_action=replace directory=DATA_PUMP_DIR logfile=exp_join.log
output:
Total estimation using BLOCKS method: 128 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . imported "PA_DATA_SUB"."COURSE_DTLS" 0 rows
. . imported "PA_DATA_SUB"."STUDENT_DTLS" 3 rows
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39083: Object type REF_CONSTRAINT failed to create with error:
ORA-02298: cannot validate (PA_DATA_SUB.SYS_C0040905) - parent keys not found
Failing sql is:
ALTER TABLE "PA_DATA_SUB"."STUDENT_DTLS" ADD FOREIGN KEY ("CID") REFERENCES "PA_DATA_SUB"."COURSE_DTLS" ("CID") ENABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "PA_DATA_SUB"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 17:28:13
Please suggest me how to achieve this task in a single import command?
Is there any option in impdp to prioritize the table to be loaded first?
Thanks,
Venkat VadlamudiYou can't be guaranteed which order the data will be loaded in, so using a query that examines a table that is being imported is not going to always work the way you want it. The failing constraints makes sense because there is no data.
So, in your case, course_dtls gets imported first and the table student-dtls exists, but it not populated yet, so the select cid from student_dtls comes back with 0 rows. The second query works fine.
You might be able to change the query to be:
'COURSE_DTLS:"where cid in(select cid from STUDENT_DTLS@qdssih30 where SID IN(1,2,3)"'
This way, you query the source table pointed to by the network link and you use the same subquery from the first table.
This should work for you... I think anyway.
Dean -
How to filter datas and display in java
Hi guys.
I'm kind of new to Java,
I've have a database where values are stored ,i just have to take one column and i got to filter one value and display all .
is there a command to filter
I just want to do that if that Not wanted value is there to ignore and display the rest of the data in the html when search is called.
i have to do this in the java , not in jsp.
mysql,hibernate,ejb,jsp are being used at my environment.
please helpSimply put you want to 'selectively' navigate through the collection of data. Here, is an alternative using Iterator pattern given below;
Create an interface
* Iterator interface has method declarations for iterating through
* data.
public interface Iterator {
public MyData next(int current);
public MyData prev(int current);
}// End of interfaceNow, create implementation classes for the above interface and you can aptly name them based upon your filtering criteria
public MyFlter implements Iterator {
* next � method which takes the current data number
* and returns the next selected data.
public MyData next (int current) {
MyData data = null;
while desired data not found: iterate --> implement your selection criteria here
return data
} Similarly implement the previous method.
Hope that helps. -
How to filter doc and xml using SDKFileOpenChooser?
I need to filter only word and xml
SDKFileOpenChooser openChooser;
openChooser.AddFilter(291, "App_Filter"); //291 for app
openChooser.ShowDialog();
Where i find the extension ID for app filter or any solution?To view only XML files using SDKFileOpenChooser use:
openChooser.AddFilter(kXMLFileTypeInfoID, " XML files(xml)");
For Word files, try using kMSWordFileTypeInfoID instead. -
How to set the zoom out or in for all pages permanently?
I wish to set my page size one size smaller than the default.
The result of ctr - (zoom out) is exactly what I want (it decreases the size of text AND images). However this effect only lasts for the page I am currently on, as soon as I navigate to a different page (or just refresh the page I am at), it reverts back to the default size.
I looked at Tools->Options->Content, however that deals only with text size (besides it looks only certain pages are affected by this setting anyway).
In other words, how (or where) do I set my browser to automatically decrease size or 'Zoom Out' for all the pages I visit in order not to set it manually for every page every time.
Regards
PS.
If this setting can be applied for individual users (I have a multi user PC) that would be even better, although I would be very grateful if I could just set it.
PPS.
Additional information. I just discovered it seems to be working now in normal browsing but not in private browsing, my apologies for the omission.Default FullZoom Level extension:
https://addons.mozilla.org/en-US/firefox/addon/6965 -
How to accomplish Revenue and Cost forecasting in Oracle?
We are implementing Oracle Rel 11.5.10. and have a specific business requirement for Revenue and Cost Forecasting.
We have Projects integrated with OM using custom extensions (We are not using Project Manufacturing). Revenue is based on scheduled shipment dates and Cost is based on PO Promise Dates. Both Revenue and Cost are forecasted for 2 quarters and are rolled up on revenue category level. When Scheduled shipment date changes it is required to automatically forecast the revenue in the period scheduled ship date falls into. We understand that out of the box functionality does not support roll up of forecast at revenue category level which leads to displaying budgets, commitments and atuals in different lines. Has any one done this in any of there client engagements? Can anyone explain how Revenue and Cost forecasting is done in a High tech Network Equipment manufacturer which usies Projects.
Any help will be highly appreciated.
Thanks in advance
AmitHi
My understanding is that your entire solution is based on custom proceses.
You might have a program that reads the scheduled shipment date from OM and generate budget lines for revenue.
You might have a program that reads the PO Promise date from Purchasing, and generate budget lines for costs.
You could integrate those sources and generate a new version of forecast every time you need to update your plans in Oracle Projects.
Dina -
How to configure inactivity time out in 11i for external DMZ server
Hi All,
We are currenlty enablling DMZ functionality for some of internet applications. Generally a user will travel through Oracle Portal to access these applications.
We want to set a seperate inactivity time out for user comming via external server. We manage to do this for Portal and SSO. But enable to find one for ebusiness suite. The idea is if a user access these applications from pulic PC and fogot to log out then if the system doesn't time out in 5-10 mins then it raise a risk of access to application by unautherized users.
Any advise on this will be of great help.
Incase this is no the right forum for these questions then if you know please advise where to direct this query.
Regards,
NavinHi Hussien,
Thanks for the quick notes, The challange we have is most of these setups are common for both external and internal servers. Change in one will impact the behaviour for others. What we are looking at is some thing like this. Unless I am missing some thing here.
User login using external server over DMZ will time out in 10 mins assessing an application (i.e. Employee self service) where in if the same user access the same application using internal server then the session can be alive for say 60 mins.
Do you think I am thinking on the right track. or am i missing any point here
Regards,
Navin
Maybe you are looking for
-
SQL Job information ****************************** Jobname: SAP CCMS Full DB Backup of ADQ [20110118203423-3-030000] Type: TSQL DB-Name: ADQ For Run: 20110119 03:00:00 Job history information ***************************** Stepname:
-
Alt attribute on background image in an include
I have background images defined in a stylesheet being called by an SSI. Research seems to say I cannot. Client wants it. Is my only option overlib? Jo
-
Question re master socket vs secondary and install...
I'm seriously considering switching to Infinity but have a question re sockets. My current modem and network gigabit switching are all upstairs, coming from a secondary socket running outside the house from the master socket on the ground floor. I wa
-
G'day, It seems the blueprint for any date/time handling is the blog post: Working with OData Dates and Times. I am interested in handling (i.e formatting) a time I am receiving from an oData service. My problem is that if I simply output what I am b
-
I have an odd little issue that I hope someone can help with. I have a 2.8 GHz MacBook Pro 15" running 10.6.4, with two external 1TB LaCie d2 Quadra Hard Drives (one is a weekly Carbon Copy Cloner backup, and the other is my Time Machine). Approximat