Join Simon Allardice for an in-depth discussion in this video Creating conditions in SQL, part of SQL Server 2008 Essential Training.
- View Offline
- Exercise Files
So we have this very simple SQL query, selecting these three columns from the…SalesLT.Customer table in the AdventureWorksLT database.…If I execute that, it's going to bring back the entire contents of that…table, which is 847 rows.…But I can either see by scanning through it or down here in the status bar, 847 rows.…But of course, if I don't want all those rows available, if I want to filter…that information, it's a very common thing.…So, the way that I do it is by using the WHERE keyword.…
I only want to bring back that data where people have a certain last name or…have a certain email address or their customer ID is in a particular range.…Now it all depends on what kind of data that you're filtering on.…So, for example, if I wanted to bring back information where the LastName of the…person was equal to Vargas,…well, if it's text I need to write it in quotes.…Another single quote again here.…If I execute that, I get in this case four rows coming back.…It looks like my table may even have some duplicate data that I will need to…
- Using T-SQL (Transact-SQL)
- Managing databases with SQL Server Management Studio
- Understanding database normalization
- Using SELECT statements
- Building indexes
- Monitoring database size and integrity
- Backing up and restoring databases
- Creating functions and stored procedures
- Managing database permissions
- Creating and formatting reports
- Adding charts to reports
- Creating and executing a simple SSIS package
Skill Level Beginner
1. Getting Started
2. Installing SQL Server 2008 R2
3. Tools and System Databases
SQL Server system databases2m 22s
4. Creating Databases
5. Importing Existing Data
6. Retrieving Data with SQL
7. Inserting and Updating Data
8. SQL Functions
9. Stored Procedures and Transactions
10. Core Administration Tasks
11. Backing Up and Restoring
12. Security Features
13. Reporting Services
14. Integration Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.