• subscribe
November 26, 2002 12:00 AM

T-SQL Tutor Project, December 2002

SQL Server Pro
InstantDoc ID #27361
Downloads
27361.zip

Here’s a small homework assignment to help you continue to improve your ability to create and access views. When you’re just learning how to create views, the hardest part is writing the query. The test query in this assignment accesses the Products and Categories tables in the Northwind sample database. First, write a query that gathers a list of the top 10 beverages that have the most units in stock. You can use the UnitsInStock column from the Products table to find which products have the highest UnitsInStock values. Make sure to list the ProductName, UnitPrice, UnitsInStock, and QuantityPerUnit columns. Then, name the view BeveragesTopInStockView. You can find the answers to this assignment in the ViewsPartIHomeworkAnswers.sql script file, which you can download by clicking the Download the code button for this sidebar. After you’ve finished your homework, start applying the tools and tips I gave you in the main article to gather data about user access to your databases. When you check to see whether your views are being used properly, you might be surprised at what you find.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...