G
Guest
Hi all,
I have two tables-(tblQueryDetails and tblWorkflow) with PK_Query_Id as the
primary key in tblQueryDetails and FK_Query_Id as foreign key in tblWorkflow.
Rule:each person can have many requests(queries) and each query in turn can
have many workflows.
i.e. 1 QueryId -- many workflowIds(one - many relationship)
tblQueryDetails --
PK_Query_Id (primary key)
Received_Date
FK_Request_From_Id
FK_Division_Id
FK_Request_Type_Id
FK_Status_Id
tblWorkflow--
WorkFlow_Id (primary key)
FK_Query_Id
What_To_Do
FK_Do_ByWho_Id
Do_Target_Date
What_Is_Done
FK_Done_ByWho_Id
Done_Target_Date
I want a report in this format(stepped)
Name(division)
------queryId---request from---request type---requestdate---status
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
------queryId---request from---request type---requestdate---status
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
Note: the words 'Query' and 'Request' means the same here.
I'm not sure how to form a query and set specific properties of the report
to get this type of report.Please help.
I have two tables-(tblQueryDetails and tblWorkflow) with PK_Query_Id as the
primary key in tblQueryDetails and FK_Query_Id as foreign key in tblWorkflow.
Rule:each person can have many requests(queries) and each query in turn can
have many workflows.
i.e. 1 QueryId -- many workflowIds(one - many relationship)
tblQueryDetails --
PK_Query_Id (primary key)
Received_Date
FK_Request_From_Id
FK_Division_Id
FK_Request_Type_Id
FK_Status_Id
tblWorkflow--
WorkFlow_Id (primary key)
FK_Query_Id
What_To_Do
FK_Do_ByWho_Id
Do_Target_Date
What_Is_Done
FK_Done_ByWho_Id
Done_Target_Date
I want a report in this format(stepped)
Name(division)
------queryId---request from---request type---requestdate---status
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
------queryId---request from---request type---requestdate---status
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
-------------workflowid---What_To_Do---Do_ByWho---What_Is_Done---Done_ByWho
Note: the words 'Query' and 'Request' means the same here.
I'm not sure how to form a query and set specific properties of the report
to get this type of report.Please help.