






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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.