Jump to content
[[Template core/front/custom/_customHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

SQL exercises


SMF
 Share

Recommended Posts

You'll get more out of it if you make the database yourself. MS Access can be used, but the version of SQL used there is something almost completely, but not quite unlike anything used elsewhere. I forget the name of it, but there's an kinda personal version of SQL Server the MS distributes that could be useful. Also you can consider postgres (comes with Linux) or MySQL (although I don't think it is free anymore). If you're feel especially macho, you can download Oracle (it's free if you don't use it in a commercial sense or at least it was the last time I used it several years back). Anyway, I digress.

 

The point I was making is that SQL is about more than just queries. It's also about creating tables, tablespaces, indexes and a host of other little DBA type things. An excercise in creating a database, including doing the data normalization for the database structure, and writing the SQL script to load the data into the database, then writing some SQL queries against this would be an excellent way to learn all about this stuff. You may want to consider perhaps, doing some type of Fantasy Football analysis even if it is on old stats.This way you can combine something you enjoy with this learning exercise. I find it much easier to work with data that I'm interested in (and have an inkling of what the results might be) than to try and figure out a reporting hierarchy of people in an organization or some other droll example.

Link to comment
Share on other sites

You'll get more out of it if you make the database yourself. MS Access can be used, but the version of SQL used there is something almost completely, but not quite unlike anything used elsewhere. I forget the name of it, but there's an kinda personal version of SQL Server the MS distributes that could be useful. Also you can consider postgres (comes with Linux) or MySQL (although I don't think it is free anymore). If you're feel especially macho, you can download Oracle (it's free if you don't use it in a commercial sense or at least it was the last time I used it several years back). Anyway, I digress.

 

The point I was making is that SQL is about more than just queries. It's also about creating tables, tablespaces, indexes and a host of other little DBA type things. An excercise in creating a database, including doing the data normalization for the database structure, and writing the SQL script to load the data into the database, then writing some SQL queries against this would be an excellent way to learn all about this stuff. You may want to consider perhaps, doing some type of Fantasy Football analysis even if it is on old stats.This way you can combine something you enjoy with this learning exercise. I find it much easier to work with data that I'm interested in (and have an inkling of what the results might be) than to try and figure out a reporting hierarchy of people in an organization or some other droll example.

For an enterprise, there are several roles here. App support and data architect are two and DBA is an obvious third.

 

I had no idea you could get Oracle for free.......it cost us millions. :D

Edited by Ursa Majoris
Link to comment
Share on other sites

As I recall, there is SQL language specific to Oracle though. MySQL is a more pure "SQL" and just uses whatever those standards are. A large number of websites use Linux and MySQL including The Huddle. There are a ton of books abouit it and I would bet one has a CD with it with a simple SQL database. I use Access too but that is not what you want to use if you just want basic SQL experience.

 

Here is a download of MySQL Enterprise edition for free trial. It may be bigger than what you want though.

 

There used to be a personal edition of DB2 as well which would let you play with SQL.

 

Here is an SQL tutorial which goes over the basic statements.

 

Here is another

 

This one looks pretty good too

 

And another

 

In my previous life, I used SQL a lot and it is a very simple but powerful way to extract data from a database.

Link to comment
Share on other sites

You'll get more out of it if you make the database yourself. MS Access can be used, but the version of SQL used there is something almost completely, but not quite unlike anything used elsewhere. I forget the name of it, but there's an kinda personal version of SQL Server the MS distributes that could be useful. Also you can consider postgres (comes with Linux) or MySQL (although I don't think it is free anymore). If you're feel especially macho, you can download Oracle (it's free if you don't use it in a commercial sense or at least it was the last time I used it several years back). Anyway, I digress.

 

The point I was making is that SQL is about more than just queries. It's also about creating tables, tablespaces, indexes and a host of other little DBA type things. An excercise in creating a database, including doing the data normalization for the database structure, and writing the SQL script to load the data into the database, then writing some SQL queries against this would be an excellent way to learn all about this stuff. You may want to consider perhaps, doing some type of Fantasy Football analysis even if it is on old stats.This way you can combine something you enjoy with this learning exercise. I find it much easier to work with data that I'm interested in (and have an inkling of what the results might be) than to try and figure out a reporting hierarchy of people in an organization or some other droll example.

:D

Link to comment
Share on other sites

I second DMD's post. MySQL is free if you don't get the enterprise version. You won't need it anyway. There are plenty of places on the intertubes that have info on doing SQL. Also follow Kid Cid's advice as doing SQL day in and day will get plenty boring unless you're working with interesting data of some form.

 

Microsoft also has a free version called SQL Server 2005 Express which is free for personal/development use. It is also graphical (once you download the free SQL Server Management 2005 Express). But for you I'd stick with MySQL as a learning tool. I'd also recommend downloading either SQLYog or Aqua Data Studio 4.7 (make sure you get 4.7 as it is the free version) which are graphical sql managers. Unless you feel like doing everything on the command line.

 

If you have any questions just PM me. I work with 3 of the major sql servers (MS SQL Server, Oracle and MySQL) and I know sql pretty well.

 

Good luck.

Link to comment
Share on other sites

You can get a free single-user copy of InterSystems Caché using the link below. The database comes with pre-loaded sample/training tables & the help files/tutorials include exercises in building applets that query & save to those tables. Caché is not quite as main stream as Oracle or MSSQL, but the SQL syntax is similar, so if you are simply looking for a pre-loaded playground of tables to learn on, it might be a good option.

 

http://download.intersystems.com/download/

Link to comment
Share on other sites

Thanks for all the info guys I have DLed SQL Server 2005 Express and have created a few tables and preformed different queries with those but I will look into the rest of this stuff as well!

Edited by SMF
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information