Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 : Write postgresql code A company record its employees movement In and Out of office in a table with 3 columns a )

Q2: Write postgresql code
A company record its employees movement In and Out of office in a table with 3
columns
a) Find number of employees inside the Office at "2019-05-01
19:05:00"
b) Measure the amount of hours spent by each employee inside the office between
"2019-04-0114:00:00" and "2019-04-0210:00:00"(Consider all edge cases that are
possible).
Table Name:EmployeeRecord
About Table:
Created
2019-04-0112:00:00
2019-04-0115:00:00
2019-04-0117:00:00
2019-04-0121:00:00
First entry for each employee is "In"
Every "In" is succeeded by an "Out"
No data gaps and, employee can work across days
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

What is a price consumption curve for a good?

Answered: 1 week ago