Running Quickpay from Backend for each employee
Hi ,
We have a requirement to submit quickpay from backend for 100 employees.If any one has done same requirement , please send me any sample code please.
Thanks
Suhasini.
We have a requirement to submit quickpay from backend for 100 employees.If any one has done same requirement , please send me any sample code please.I can see users can ask for different requirements. But you can suggest them the best approach for a solution. Why you can not create an assignment set and process hundred employees. Why do you want to schedule Only Quick Pay.
Similar Messages
-
How can we load apps without creating an Apple ID for each employee?
We have at least two apps that we'd like to distribute to our company iPads. We would like to hand the employee the iPad with everything loaded. We don't care if they create their own Apple ID and manage it after the fact but when the employee gets the iPad, it should have the apps they require.
How do we load these apps without creating an Apple ID for each employee? If we load the apps from App Store with our Apple ID, the app requires that username and password whenever there is an update. The employee can not update the app without our username and password or they have to delete and reinstall the app with their own credentials. Is there a way to load an app so that it doesn't require the credentials of the person that loaded it whenever there's an update?Turn on computer.
Open itunes.
Connect a device.
Select what you want to sync.
Sync
Repeat for the otehr device -
Want to print the whole month with or without overtime for each employee
Hi,
I have Oracle forms/reports10g R2, Below query returns employee overtime correctly but I want to add the whole month with it in simple words if one employee have overtime for five days in a month I want the query to return the whole month including five overtime days for each employee and let say if we have ten employees query return whole month for each employee either he have or overtime or not how can I implement this in report it becomes agony for me, anyone please suggest a solution.
Thanks and regards, Khawar.
---Query---
select o.ot_date , o.start_dt_time as start_time, o.end_dt_time as end_time, o.ot_details, et.holiday, et.staff_id, e.staff_name, e.desig
from overtime o, emp_ot et, employee e
where o.complain_no = et.complain_no
and o.inc_type_code = et.inc_type_code
and et.staff_id = e.staff_id
order by 1, 2, 3, e.staff_idHi Michael,
Thanks for reply, I think I didn't explain as I should, I want to print Overtime report for each employee let say employee A123 did overtime for five days in DEC than what I want is to print report for employee A123 for the whole month means when I print report blank cell should come where A123 don't have data (I mean other 25/26 days).
The structure of tables are as
SQL> desc overtime
Name Null? Type
COMPLAIN_NO NOT NULL NUMBER(5)
OT_DATE NOT NULL DATE
START_DT_TIME NOT NULL DATE
INC_REF_NO NUMBER(5)
END_DT_TIME NOT NULL DATE
INC_TYPE_CODE NOT NULL VARCHAR2(10)
DISTRICT_CODE VARCHAR2(6)
BUSBAR_VOL VARCHAR2(5)
OT_DETAILS VARCHAR2(2000)
SQL> desc EMP_OT
Name Null? Type
STAFF_ID NOT NULL VARCHAR2(8)
COMPLAIN_NO NOT NULL NUMBER(5)
INC_TYPE_CODE NOT NULL VARCHAR2(10)
HOLIDAY NUMBER
Each employee associated with primary key i.e COMPLAIN_NO and INC_TYPE_CODE
in each OVERTIME table record we may have more than one employee in EMP_OT table.
above detail may clear my query.
Thanks and Regards,
Khawar. -
For each EMPLOYEE, the Concatenated DESCRIPTION of the employees.
for each EMPLOYEE (Table IN),
the Concatenated DESCRIPTION of the employees (Table OUT).
Table IN:
EMPLOYEE DESCRIPTION
Weiss "pay 3$"
Weiss "pay 1$"
Weiss "pay 4$"
De Haan "7$"
De Haan "8$"
Table OUT:
EMPLOYEE ALL_DESCRIPTION
Weiss "pay 3$pay 1$pay 4$"
De Haan "7$8$"
for each EMPLOYEE, the Concatenated DESCRIPTION of the employees.
How make from table IN -> table OUT?I don't know exactly what you mean by Table IN and Table OUT, but the next query will give you a clue:
SQL> create table table_in
2 as
3 select 'Weiss' employee, 'pay 3$' description from dual union all
4 select 'Weiss', 'pay 1$' from dual union all
5 select 'Weiss', 'pay 4$' from dual union all
6 select 'De Haan', '7$' from dual union all
7 select 'De Haan', '8$' from dual
8 /
Tabel is aangemaakt.
SQL> select employee
2 , d all_description
3 from ( select employee
4 , d
5 , rn
6 from table_in
7 model
8 partition by (employee)
9 dimension by (row_number() over (partition by employee order by null) rn)
10 measures (cast(description as varchar2(100)) d)
11 rules
12 ( d[any] order by rn desc = d[cv()] || d[cv()+1]
13 )
14 )
15 where rn = 1
16 /
EMPLOYE ALL_DESCRIPTION
Weiss pay 1$pay 3$pay 4$
De Haan 7$8$
2 rijen zijn geselecteerd.Regards,
Rob. -
How to make RECORD for saving multiple rows for each employee..
Hi,
How can I create a record for saving multiple rows for each employee... (parent child relationship)
I have created all required fields, then created a record, and then created a page. in that page i dragged-n-dropped a scroll area on that page and dropped all required fields from record into that scroll-area.
whats is happening that its saving ONE (the first) record fine, but for the second record its not storing EMPLID for that row..
Will I have to make some change at RECORD level ?
OR Will i have to make some configuration in parent component ?Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)
-
How can I DISABLE the pop up 'Would you like to copy it to Library', preventing this message from bothering for each and every book, again and again , time after time? (Windows 7 64bit US).
I guess this may be a feature request. Adobe may think this is a good message for every new eBook.
I sure would like to decide about that myself.
Thanks in advance if this will be changed.singmk wrote:
Decided to setup the mail for exchange on my N8 so I could see my work emails. Worked like a charm but after a couple of hours decided I didn't like being that contactable so deleted the mailbox.
Now to the problem, during setup I was forced to enable the phone lock and had to pick a 7 digit alphanumeric code. Fair enough I thought and went ahead. When I removed the mailbox however the lock remained in place with the default auto time of 30 minutes. When I checked in Phone management there is no option to disable this lock so I thought I could at least change the default time to something bigger but when you try, it remains at 30 mins. You also can't disable the auto time as it pops up an error message saying can't unlock phone.
Does anyone know if I'm missing something obvious here or is this something which can't be disabled once it's switched on? I've done a soft reset back to factory settings with no luck and the only other thing I can think of is re installing the firmware which seems a bit extreme.
Would like to hope there is some way to have control over this. Can someone help?
Which firmware your N8 having now? You can check firmware by choosing Call, then type *#0000#.
My N8 works fine on security setting and able to define Phone auto lock period, by choosing Menu>Settings>Phone>Phone management>Security settings>Phone and SIM card>Phone auto lock period>User defined>Lock after(minutes)
You will prompt to enter Lock code each time u define auto lock priod or enable/disable auto lock.
Hope this can help you.
If you find this post helpful, please show your appreciation by clicking the Kudos star at the left. If it provides you the solution, please click on the GREEN Accept as Solution button at below -
Report for time log on detail for each employees in SAP ABAP-HR report
hi experts,
please help me .how to create a report for time log on detail for each employees in SAP ABAP-HR report.please help me.
thank youHi,
For Time Management Infotypes , If you want to read the data using macro you need to use the Macro called RP_READ_ALL_TIME_ITY
Example:
DATA: BEGDA LIKE P2001-BEGDA, ENDDA LIKE P2001-ENDDA.
INFOTYPES: 0000, 0001, 0002, ...
2001 MODE N, 2002 MODE N, ...
GET PERNR.
BEGDA = '19900101'. ENDDA = '19900131'.
RP_READ_ALL_TIME_ITY BEGDA ENDDA.
IF PNP-SW-AUTH-SKIPPED-RECORD NE '0'.
WRITE: / 'Authorization for time data missing'.
WRITE: / 'for personnel number', PERNR-PERNR. REJECT.
ENDIF. -
Do we need to buy the license from SAP for EACH 'Z'form
Hello
I heard that, we (company) have to take license for the development of EACH adobe interactive form (even though its totally custom brand-new interactive form created from scratch), on individual form basis, is it true? (i know, its free of cost to play around with interactive forms in DEV and QA, but, if we want to move them to PROD, in that case do we need to buy the license from SAP for EACH form individually?)
Thank youThats true...license based on end user usage is required for SAP interactive forms. For more information read SAP note number 750784. The license comes in package like per 1000 users one time payment.
Regards,
Vaibhav -
Rollback Payroll From Backend for few assignments
Hello Gurus,
can anyone help me out with the info , is there any standard api is to rollback the payroll for assignments or any procedure to rollback the payroll for few assignments from backend.
i know that there is a standard package "py_rollback_pkg" to rollback the payroll. but the problem with this package is it will rollback complete payroll actions for the all assignments for which payroll is assigned. but my requirement is , i have to rollback only for few assignments.
any inputs on this is highly appreciated.
ThanksNot sure why you're not able to use - py_rollback_pkg.rollback_ass_action
If you have 20 assignments processed for a month - you will have a payroll_action_id and 20 asg_act_ids
rollback_ass_action takes one assignment action and deletes it.
So if you want to delete 10 employee pay runs, then you need to call the below API in a loop.
After the process is successful, you will still see the same Payroll_action_id and 10 asg_act_ids for the remaining 10 employees.
The procedure delte the data from pay_action_interlocks, pay_assignment_actions, pay_run_balances.. for each of the asg_act_id
/*------------------------ rollback_ass_action -----------------------------*/
NAME
rollback_ass_action - undo work for assignment action.
DESCRIPTION
performs rollback/mark for retry on assignment action.
NOTES
This procedure is the entry point to be called to rollback
or mark for retry an assignment action. On failure, a
message will be inserted in message lines, indicating that
the assignment action could not be processed.
The parameters are used as follows:
p_payroll_action_id :
identifies the row to be processed.
p_rollback_mode :
either 'ROLLBACK', 'RETRY' or 'BACKPAY'.
p_leave_base_table_row :
if this is true, the procedure does not attempt to update/delete the
assignment action row. It leaves this to the client. Normally, this
means a form. However, a message IS inserted by the procedure.
if false, the procedure update/deletes the assignment action before
exiting. Must set this to true if rollback mode is set to 'TRUE'.
p_all_or_nothing :
when TRUE, procedure fails immediately if error encountered, otherwise
processes up to assignment level error limit. Latter is required by
rollback by assignment set.
p_dml_mode :
one of the following:
'FULL' : all dml and commits.
'NO_COMMIT' : all dml, no commit.
'NONE' : no dml or commits.
This allows the user to specify a partial or full validation.
p_multi_thread :
this should only be set to true if being called from the
multi-threaded version of rollback code (i.e. from pyr.lpc).
p_grp_multi_thread:-
this is used to indicate which method to maintain the group
level run balances. This should be set to true when being
called from a multi-threaded process. Some multi threaded
processes use p_multi_thread set to false, hence
p_grp_multi_thread was created to ensure that all multi threaded
processes use the correct group run balance deletion.
procedure rollback_ass_action
p_assignment_action_id in number,
p_rollback_mode in varchar2 default 'ROLLBACK',
p_leave_base_table_row in boolean default false,
p_all_or_nothing in boolean default true,
p_dml_mode in varchar2 default 'NO_COMMIT',
p_multi_thread in boolean default false,
p_grp_multi_thread in boolean default false
-- -
Pls help : How To select fields and data from user_table for each tablename
Please help with the query to generate a output which selects the code,meaning,inuse for each table in the user_table that has "CODED" as a part of table name.
User table has some 800 table that contains CODED in the tablename.
Desc of the table:
DESCPTION:
Name Null? Type
SHORT_NAME NOT NULL VARCHAR2(20)
CODE NOT NULL VARCHAR2(4)
MEANING NOT NULL VARCHAR2(240)
IN_USE VARCHAR2(1)
NOTES VARCHAR2(2000
UNITS NOT NULL VARCHAR2(1)
AMOUNT NOT NULL VARCHAR2(3)
CONVERTED VARCHAR2(1)
RUN_NAME VARCHAR2(30)
But all the table have code, meaning,in_use fields.
O/P format :
TABLE_NAME CODE MEANING IN_USE
Help me pls.Not 100% sure what you want. If you want to see all the tables that have all three of those columns, then you could do something like:
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'CODE' and
table_name like '%CODED%'
INTERSECT
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'MEANING' and
table_name like '%CODED%'
INTERSECT
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'INUSE' and
table_name like '%CODED%'If you want to select those three columns from each of the tables, then you could do something like this.
Create a command file called, for example, makesel.sql that looks like:
SET PAGES 0 lines 500 trimspool on feedback off;
spool sel.sql;
prompt spool selout.txt;
SELECT 'SELECT '''||table_name||''', code, meaning, in_use FROM '||
table_name||';'
FROM (SELECT table_name
FROM user_tab_columns
WHERE column_name = 'CODE' and
table_name like '%CODED%'
INTERSECT
SELECT table_name
FROM user_tab_columns
WHERE column_name = 'MEANING' and
table_name like '%CODED%'
INTERSECT
SELECT table_name
FROM user_tab_columns
WHERE column_name = 'INUSE' and
table_name like '%CODED%')
prompt 'spool off;'
spool off;
@sel.sqlAt the sqlplus prompt run the file using @makesel.sql. This will create another file called sel.sql containing the commands to select those three columns from each table that has all three columns, then after the new file is created, it runs the file (@sel.sql). The output will be spooled to a file called selout.txt.
HTH
John -
Information in Template Header with value from 3 for-each groups
Hi,
i have an datamodel with 3 nested groups and in my rtf-template i'm using 3 for each-loops to give the data out.
It works fine, i can show the data on every level.
But now our customers wants in the Header of each page information with values from each group.
Like Land-District-City.
My first Test was with the @section-condition to get the right data in the Header.
But it only works fine for the first group and not further....
Anybody an idea? May be more then one @section?
Regards ChristianHi Mike,
I found some two mistakes that should solve your problems:
1. typo: use "raw_value" with underscore, then the "category" works.
2. The array support of the Generic Panel is limited to semicolon-separated term lists in a text field,
where each term represent an array item.
For example the "supplemental categories" property should look like:
<xmp_property
name="SupplementalCategories" category="external"
label="$$$/stewart/Class=Classification:" type="bag" element_type="text"
xmp_path="SupplementalCategories" ui:multiLine="true" ui:mru="true" description="..."
/>
Hope this helps,
-- Stefan -
Select top 2 sal from emp for each deptno - urgent
I want to retrieive the top 2 sal for each deptno; Can you please help
Thanks in advanceI don't know if this is what you are looking for:
scott@DBA> ed
Wrote file afiedt.buf
1 select empno,deptno,sal,drank
2 from (select empno,deptno,sal,dense_rank() over(partition by deptno order by sal desc) as drank
3* from emp)
scott@DBA> /
EMPNO DEPTNO SAL DRANK
7839 10 5000 1
7782 10 2450 2
7934 10 1300 3
7788 20 3000 1
7902 20 3000 1
7566 20 2975 2
7876 20 1100 3
7369 20 800 4
4109 20 800 4
7698 30 2850 1
7499 30 1600 2
7844 30 1500 3
7521 30 1250 4
7654 30 1250 4
7900 30 950 5
15 rows selected.Get only the ones that are in rank 1 and 2
scott@DBA> ed
Wrote file afiedt.buf
1 select empno,deptno,sal,drank
2 from (select empno,deptno,sal,dense_rank() over(partition by deptno order by sal desc) as drank
3 from emp)
4* where drank in (1,2)
scott@DBA> /
EMPNO DEPTNO SAL DRANK
7839 10 5000 1
7782 10 2450 2
7788 20 3000 1
7902 20 3000 1
7566 20 2975 2
7698 30 2850 1
7499 30 1600 2
7 rows selected.Create view for doing a simplified way to select data.
scott@DBA> create view top_2_emp_by_sal as
2 select empno,deptno,sal,drank
3 from (select empno,deptno,sal,dense_rank() over(partition by deptno order by sal desc) as drank
4 from emp)
5 where drank in (1,2);
View created.
scott@DBA> select * from top_2_emp_by_sal;
EMPNO DEPTNO SAL DRANK
7839 10 5000 1
7782 10 2450 2
7788 20 3000 1
7902 20 3000 1
7566 20 2975 2
7698 30 2850 1
7499 30 1600 2
7 rows selected.Message was edited by:
Delfino Nunez -
How to retrieve name4 data from backend for display on View Ship-to Address
Hi Everyone,
I need your advise / help:
I added name4 in shiptodetails1.jsp for new ship-to address when ordering. This name4 can be entered, saved to backend and display before submit rder. but when dispaly the created order, the name4 data is not shown on View Ship-to party Address page. Seems address.getName4() is not enough, I need to modify some method to retrieve the data from backend address object. Can anyone guide me what and how to enhance forretrieving name4 data from backend, so it can display on View Ship-to Address?
Any advises / suggestions?
Thanks, JinHi Jin,
I hope you already found the solution but here some more detail.
I am working on ISA with ECC so I do not have an access to CRM system.
As you are facing problem to retrieve data from back-end while displaying it on order status page you can debug code of class DetailStrategyR3.class.
There is a method fillDocument this method call RFC BAPI_ISAORDER_GETDETAILEDLIST. This RFC actually read Order related data from backend and fill the SalesDocument object. Method fillDocument also call other methods like fillShipTo.
During debug in NWDS you can see address data and check the values of Address object. If Name3 or Name4 and nickName contains no value then you can't get it on JSP page because it is not coming from the RFC.
So I suggest you should first check DetailStrategyR3.class as it is preparing Document for display purpose. When you open any order on orderstatusdetail page this class comes in Action and prepare SalesDocumet with all necessary information including Ship to Address of that order. So If here you do not get value in Name3, Name4 or Nickname then you have to do some custom development
Check Below code while debug in NWDS.
//fill ship-to information on header and item level
fillShipTo(document,
partnerTable,
getDetailedList.getTableParameterList().getTable(
"ORDER_ADDRESS_OUT"),
connection);
ShipToData shipTo = document.getHeaderData().getShipToData();
orderHeader.setShipToData(shipTo);
Check shipTo object in "Variable" window while debugging. Here you will get address object and can see all the variable value like FirstName, LastName, Name1, NAme2, Name3...NickName etc..... If no value in Name3, Name4 then you will not get on Page.
I hope this will help you to understand why Name3-Name4-Nickname does not have a Value though you have provided while creating an order.
Thanks and Regards.
eCommerce Developer -
How to stop the vocal from ipod for each action
i hv a ipod touch and i hv activated the spoken vocal for each time i do something.
i want to deactivate that. seems to me to be a struggle.
rgds
datwanichandSee this article for instructions on turning over the VoiceOver setting for your iPod.
http://support.apple.com/kb/HT3577
B-rock -
Query to grouping on task priority for each employee
Hi All,
We have following table structure for employee, task & taskallocation.
CREATE TABLE EMP
( "EMP_ID" NUMBER(10,0) NOT NULL ENABLE,
"FNAME" NVARCHAR2(50) NOT NULL ENABLE,
"LNAME" NVARCHAR2(50) NOT NULL ENABLE
CREATE TABLE TASKS
( "TASK_ID" NUMBER(10,0) NOT NULL ENABLE,
"TASK_PRIORITY" NVARCHAR2(10) NOT NULL ENABLE
CREATE TABLE TASKSALLOCATION
( "TASKALLOCATION_ID" NUMBER(10,0) NOT NULL ENABLE,
"EMP_ID" NUMBER(10,0) NOT NULL ENABLE,
"TASK_ID" NUMBER(10,0) NOT NULL ENABLE
The data for the same will be as follows
Insert into EMP (EMP_ID,FNAME,LNAME) values (1,'XYZ','DFD');
Insert into EMP (EMP_ID,FNAME,LNAME) values (2,'DFDS','FD');
Insert into EMP (EMP_ID,FNAME,LNAME) values (3,'FDSF','GFH');
Insert into EMP (EMP_ID,FNAME,LNAME) values (6,'GFHGF','GFHS');
Insert into EMP (EMP_ID,FNAME,LNAME) values (4,'GFD','FDG');
Insert into EMP (EMP_ID,FNAME,LNAME) values (5,'DSFDS','FDSAF');
Insert into EMP (EMP_ID,FNAME,LNAME) values (7,'GHGY','EWE');
Insert into EMP (EMP_ID,FNAME,LNAME) values (8,'FGRFSAD','SADF');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (1,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (2,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (3,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (4,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (5,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (6,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (7,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (8,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (9,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (10,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (11,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (12,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (13,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (14,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (15,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (16,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (17,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (18,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (19,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (20,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (21,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (22,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (23,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (24,'LOW');
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (1,1,1);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (2,2,1);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (3,3,2);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (4,3,3);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (5,4,4);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (6,4,5);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (7,4,6);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (8,4,7);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (9,5,6);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (10,6,8);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (11,7,9);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (12,8,8);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (13,8,10);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (14,8,11);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (15,8,12);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (16,6,13);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (17,5,14);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (18,3,12);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (19,3,13);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (20,2,15);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (21,1,16);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (22,2,17);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (23,1,18);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (24,4,19);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (25,6,20);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (26,5,21);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (27,1,22);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (28,3,23);
COMMIT;And we are looking count of tasks based grouping on it's priority per employee. Something like this,
Resultset
with
t as
select 'XYZ DFD' as EMP_NAME, 3 as HIGH , 0 as MEDIUM, 1 as LOW FROM dual union all
select 'DFDS FD' , 1 , 1 , 1 FROM dual union all
select 'FDSF GFH' , 1 , 2 , 2 FROM dual union all
select 'GFHGF GFHS' , 3 , 1 , 1 FROM dual union all
select 'GFD FDG' , 0 , 1 , 2 FROM dual union all
select 'DSFDS FDSAF' , 1 , 2 , 0 FROM dual union all
select 'GHGY EWE' , 0 , 0 , 1 FROM dual union all
select 'FGRFSAD SADF' , 1 , 2 , 1 FROM dual)Note : We are using Oracle 11.2.0.2.0 versionHi,
select emp.fname || ' ' || emp.lname EMP_NAME
, sum(case when tasks.TASK_PRIORITY = 'HIGH' then 1 else 0 end) HIGH
, sum(case when tasks.TASK_PRIORITY = 'MEDIUM' then 1 else 0 end) MEDIUM
, sum(case when tasks.TASK_PRIORITY = 'LOW' then 1 else 0 end) LOW
from emp
join TASKSALLOCATION
on emp.EMP_ID = TASKSALLOCATION.EMP_ID
join TASKS
on TASKSALLOCATION.TASK_ID = tasks.TASK_ID
group by emp.fname || ' ' || emp.lname
EMP_NAME HIGH MEDIUM LOW
FGRFSAD SADF 1 2 1
XYZ DFD 3 0 1
GHGY EWE 0 0 1
GFHGF GFHS 1 2 0
GFD FDG 3 1 1
DFDS FD 1 1 1
FDSF GFH 1 2 2
DSFDS FDSAF 0 1 2Regards
Martin Preiss
Maybe you are looking for
-
Reports distribution in reports 10g
I am making the distribution file whose content are as follows in tne group filter dest_1: desname=c:\\_.pdf_ destype=file desformat=pdf level=report dest_2: desname=HP LaserJet 4 Plus destype=printer desformat=bitmap copies=1 level=Report But when I
-
Hello, I have tried every option including running diagnostics in which all system parameters are normal. I have attempted to reset my laptop to the original factory settings. This failed. The envy m7 17 touchsmart shuts down after 5 to 10 second
-
Why does opening a pdf sometimes default to gedit with no option of using evince?
When opening a pdf from a Microsoft Help Attribute Definition File source, Firefox defaults to gedit instead of evince in FF 17.0.1, Ubuntu 12.10. This is a regression as previous versions had no such issue. My preferences are OK; set to evince for p
-
I have recently updated to an iMac after using my girlfriends windows based laptop for the last year. I hooked my ipod downloaded the new itunes and ripped some cds that I hadn't got around to doing yet. The new tracks ripped as ACC files while every
-
Oracle Database: productivity increase
Hi all, in our company we use the three-tier architecture base on Oracle products: client(web browser) - application server (Oracle AS 10g) - database server (Oracle database 10g). and we plan to appreciably increase number of clients. And it is nece