Browsed by
Month: June 2017

Create Employee Work Shift Schedule using PIVOTS

Create Employee Work Shift Schedule using PIVOTS

Once in awhile, it is required of you to create visualizations of the data you have in the database. For example, you have a set of data of employees and when they start their shift and when it ends. But you would like to create a chart for the day to see which employees work together. Fortunately, creating this chart is easy in SQL Server using Common Table Expressions (CTE) and Pivot. The sample data we will use is the…

Read More Read More

%d bloggers like this: