






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Step-by-step instructions for university students to create and manage databases and tables using sql server management studio in sql server 2005. Creating a new database, creating a table, inserting values, and using select, update, and delete statements. Students will learn how to set primary keys, sort data, and update and delete records.
Typology: Assignments
1 / 10
This page cannot be seen from the preview
Don't miss anything!







Starting SQL Server
Creating a Database in SQL Server 2005
Creating a table in the database
Insert values in the Employee table
Using Select statement in SQL The basic syntax for select statement is: SELECT column_list FROM table_name Select all rows and all columns: SELECT * FROM Employee Select limited columns from a table: SELECT employee_id, last_name, first_name FROM Employee Select specific information: SELECT * FROM Employee WHERE last_name = 'Smith' Select information sorted in a particular way: SELECT * FROM Employee ORDER BY employee_id Select information sorted in descending order SELECT * FROM Employee ORDER BY employee_id DESC Using Update statement in SQL The basic syntax for update statement is: UPDATE tablename SET columnname = ‘somevalue’ WHERE criteria UPDATE Employee SET last_name = ‘Marburger’ WHERE first_name = ‘Mary’ Using Delete statement in SQL The basic syntax for DELETE statement is: DELETE FROM tablename WHERE criteria DELETE FROM Employee WHERE last_name = ‘Marburger’ Lab Assignment (Due February 2): Execute the following steps, and after each step take a screen shot that shows you executed the step correctly. For instance, for step one you will show a snapshot of Object Explorer with Tables/dbo.Department/Columns expanded. Insert all images into a document and hand it over to you professor before class, on the due date.