Skip to content
Advertisement

How do I sum the length of a phone call associated from my call log table if it falls outside the clock in and clock out fields from another table?

I am trying to add the total time a person is called outside their time on shift in an Access DB. I’m trying to use an SQL query to do find the high, low, and average time a person is called. My tables are as follows:

People Table

Call_log Table

Time_Entry Table

I was thinking it might be something like:

I’m looking for an output which contains all outbound calls to a person in the People Table including the People.People_ID, People.First_Name, People.Last_Name, Call_Log.Date_Time, and Call_Log.length

There is a link between the People_ID fields in the Time_Entries table and the People table. I have also created a link between the Mobile_Phone and Home_Phone fields in the People table and the To and From fields in the Call_Log table

I after reading the comments I have changed things a little and am even further out of my swim lane. I am very new at this and I apologize if this is an elementary question. I’ve been doing research and not getting very far.

Any help would be very helpful!

Advertisement

Answer

Consider:

Query1: LogUNION

Query2: PeopleUNION

Query3:

That should get you to the output dataset shown in your question. Apply filter criteria as needed and use in subsequent queries.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement