Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
To sharpen the Query Logic
To sharpen the Query Logic
Rate Topic
Display Mode
Topic Options
Author
Message
sqlnaive
sqlnaive
Posted Friday, October 19, 2012 7:04 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 2,797,
Visits: 1,745
Hello SQL Gurus,
I want to sharpen by logics in making efficient SQL queries. Is there any book or any website which provides questions on SQL queries ?
Post #1374801
Brandie Tarvin
Brandie Tarvin
Posted Friday, October 19, 2012 10:53 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 9:57 AM
Points: 6,724,
Visits: 5,796
SQL Server Books Online should be your first resource in understanding how queries work.
SQL Queries for Mere Mortals can give you the basics in writing the SELECT statement (the heart of all SQL queries).
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage
:
http://www.BrandieTarvin.net
LiveJournal Blog
:
http://brandietarvin.livejournal.com/
On
LinkedIn!
,
Google+
, and
Twitter
.
Freelance Writer:
Shadowrun
Latchkeys: Nevermore
,
Latchkeys: The Bootleg War
, and
Latchkeys: Roscoes in the Night
are now available on Nook and Kindle.
Post #1374933
Sean Lange
Sean Lange
Posted Friday, October 19, 2012 11:04 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 3:32 PM
Points: 8,980,
Visits: 8,540
What you are describing is a process not an event. There isn't a book you can read and when you finish you are now able to write efficient queries. One of the best ways to improve is to hang around there forums, try answering questions, read what others are doing, read lots of articles, try new stuff. Writing efficient queries is what is learned through experience.
_______________________________________________________________
Need help? Help us help you.
Read the article at
http://www.sqlservercentral.com/articles/Best+Practices/61537/
for best practices on asking questions.
Need to split a string? Try Jeff Moden's
splitter
.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Post #1374938
ScottPletcher
ScottPletcher
Posted Friday, October 19, 2012 5:19 PM
Ten Centuries
Group: General Forum Members
Last Login: 2 days ago @ 10:11 AM
Points: 1,333,
Visits: 1,803
Look for books and articles by Itzik Ben-Gan; his stuff on T-SQL is superb.
SQL DBA,SQL Server MVP('07, '08, '09)
One man with courage makes a majority. Andrew Jackson
Post #1375062
sqlnaive
sqlnaive
Posted Monday, October 22, 2012 1:08 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 2,797,
Visits: 1,745
Hi Brandie, Sean, ScottPletcher, I understand there can be no book on T-Sql which you can finish reading and say "Yeah, I'm the man now". It was just like, if there are any books on T-SQL puzzles for newbees, some SQL challenges which can enhance the SQl writing skills. There must be some authors for MS SQL Server who love to write SQL challenges for different scenarios.
Post #1375274
Brandie Tarvin
Brandie Tarvin
Posted Monday, October 22, 2012 4:04 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 9:57 AM
Points: 6,724,
Visits: 5,796
SQL challenges don't help you improve your query logic, they just encourage people to use what they know. If you're trying to sharpen your skills, read up on best practices and participate in the forums trying to help other people. And learn to use Profiler and execution plans so you can better understand the flaws in your code logic.
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage
:
http://www.BrandieTarvin.net
LiveJournal Blog
:
http://brandietarvin.livejournal.com/
On
LinkedIn!
,
Google+
, and
Twitter
.
Freelance Writer:
Shadowrun
Latchkeys: Nevermore
,
Latchkeys: The Bootleg War
, and
Latchkeys: Roscoes in the Night
are now available on Nook and Kindle.
Post #1375320
Jeff Moden
Jeff Moden
Posted Monday, October 22, 2012 9:53 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 7:18 AM
Points: 33,112,
Visits: 27,038
sqlnaive (10/22/2012)
Hi Brandie, Sean, ScottPletcher, I understand there can be no book on T-Sql which you can finish reading and say "Yeah, I'm the man now". It was just like, if there are any books on T-SQL puzzles for newbees, some SQL challenges which can enhance the SQl writing skills. There must be some authors for MS SQL Server who love to write SQL challenges for different scenarios.
Gosh, if you want challenges, start answering questions on these forums.
If you want some base method that can be expanded to solve various challenges, here's a link to a list of articles that can really help. I know the guy personally!
http://www.sqlservercentral.com/Authors/Articles/Jeff_Moden/80567/
There are some great authors on the "Authors" link on the left side of the page. I'll also second Itzik Ben-Gan's books.
Don't expect to get "smart" about it all overnight, though.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1375556
sqlnaive
sqlnaive
Posted Tuesday, October 23, 2012 12:38 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 2,797,
Visits: 1,745
Hi Jeff, please don't take me wrong way. It's like there is so many material on mathematics, physcs, chemistry puzzles. As Microsoft SQL Server T-Sql is so much popular and there is lots of stuff, blogs out there in net and lots of information, there must be some sites, blogs or books totally and entirely focused on pure T-SQL stuff on scenarios based situation.
Definitely there are some good questions in SQLServerCentral Question of the day and in some other sites but then those are not totally dedicated to t-sql. These are mix-ups of all the components of MS SQL. I was wondering if someone is interested mainly in developing Query writing stuff based on certain conditions, then there must be something for him/her.
Post #1375851
Brandie Tarvin
Brandie Tarvin
Posted Tuesday, October 23, 2012 4:30 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 9:57 AM
Points: 6,724,
Visits: 5,796
sqlnaive, have you tried google yet? There are definitely challenges out there, if that's all you're interested in. And they should come up easily in a search engine.
The key phrase is "T-SQL Challenges".
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage
:
http://www.BrandieTarvin.net
LiveJournal Blog
:
http://brandietarvin.livejournal.com/
On
LinkedIn!
,
Google+
, and
Twitter
.
Freelance Writer:
Shadowrun
Latchkeys: Nevermore
,
Latchkeys: The Bootleg War
, and
Latchkeys: Roscoes in the Night
are now available on Nook and Kindle.
Post #1375948
sqlnaive
sqlnaive
Posted Tuesday, October 23, 2012 7:45 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 2,797,
Visits: 1,745
Thanks Brandie, Jeff and All. Found few sites.
Post #1376049
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.