Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > Development
User Name
Password
Or, use your gamerDNA username: (more...)
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-23-2008, 04:19 PM   #1 (permalink)
Mageling
the Support Analyst
 
Join Date: Mar 2004
Posts: 311
Learning SQL. Guides, etc?

I've been at my current job for almost a year now, and we use SQL databases for most everything, but do very little work perosnally with them. I've found that there are some job openings in the near future for people with a bit more SQL experience and wanted to learn more about it for a possible promotion to a new department.

Any ideas on places to really make headway with understanding and learning SQL?

Links that I've come across so far:

http://sqlzoo.net/

Deep Thought: Basic Database Design

While I feel like I understand database structure and design from a high level, I find myself struggling to create more than your very basic queries and update statements.

Have there been any places that people have seen walkthroughs in regards to joining tables and creating more advanced queries and really working up from there.

Any assistance would be great. Hopefully there are a few DB geeks out there.
Mageling is offline   Reply With Quote
Old 01-23-2008, 04:57 PM   #2 (permalink)
Maio
Registered User
 
Join Date: Dec 2004
Posts: 65
-1 Internets
For SQL:
SQL Tutorial

Database design depends on what your team prefers. Developers love simple databases (so they can create simple queries) while database administrators go nuts on functional dependencies and what not. It depends on wether you are concerned about easier human interaction with the database or performance/optimization. Good luck.
Maio is offline   Reply With Quote
Old 01-23-2008, 11:08 PM   #3 (permalink)
Jedite
Am I pissing you off fafa?
 
Jedite's Avatar
 
Join Date: Aug 2003
Posts: 885
+0 Internets
Quote:
Originally Posted by Mageling View Post
I've been at my current job for almost a year now, and we use SQL databases for most everything, but do very little work perosnally with them. I've found that there are some job openings in the near future for people with a bit more SQL experience and wanted to learn more about it for a possible promotion to a new department.

Any ideas on places to really make headway with understanding and learning SQL?

Links that I've come across so far:

http://sqlzoo.net/

Deep Thought: Basic Database Design


Any assistance would be great. Hopefully there are a few DB geeks out there.
I assume you have some programming experience correct? What language??

If you know C# I found a nice little book that throws you into the mix sort of speak as far as SQL and interacting with an SQL DB through C#. Its just a beginners guide but it helped me a lot as far as getting my feet wet with SQL and writting a few applications for my previous employer
While I feel like I understand database structure and design from a high level, I find myself struggling to create more than your very basic queries and update statements.

Have there been any places that people have seen walkthroughs in regards to joining tables and creating more advanced queries and really working up from there.
__________________
Jedite Neshtal , Paladin Vanguard(HillsBury) ,EQ2 (Faydark) Disturbed ,EQ1 Tarrew Marr (R.I.P), Hunter LOTRO
Vestal Paladin WoW(Eoner), Conqueror AOC(Zug)
Jedite is offline   Reply With Quote
Old 01-24-2008, 05:59 AM   #4 (permalink)
Rhuobhe
all hail Rhuobhe Manslayer
 
Rhuobhe's Avatar
 
Join Date: Jul 2007
Location: Miami, FL
Posts: 357
buy any decent book, look for something simple and easy to understand

learn the basics

get some job experience at it

don't count on that promotion. but hey who knows

the important thing is to learn so you can apply at the your future higher salary job
Rhuobhe is online now   Reply With Quote
Old 01-24-2008, 08:44 AM   #5 (permalink)
Mageling
the Support Analyst
 
Join Date: Mar 2004
Posts: 311
I think that was the motivation to learn. Not exactly to pick up this current opportunity, but to put myself in a position where I can learn more through job experience where I am currently. We have the ability to work with test databases here at work, and I was hoping that by learning a bit more about SQL, would give me either a chance when a position comes along like this in the future, or expands my ability to sell myself to another employer sometime in the future.

I really don't expect to be considered for the job opening as it may have sounded in the original post, but instead it sparked my interest in finding out more about SQL and seeing where that takes me.

Jedite: You mentioned a book in your post, do you have the name of it perhaps? I'm pretty interested in starting fresh and learning from the ground up.

Thanks!
Mageling is offline   Reply With Quote
Old 01-24-2008, 10:11 AM   #6 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
I have and would recommend:

Amazon.com: Professional SQL Server 2005 Programming (Programmer to Programmer): Books: Robert Vieira

I've always been a fan of the Programmer to Programmer books.
Zippygoose is offline   Reply With Quote
Old 01-24-2008, 10:22 AM   #7 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
If you really really wanted to get hardcore about it, you could also look into a MCITP: Database Administrator cert (assuming you are on the Microsoft platform).

Even if you don't want to go that far but would like to get some very very in-depth knowledge you could check out these books:

Microsoft® SQL Server™ 2005: Applied Techniques Step by Step

Microsoft® SQL Server™ 2005: Database Essentials Step by Step

MCTS Self-Paced Training Kit (Exam 70-431): Microsoft® SQL Server™ 2005—Implementation and Maintenance

MCITP: Database Administrator web site:

MCITP: Database Administrator

That may be biting off a bit more than anyone would like to chew though
Zippygoose is offline   Reply With Quote
Old 01-24-2008, 11:59 AM   #8 (permalink)
tikkus
Banned
 
Join Date: Nov 2003
Posts: 1,219
-3 Internets
I've been working with SQL Server 2k/2k5 in my current job and, having read a VB.NET Databases book prior, I'd have to say that actual experience counts a lot more than anything you could read.

Its been a rocky process but I've written so many stored procedures now that I feel like I'm turning into a SQL pro. :P
tikkus is offline   Reply With Quote
Old 01-25-2008, 08:29 AM   #9 (permalink)
Niceshot23
Registered User
 
