|
|
-
The challenge is to compare the data of the rows and group the input data.
The data needs to be grouped based on the Product ID, Date, TotalLines, LinesOutOfService.
You need to check each row in the table to see if that particular product has the different
range of values for TotalLines and Linesoutofservice when compared to the rows below. If yes,
then insert that date where a different range is encountered into the "End Date" column.
If no change in the values are detected then insert a future date "01/12/2050".
In the TotalCustomerCalls column you place the sum of CustomerCalls for the given Start Date / End Date group.
|
-
The challenge is to find the Tax Code based on Price. There is a table called "LineItems" that have Invoice Number and Price.
There is another table "Sales" that contains Invoice Number, Amount and Tax Code. Each sales amount is uniquely made up by the sum of one or more prices. Based on this you should assign the tax code to each price.
|
-
This challenge is to generate a game schedule based on the teams given in a table.
The key point is each team has to play with another team in each round of the games.
|
-
The challenge is to find the minimal set of intervals without creating gaps.
There is a table with groups of redundantly overlapping date intervals where each group has no gaps. Given this table, your job is to find the minimum set of date intervals without creating gaps in the group. A solution is defined such that if you remove any one of the intervals in the solution you will create a gap. The first and last date intervals in a group are considered the anchor intervals and must always be present.
If there are multiple solutions for a group you must choose the one where the number of date intervals is a minimum.
If there are still multiple solutions for a group you must choose the one where the sum of the date intervals is a minimum.
If there are still multiple solutions for a group you must choose the one based on an order by start date 1, start date 2,
etc of the solutions, where 'start date 1' is the lowest start date value of each solution, 'start date 2' is the next lowest
start date value of each solution, etc.
|
-
The challenge idea is taken from a problem discussed in the MSDN TSQL forum.
The challenge is to find the Islands(gaps) in sequential dates. You need to write a query to
identify continuous intervals from the start date and end date.
For example,
01/01/2012 - 01/17/2012
01/18/2010 - 02/20/2012
The above two intervals should be considered as
01/01/2012 - 02/20/2012
|
-
The challenge idea is taken from a problem discussed in the MSDN TSQL forum.
The database field contains long string with data for Quantity and Parts.
The challenge is to parse the data into separate (Quantity and Parts) fields for displaying in a report.
The Quantity of Parts is placed before the hyphen (-) and the Part number after the hyphen.
If there is more than one part, each part is separated by a semi-colon and space.
|
-
In a large project management application, there is a category of resources which are managed in a special way.
During the planning phase you have an activity with a planned start date and a planned finish date and a monthly
sequence of estimated effort values for one or more resources. A period always refers to a real calendar month with
period 1 being the month of the planned start date. But the first period and last period may not use up a full month.
|
-
The challenge is to identify the sequence of accounting transactions.
|
-
The challenge is to find the Episode and Sequence based on interval.
|
-
This challenge is based on a problem discussed in the MSDN TSQL forum.
The challenge is to create a query for a report that shows expiring material.
There is a table with material that has expiry dates.
Another table holds requests for the expiring material.
You need to show how much material will be expiring because there are no requests in the queue for it.
|
|