SQL Server database design and advanced query 14