Join Date: Oct 2004
Posts: 112
+0 Internets
SQL is easy, once you learn the basics, picking up new syntax and replacing old methods is a breeze.....

a few of my notes:

- temp tables are more efficient then declarative tables
- use minimal amount of cursors
- don't join in the where clause (meaning select a.*, b.* from table a table b where a.field = b.field) and instead, use microsoft standard as (select a.*, b.* from table a [inner / left outer] join table b on a.field = b.field)
- to reduce the amount of deadlocks, use "with (nolock)" on your joins (i.e. "select a.*, b.* from table a with(nolock) [inner / left outer] join table b with(nolock) on a.field = b.field"
- in the begining of your stored procs, insert this line "SET NOCOUNT ON", it removes the messages like "1 records affected" ... if you're using these stored procs for most reporting tools, it can cause problems
- avoid using the distinct statement as much as possible .... it slows down the query/proc .... most of the time, its just incorrect joining of the tables if you're having duplicate results
Niceshot23 is offline   Reply With Quote
Old 01-25-2008, 01:04 PM   #10 (permalink)
Vithe
Registered User
 
Vithe's Avatar
 
Join Date: Nov 2006
Location: Florida
Posts: 219
+2 Internets
Send a message via ICQ to Vithe Send a message via AIM to Vithe Send a message via MSN to Vithe Send a message via Yahoo to Vithe
W3Schools Online Web Tutorials has some decent tutorials for beginners etc for most anything you want to get your hands wet in. I used it for ASP and thought it was pretty good.
Vithe is offline   Reply With Quote
Old 01-25-2008, 01:47 PM   #11 (permalink)
lendarios
weeeeee
 
Join Date: Jun 2005
Location: Miami, Fl.
Posts: 816
Quote:
Originally Posted by Zippygoose View Post
I have and would recommend:

Amazon.com: Professional SQL Server 2005 Programming (Programmer to Programmer): Books: Robert Vieira

I've always been a fan of the Programmer to Programmer books.
I read that book and its garbage. I am very disapointed of Wrox as a publisher.

Go with an APress book. They go more into the details of how things happen. Wroxs book only say "bla bla its beyond our scope.."
__________________
Quote:
Originally Posted by Lusiphur View Post
Best raiding game ? Wow.
lendarios is offline   Reply With Quote
Old 01-25-2008, 02:04 PM   #12 (permalink)
lendarios
weeeeee
 
Join Date: Jun 2005
Location: Miami, Fl.
Posts: 816
Quote:
Originally Posted by Niceshot23 View Post
SQL is easy, once you learn the basics, picking up new syntax and replacing old methods is a breeze.....

a few of my notes:

- temp tables are more efficient then declarative tables
- use minimal amount of cursors
- don't join in the where clause (meaning select a.*, b.* from table a table b where a.field = b.field) and instead, use microsoft standard as (select a.*, b.* from table a [inner / left outer] join table b on a.field = b.field)
- to reduce the amount of deadlocks, use "with (nolock)" on your joins (i.e. "select a.*, b.* from table a with(nolock) [inner / left outer] join table b with(nolock) on a.field = b.field"
- in the begining of your stored procs, insert this line "SET NOCOUNT ON", it removes the messages like "1 records affected" ... if you're using these stored procs for most reporting tools, it can cause problems
- avoid using the distinct statement as much as possible .... it slows down the query/proc .... most of the time, its just incorrect joining of the tables if you're having duplicate results
avoid Select * from ... Know exactly where your data is. getting all the columns is ineficient.

avoid using Select top (x). no need to have sql rearrange the data once you have fetched it, if you need a sample use tablesample.

Views are slower than store procedures. DBA like views because they shield the underliyng table structure, but then a simple select from one table, becomes a series of chained selects harming performance.

Know your @@IDENTITY vs SCOPE_IDENTITY() functions, knowing the difference between those two landed me one of my previous jobs.

Dont rely on cursors, they break Sql set programing into iteration programing.

Learn by heart, the differences between data types.
bit, int, char, nchar, varchar, nvarchar, small int, datetime, smalldatetime, decimal, money, etc.
Learn what are indexes ( the two types) and how you can use them to enhance performance.
Learn what are keys, foreign and primaries. Learn what are constrains and triggers ( the two types).
__________________
Quote:
Originally Posted by Lusiphur View Post
Best raiding game ? Wow.
lendarios is offline   Reply With Quote
Old 01-25-2008, 02:06 PM   #13 (permalink)
lendarios
weeeeee
 
Join Date: Jun 2005
Location: Miami, Fl.
Posts: 816
Quote:
Originally Posted by Zippygoose View Post
I have and would recommend:

Amazon.com: Professional SQL Server 2005 Programming (Programmer to Programmer): Books: Robert Vieira

I've always been a fan of the Programmer to Programmer books.
Also that book is aimed at programmers with experience.
Dont buy it if you dont know t-sql ( the book only has 1-2 chapters on it.... )
__________________
Quote:
Originally Posted by Lusiphur View Post
Best raiding game ? Wow.
lendarios is offline   Reply With Quote
Old 01-25-2008, 03:32 PM   #14 (permalink)
Zippygoose
Math Enthusiast/Badass MC
 
Zippygoose's Avatar
 
Join Date: Jun 2002
Location: Seattle
Posts: 650
+0 Internets
Send a message via AIM to Zippygoose
Quote:
Originally Posted by lendarios View Post
Also that book is aimed at programmers with experience.
Dont buy it if you dont know t-sql ( the book only has 1-2 chapters on it.... )
He knows t-sql and seems to be a programmer with some experience...

Last edited by Zippygoose : 01-25-2008 at 03:35 PM.
Zippygoose is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 01:03 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6