Join Bill Weinman for an in-depth discussion in this video Using the basic SELECT statement, part of SQL Essential Training.
…In this lesson I'm going to show you the SELECT statement.…The SELECT statement is used for most data retrieval in SQL.…Here I have the SID application open in my browser.…And I'm using the world.db database.…I have that selected over here.…And I'm going to type some SQL into the box.…We'll start with a very simple SELECT statement.…This will select all of the rows from the Country table.…And I'll go ahead and press Go here.…And here in the world.db database, the Country table looks like this.…
If I scroll horizontally, you see it as a…few more columns than what fit on the screen here.…And this is all of the rows and all of the columns.…You'll notice up here in the status bar it says 239…rows were returned and it took 8.9 milliseconds to do that.…And there are the rows and you can see there are a lot of them.…Here, the keyword SELECT means that this statement will return rows.…And the asterisk means that all of the columns will be returned in this query.…
And the FROM clause designates the source of…the query in this case a table named Country.…
- Understanding SQL terminology and syntax
- Creating new tables and records
- Inserting and updating data
- Writing basic SQL queries
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Finding the numeric type of a value
- Using aggregate functions and transactions
- Updating a table with triggers
- Creating views
Skill Level Beginner
Q: For Mac OS X: When I try to start the Apache Web Server from the XAMPP control panel, it doesn't start, and when I open "localhost" in my web browser, I see a white screen that says "It Works!" instead of the XAMPP page.
sudo apachectl stop
Q: I'm on a Mac, and I get an error in SID that says "attempt to write a read only database." How can I fix this?
A: This usually means that the database folder does not have sufficient permissions for writing by the web user. This can happen if you create the SQL folder new, rather than copying it from the Exercise Files. Here's how to fix this:
- Open a Finder window and Navigate to /Applications/XAMPP/htdocs/SQL
- Control-click on the SQL folder and select "Get Info" from the context menu.
- Under "Sharing and Permissions" (you may need to open the disclosure triangle), in the "everyone" row, select "Read & Write."Then you can close the Info window.
- Now repeat the process for the three *.db files inside the folder.
1. SQL Quick Start
Understanding joins2m 23s
Dates and times1m 59s
10. Subselects and Views
11. A Simple CRUD Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.