I have a table:ID FK Num Color1 A 5 Red2 A 2 Blue3 B 2 BlueI need a query that will give me the result set of:Number Red Number Blue Total5 4 9
Tag: TSQL
SQL SERVER Tutorial – T-SQL: BATCHES – Variables
T-SQL TUTORIAL
Microsoft SQL Server 2005 Stored Procedure Programming in T-SQL & . NET
Product Description Create and Use Stored Procedures for Optimal Database PerformanceDevelop complex stored procedures to retrieve, manipulate, update, and delete data. Microsoft SQL Server 2005 Stored Procedure Programming in T-SQL & . NET identifies and describes the key concepts, techniques, and best practices you need to master in order to take full advantage of stored… Continue reading Microsoft SQL Server 2005 Stored Procedure Programming in T-SQL & . NET
SQL SERVER Tutorial – T-SQL: Self Join
T-SQL Tutorial
SQL SERVER Tutorial – T-SQL: Built-in Functions – Working with NULLS – COALESCE – ISNUMERIC
T-SQL TUTORIAL
SQL SERVER Tutorial – T-SQL: ORDER BY – COUNTING – GROUP BY – HAVING
T-SQL Tutorial
T-SQL 2008 Joes 2 Pros: Core T-SQL Coding Fundamentals For Microsoft SQL Server 2008
Product Description Joes 2 Pros turns SQL students into SQL certified experts. This is the original SQL book that began it all. A newer second edition of this book has been reprinted with a lower price under the new title, “Beginning SQL Joes 2 Prosâ€. It has the same images, explanations, practices, and quizzes as… Continue reading T-SQL 2008 Joes 2 Pros: Core T-SQL Coding Fundamentals For Microsoft SQL Server 2008
SQL SERVER / T-SQL Tutorial: Left Outer Join – Right Outer Join – Full Join – Combining Join
T-SQL Tutorial
SQL SERVER Tutorial – T-SQL: TOP – CROSS JOIN – JOIN WITH WHERE – INNER JOIN – MULTIPLE JOIN
T-SQL Tutorial
Pro T-SQL 2005 Programmer’s Guide
Product Description Pro T-SQL 2005 Programmer’s Guide provides comprehensive and detailed coverage of all the major features and facilities of T-SQL for SQL Server 2005. It is designed for all users of T-SQL, database administrators, systems administrators, application developers, and end-users, who want to learn how to exploit the power of T-SQL. Whatever you need… Continue reading Pro T-SQL 2005 Programmer’s Guide
Pro T-SQL 2005 Programmer’s Guide
Product Description Pro T-SQL 2005 Programmer’s Guide provides comprehensive and detailed coverage of all the major features and facilities of T-SQL for SQL Server 2005. It is designed for all users of T-SQL, database administrators, systems administrators, application developers, and end-users, who want to learn how to exploit the power of T-SQL. Whatever you need… Continue reading Pro T-SQL 2005 Programmer’s Guide
Automating tests for T-SQL code
tst.codeplex.com This is a short demo of the TST tool. This is an open source tool that can be used to write and automate tests for T-SQL code. Similar to other tools like SPUnit but with a more mature set of features. Can be downloaded from http
EXCEL: T-SQL Generator
Generate T-SQL statements with Excel.
What’s the difference between and Join and a Subquery (T-SQL)?
How do I get started in writing/programming in T-SQL?
I am completely confused on what T-SQL really is and how it is different from SQL and its variants. How do you guys program something using T-SQL language? I mean where do you actually ‘encode’ those T-SQL codes? In cobol I use notepad as the programming environment. Do I need to download something like that… Continue reading How do I get started in writing/programming in T-SQL?
SQL SERVER Tutorial – T-SQL: Inserting Data – Identity Values – Delimiters – Insert Multiple Rows
T-SQL Tutorial
SQL Server 2008 T-SQL Debugger
The Transact-SQL debugger in SQL Server Management Studio enables you to find errors in Transact-SQL scripts, stored procedures, triggers, and functions by observing their run-time behavior. You can start the debugger when you are using the Database Engine Query Editor window. By using the Transact-SQL debugger, you can do the following: • Step through the… Continue reading SQL Server 2008 T-SQL Debugger
T-SQL: How do I find the greatest values in a column?
How can write a SELECT statement that finds the n greatest values in a column? From what i’ve read, the TOP statement only returns the first n rows, it doesn’t take any regard to the values. For example, if a have a column with ages, i want to be able to find the 5 oldest… Continue reading T-SQL: How do I find the greatest values in a column?
Microsoft SQL Server 2008 T-SQL Fundamentals
ISBN13: 9780735626010 Condition: NEW Notes: Brand New from Publisher. No Remainder Mark. Product Description Master the foundations of T-SQL with the right balance of conceptual and practical content. Get hands-on guidance—including exercises and code samples—that show you how to develop code to query and modify data. You’ll gain a solid understanding of the T-SQL language… Continue reading Microsoft SQL Server 2008 T-SQL Fundamentals