Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a view AS....?

Status
Not open for further replies.

chantey

Instructor
Jan 28, 2004
11
GB
I need to know how to create a table/view using an already existing table.

Is it possible to use something like:

CREATE VIEW newTable AS
SELECT * FROM oldTable
WHERE field1 = 1;

Which will then allow me to use
SELECT * FROM newTable;

Any ideas?

 
If you just change 'CREATE VIEW...' to 'CREATE TABLE...'
your statement will work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top