• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

Advice on learning SQL

WhirlwindMonk

D Knight - Master of Zefiris
Mar 6, 2005
1,577
48
38
A little city in Micigan during breaks and Grove C
Visit site
✟24,487.00
Faith
Presbyterian
Marital Status
Single
Politics
US-Republican
1. Self taught
2. I used PHP/MySQL for Dummies. That was all right.
3. Pretty easy. It's all in english. An example of a command is: ALTER TABLE news ORDER BY timestamp DESC

So it is all pretty obvious, you just need to learn the syntax and the commands, both of which are pretty straightforward.
 
Reactions: Redguard
Upvote 0

WeakButHopeful

Senior Member
Oct 25, 2003
612
40
71
East Coast of USA
Visit site
✟15,970.00
Faith
Catholic
I learned SQL at work so I was enrolled in a course. I use it every day on mainframe computers and at home I've written some apps with Java and mySQL. As has been said SQL is rather approachable and you can learn by experimentation. It is possible to shoot yourself in the foot at times (accidental cartesian cross products, insufficiently qualified deletes, efficiency considerations if you're doing high volume or time sensitive stuff). There are minor dialect differences among different types of SQL. And as was also mentioned SQL is a way to talk to a relational database, so you'll want to (eventually) learn a bit about Codd's laws, different stage optimizations, connection strings, dynamic vs. static SQL and statement preparation, access grants, etc. I'm not trying to overcomplicate things, just giving you a high level survey. Feel free to PM me if you have questions. As I mentioned I learned SQL in a course at my employer, but I notice there are tutorials out on the Web (though I haven't used them) such as:
http://www.w3schools.com/sql/default.asp
http://sqlcourse.com/intro.html
http://sqlzoo.net/
You didn't mention a Web project but a lot of people use mySQL and PHP to do interactive Web pages that access databases. There are books devoted to this topic and I'm sure you could find many Web sites also. Google is our friend, and once you know the terminology Google Groups will help you too if you have trouble with a particular SQL statement (I mean searching past questions/answers...usually there's no need to even post a question...many have already been asked + answered many times, in my experience).
 
Upvote 0

Sycophant

My milkshake brings all the boys to the yard
Mar 11, 2004
4,022
272
45
Auckland
✟28,070.00
Faith
Atheist
Marital Status
Married
Politics
US-Others
I learned by myself. Mostly with online references. And in conjunction with PHP.

I have since been a professional web applications developer with PHP and MySQL/PostgreSQL. The basics are quite easy. More complex stuff (conditional queries, proper relational table management, optimisation, sub-selects and so on) can be more difficult to get your head around.

Another difficulty with learning is getting a good data set to play with - I did see a site a while ago that had a whole bunch of example data for that very reason.. Sometimes you need a lot of data to really get a feel for it - nothing like performing complex queries on tables with over a million rows to let you know how inefficent your design is.
 
Upvote 0

MusicalProgrammer

a.k.a. "Dead Bird Guy"
Oct 10, 2004
13,730
136
44
Cincinnati, OH
Visit site
✟29,618.00
Faith
Non-Denom
Marital Status
Married
Politics
US-Republican
The best way to learn as always is through experience: install MySQL on your machine, work through examples (MySQL's reference page and/or books), and come up with your own examples, projects, and designs. The Welling & Thompson book previously mentioned is an EXCELLENT resource. It's great to combine and learn with PHP, as well. I'd start with MySQL, and then move onto PostgreSQL (and possible to SQL server or Oracle from there if they can be had relatively cheaply). Are you doing this as a hobby, or a possible career path?
 
Reactions: reformedfan
Upvote 0