Lab manual for sql server query