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
  #21  
Old 07-28-2006, 01:56 PM
iambusto iambusto is offline
Senior Member
 
Join Date: Jul 2006
Posts: 157
Default Re: Best way to learn SQL?

you can use both. If i am writing a query involving only 2 to 3 tables, i dont use the gui and just write out the simple FROM a, b WHERE a.x = b.x. if its a multiple tables complex query, i would rather use the gui and the query would come out using the "inner join" syntax. both work, just a personal preference. I hope that makes sense....
Reply With Quote
  #22  
Old 07-28-2006, 01:58 PM
iambusto iambusto is offline
Senior Member
 
Join Date: Jul 2006
Posts: 157
Default Re: Best way to learn SQL?

try google first....would give you a good grasp on basics. there are even some sites that allow you to execute queries against their server so you can test real time without going through the hassle of setting up your own database in your home computer.

then when you feel better about your sql knowledge go buy some book off of amazon ratings...

sql is very easy....
Reply With Quote
  #23  
Old 07-28-2006, 02:13 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 ]
you can use both. If i am writing a query involving only 2 to 3 tables, i dont use the gui and just write out the simple FROM a, b WHERE a.x = b.x. if its a multiple tables complex query, i would rather use the gui and the query would come out using the "inner join" syntax. both work, just a personal preference. I hope that makes sense....

[/ QUOTE ]

Given that using JOINs are very simple to use and much more powerful, why would you use the "FROM a,b" approach?

Everytime I've seen that "FROM a,b" stuff used, coincidentally the developer didn't know what the hell he was doing.
Reply With Quote
  #24  
Old 07-28-2006, 02:13 PM
TiK TiK is offline
Senior Member
 
Join Date: May 2003
Location: New York, NY
Posts: 2,082
Default Re: Best way to learn SQL?

[ QUOTE ]
there are even some sites that allow you to execute queries against their server so you can test real time without going through the hassle of setting up your own database in your home computer.

[/ QUOTE ]

Oh man, I wish I'd known about this about 3 years ago.
Reply With Quote
  #25  
Old 07-28-2006, 02:48 PM
turnipmonster turnipmonster is offline
Senior Member
 
Join Date: Jul 2003
Location: ain\'t got no flyin\' shoes
Posts: 6,353
Default Re: Best way to learn SQL?

[ QUOTE ]


Are you saying to do joins by "FROM a, b WHERE a.x = b.x"

[/ QUOTE ]

fwiw this is called a "theta join".
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 06:06 PM.


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