Question of the Day Eighteen

Let us continue our question of the day series with day eighteen.

What is a view (and is it a view to a kill)?

A view is a great way to combine various pieces of data from multiple tables.  It could also be that you want to do this for security reasons where a user does not have access to one of those tables because of sensitive fields but you give them access to the view because the fields contained in it are safe enough for them to view without exposing the rest of the table.  Views also are useful for a heavily referenced query.  Instead of reusing the query, you just reference the view.

Incidentally, it is only a view to a kill if Mr Bond is involved.  Enjoy!


About SQLGator

Microsoft Data Platform MVP, Florida Gator, Star Wars fanatic and is there anything else...oh yeah PS4! I am a geek and SQL Server Business Intelligence Consultant, there are other technologies greater than these? Not so fast my friend! I also love to travel to new and exotic places.

Posted on August 20, 2012, in SQL Schoolhouse and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: