tags:

views:

157

answers:

4

I always considered database as a storage . but never thought it can be used for querying across tables etc.

Which is a good book for sql for a developer. not just the syntax. How to write a query in different ways How internally queries are executed.etc

especially related to microsoft sql server

+1  A: 

My favorite SQL book is a few years old, but it covers much of the internals in addition to the semantics - Bob Beauchemin's A Developer's Guide to SQL Server 2005: http://www.amazon.com/Developers-Guide-SQL-Server-2005/dp/0321382188

+2  A: 

This question is duplicate, many times over, on StackOverflow.
For example:

Furthermore, there are many SQL Book questions related to specific SQL implementations: Microsoft SQL Server, mySQL, etc.

mjv