sql-question.blogspot.com
SQL Server Questions and Answers: CONCATENATE Column values into Rows
http://sql-question.blogspot.com/2012/11/concatenate-column-values-into-rows.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Friday, November 2, 2012. CONCATENATE Column values into Rows. How do you CONCATENATE column values into rows? There is a table Student. Identity), StudentName, SubjectName). You need to concatenate all the subject of each student and display along with student name. Below is sample of input data:. Here is the expected output. Here is the solution:. T-SQL for string Concatenation using FOR XML PATH. July 5, 2014 at 4:15 AM.
sql-question.blogspot.com
SQL Server Questions and Answers: February 2011
http://sql-question.blogspot.com/2011_02_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Tuesday, February 1, 2011. What will be output of below T-SQL code:. 160; MyId [INT] IDENTITY. 160; MyCity [NVARCHAR](50). 160; INSERT INTO. 160; BEGIN TRANSACTION. 160; INSERT INTO. 160; ROLLBACK. 160; IF. 160; BEGIN. 160; PRINT All transactions were rolled back. 160; END. 160; ELSE. 160; BEGIN. 160; PRINT. Outer transaction is rolling back. 160; ROLLBACK. 160; END. 160; DROP TABLE.
sql-question.blogspot.com
SQL Server Questions and Answers: September 2012
http://sql-question.blogspot.com/2012_09_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Monday, September 17, 2012. How to Find Database Growth using T-SQL. In this post, I am going to share a stored procedure to calculate the percentage of file growth of a database. This growth rate can be handy to plan ahead for future storage needs. Dropping procedure dbo.DatabaseGrowth'. Creating procedure dbo.DatabaseGrowth'. Description: Procedure to calulate the file growth %ages for a given database and. Dropping [Seconday]...
sql-question.blogspot.com
SQL Server Questions and Answers: June 2010
http://sql-question.blogspot.com/2010_06_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Sunday, June 27, 2010. Explain SQL Server JOINs with examples? I will explain types of SQL JOINs in in this article. JOINs in SQL Server can be classified as follows:. 8226; INNER JOIN. 8226; LEFT OUTER JOIN. 8226; RIGHT OUTER JOIN. 8226; FULL OUTER JOIN. 8226; CROSS JOIN. Each type is explained below with suitable examples:. Let’s consider two tables as Table1 and Table2 for our example. 8211; CREATE TEST TABLES. AID = B.ID.
sql-question.blogspot.com
SQL Server Questions and Answers: March 2011
http://sql-question.blogspot.com/2011_03_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Sunday, March 20, 2011. How to find all the IDENTITY columns in a database? Here is the easiest way to list all the IDENTITY Columns. Tuesday, March 1, 2011. Function to Convert Decimal Number into Binary, Ternary, and Octal. In this article I am sharing user defined function. To convert a decimal number into Binary, Ternary, and Octalequivalent. DROP FUNCTION dbo.udfGetNumbers. Base [int], @lenght [int]). BaseNum 1) AS VARCHAR.
sql-question.blogspot.com
SQL Server Questions and Answers: December 2010
http://sql-question.blogspot.com/2010_12_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Thursday, December 23, 2010. Granting Execute permission on All Stored Procedure. How to grant Execute permission on All Stored Procedure. For a new User in SQL Server? Most of the application have users who are not creator (owner) of the Stored Procedures. Hence the users don't have EXECUTE permission on any of the Stored Procedures by default, considering that they are not part of any existing Role. That has execute permission.
sql-question.blogspot.com
SQL Server Questions and Answers: October 2010
http://sql-question.blogspot.com/2010_10_01_archive.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Tuesday, October 26, 2010. What will be the output of below query? 1 2010-01-31 00:00:00.000. 2 2010-01-30 00:00:00.000. 3 2010-02-01 00:00:00.000. 4 This will throw an error. 5 None of the above. Subscribe to: Posts (Atom). What will be the output of below query? Explain SQL Server JOINs with examples? How to get SQL Server Restore history using T-SQL? What is Tally Table in SQL Server? How to get Month Number from Month Name.
sql-question.blogspot.com
SQL Server Questions and Answers: SQL Fun #01
http://sql-question.blogspot.com/2012/10/sql-fun-01.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Thursday, October 4, 2012. Write shortest T-SQL code to print 0.00. Without using any number and built-in function. To select "0.00", use following command:. To print "0.00", use following command:. September 11, 2014 at 5:21 AM. Have a look on for more sql interview questions. August 24, 2015 at 1:59 AM. Sap sd online training. August 24, 2015 at 1:59 AM. This is one awesome blog article. Much thanks again.
sql-question.blogspot.com
SQL Server Questions and Answers: What is Tally Table in SQL Server?
http://sql-question.blogspot.com/2012/10/what-is-tally-table-in-sql-server.html
SQL Server Questions and Answers. Tips and Tricks for SQL Server Developers. Monday, October 1, 2012. What is Tally Table in SQL Server? In this post, I am going to explain about Tally. Table and it’s uses in T-SQL programming. Table is like any other table but having a single column of sequential numbers, values starting from 1 (or 0) to some N (int) number. I use Tally table to generate 25 years of dates, so my Tally tables will have values from 1 to 10,000 (25 years * 365.25 days = 9131.25). I will ex...