P. 1
SQL Undergraduates

SQL Undergraduates

|Views: 120|Likes:
Published by Vincent ISOZ

More info:

Published by: Vincent ISOZ on Oct 12, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





In SQL, a view is a virtual table based on the result-set of an SQL statement.

A view contains rows and columns, just like a real table. The fields in a view are fields from one or
more real tables in the database.

You can add SQL functions, WHERE, and JOIN statements to a view and present the data as if the
data were coming from one single table.

If a view contains the primary key and all others NOT NULL columns, the view can be used to insert
datas or even override the original table constraints (by adding complementary constraints to the
view). Here we will focus only on basic read-only views because this is the most common case for
end-users (and we have only one week to study SQL...).

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->