StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how to make the database do the work: loading related rows in one command instead of many, projecting to just the columns a page shows, filtering, sorting and paging in SQL rather than in memory, and reading without tracking when nothing is going to be saved.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Library Loans Query

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers reading a list of loans together with the borrower and the book each one points at, and building a short display list that asks the database only for the fields the page prints.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Read-Only Reporting Queries

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers reading report rows out of a database without the session holding on to them, while the edit path still notices a change and saves it.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Paged Product Listing

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers handing back one page of a product listing at a time, in an order that does not shift between requests, together with the number of products the whole listing holds.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Searchable Order History

STAR
Solving it completes the module
—No data yetmedium
About this challenge

This problem covers answering a support desk's order history with one page of matching orders at a time, narrowed by a search term and a status, sorted the way the caller asked, and counted over everything that matched.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.