Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > 2+2 Communities > Other Other Topics
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-27-2006, 08:51 PM
mmbt0ne mmbt0ne is offline
Senior Member
 
Join Date: Aug 2004
Location: Back in ATL
Posts: 12,169
Default Re: Best way to learn SQL?

LEFT JOIN
MAX
COUNT(*)
SUM
Reply With Quote
  #12  
Old 07-27-2006, 08:59 PM
dogdrool dogdrool is offline
Senior Member
 
Join Date: Feb 2006
Location: bagging elephants
Posts: 1,779
Default Re: Best way to learn SQL?

Read over the mysql docs too. They're filled with examples, and might even have a tutorial.
Reply With Quote
  #13  
Old 07-27-2006, 09:06 PM
MrBrightside MrBrightside is offline
Senior Member
 
Join Date: May 2005
Posts: 916
Default Re: Best way to learn SQL?

If you have access or can get the SQL server tools (you can get sql 2005 for free from here http://msdn.microsoft.com/vstudio/express/sql/download/

Ibelieve that includes the sql studio thing. They have a visual editor (Access has a similar one) where you can switch back and forth between editing the raw sql and visually building it with joins, etc). I've found this is a good way to get started in sql. When you add tables to the query it automatically puts in joins based ont he table keys which is usally what you want then you can click the joins and adjust properties pretty intiutively (like add ALL the rows from table X, etc) and watch the sql be written. "oh, you think, that's an LEFT OUTER JOIN, etc.

I really dig this stuff, and still use it for complicated queries.
Reply With Quote
  #14  
Old 07-27-2006, 09:12 PM
BrunoThePug BrunoThePug is offline
Senior Member
 
Join Date: Aug 2005
Location: Arizona
Posts: 882
Default Re: Best way to learn SQL?

[ QUOTE ]
Read over the mysql docs too. They're filled with examples, and might even have a tutorial.

[/ QUOTE ]

I think that for learning SQL the MySQL docs are overly confusing. That W3schools link is pretty good.

I think thebest way is to grab a copy of MySQL and mess around with it.
Reply With Quote
  #15  
Old 07-27-2006, 10:06 PM
JayF JayF is offline
Senior Member
 
Join Date: May 2006
Posts: 140
Default Re: Best way to learn SQL?

A classic :
"SELECT * FROM users WHERE clue > 0"
0 rows returned

Seriously I agree that the W3School stuff is really good for a beginner, thats where I started.
Reply With Quote
  #16  
Old 07-27-2006, 10:27 PM
VickreyAuction VickreyAuction is offline
Senior Member
 
Join Date: Dec 2005
Location: Parts Unknown
Posts: 2,162
Default Re: Best way to learn SQL?

Awesome, thanks!
Reply With Quote
  #17  
Old 07-27-2006, 10:29 PM
TomCollins TomCollins is offline
Senior Member
 
Join Date: Jul 2003
Location: Approving of Iron\'s Moderation
Posts: 7,517
Default Re: Best way to learn SQL?

www.sqlschool.com
www.sqlschool2.com

This helped me with enough when I first learned it.
Reply With Quote
  #18  
Old 07-27-2006, 10:52 PM
oneeye13 oneeye13 is offline
Senior Member
 
Join Date: Sep 2003
Posts: 999
Default Re: Best way to learn SQL?

[ QUOTE ]
http://www.w3schools.com/sql/default.asp

That'll teach you most of what you need to know. Anything else can be googled.

Don't waste your money on books.

[/ QUOTE ]

what he said
Reply With Quote
  #19  
Old 07-28-2006, 01:50 PM
iambusto iambusto is offline
Senior Member
 
Join Date: Jul 2006
Posts: 157
Default Re: Best way to learn SQL?

use "from" in basic sql queries that you are constructing without help of a gui tool. If you want to build queries using a gui tool it uses inner join anyways
Reply With Quote
  #20  
Old 07-28-2006, 01:52 PM
moondogg moondogg is offline
Senior Member
 
Join Date: Oct 2003
Location: I kid because I hate.
Posts: 2,670
Default Re: Best way to learn SQL?

[ QUOTE ]
use "from" in basic sql queries that you are constructing without help of a gui tool. If you want to build queries using a gui tool it uses inner join anyways

[/ QUOTE ]

Are you saying to do joins by "FROM a, b WHERE a.x = b.x" instead of using a JOIN statement? If so, why would you do that (assuming you are using a version of SQL that supports joins)?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.