Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Possible Duplicate:
Good Books and videos for absolute beginner to SQL

I have landed a role as a product engineer for a web based product.
A big part of the product is allowing its users the ability to create queries with SQL to pull in business information from their back end databases.

I know the very basics of SQL and need to spend some time getting a better grasp on SQL.

I have the tutorial from w3schools on my ToDo list, but was hoping to get some answers that point me to good resources for learning SQL.

I have no preference - I can buy a book (SQL For Dummies?), or online resources, online videos, audio, etc.

share|improve this question
1  
The tutorial you linked is not from w3c. w3schools is in no way affiliated with w3c; also, it sucks. – cbrandolino Aug 14 '11 at 14:06
oops my bad - thanks, i didnt realise. – Simon Aug 14 '11 at 14:40

marked as duplicate by Jim G., ChrisF Aug 14 '11 at 14:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

My suggestion is that you have a strategy for you to master your job using SQL. A sample strategy would be: 0-Get a training environment, with the database, data and security 1-Learn principles of SQL 2-Get familiar with your product's data model 3-Jot down the top 50 queries your customer may require 4-Learn advanced SQL 5-Learn more about how to optimize your queries 6-Learn stored procedures language if you have to (such as PL/SQL, T-SQL,etc.)

Make sure that whatever book you use is for the same database you have. Don't pick a book that talks about ORACLE if you are using MySQL.

For point (1), I suggest you start very slowly so that you learn well and also so that you don't "hate" the subject.

Stay away from books with titles containing "complete guide", "bible", "coockbook", such books may be useful when you covered the basics.

Sample title that may suite you are: (1)-SQL Visual Guide

(2)-SQL Queries for mere mortals

(3)-Sams Teach Yourself SQL in One Hour a Day (5th Edition)

(4)-The Practical SQL Handbook: Using SQL Variants (4th Edition)

Many other exist of course.

Read the book ratings and if you have a chance browse the book.

It would also help if you could afford (or if your company could afford) buying a SQL Query Helper tool that features Intellisense-like code completion.

A good book for one person is not always good for another person.

Hope this helps.

EK

share|improve this answer
DO u have any quick links on SQL Query helper tools? – Simon Aug 14 '11 at 14:41
1  
Hi Simon, sorry for the delay in replying back. You may want to take a look at these tools: (1) microolap.com/products/database/mssql-interactive (2) razorsql.com/docs/query_builder.html (3) activequerybuilder.com – Emmad Kareem Aug 20 '11 at 0:27
1  
One more that may also be helpful: red-gate.com/products/sql-development/sql-prompt/entrypage/… – Emmad Kareem Aug 20 '11 at 11:32
Thanks. I posted a related Q. That last link looks good! – Simon Aug 20 '11 at 12:02

I strongly recommend sqlshare.com

They have a video newsletter that you can subscribe and update on a daily basis.

share|improve this answer

I always thought that there are two types of people who write SQL: the ones who read C. J. Date and the ones who doesn't.

Despite my dislike for the series SQL for Dummies might be a good start if you know nothing about the subject. From your requirements I imagine you need a good deal of knowledge, then the following are required readings to write good SQL:

Although not required but certanly interesting there's also the E. F. Codd original writing:

You didn't specify what dialect you're using. A dialect specific book is probably worth reading, specially about performance considerations.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.