Now a days Twitter is very famous. Every one says Just follow me on Twitter....
As per Newton's Third Law
For every action, there is an equal and opposite reaction.
When some one is following you on twitter you will get a notification. When some one is leaving you can even get the notification using Qwitter.
Qwitter e-mails you when someone stops following you on Twitter.
http://useqwitter.com/
isn't this kool??
Monday, December 21, 2009
Qwitter and Twitter based on Newton's Third Law
Select the nth best amount with simple query
In this post i would like to show you a simple code, which is used to find the nth best amount with out using any RANK or MAX funcions.
Code is simple and straight forward. You just have to pass the value to the variable @N. If you want to find the TOP amount or highest price of any given product the you need to pass value 1 to the variable @N.
This code works on AdventureWorks2008 database.
DECLARE @N smallint
SET @N = 1
Select distinct PP_o.StandardCost
from Production.Product PP_o where (@N-1) = (select count(distinct(PP_i.StandardCost))
from Production.Product PP_i
WHERE PP_o.StandardCost < PP_i.StandardCost)
Reference: www.DotNetVJ.com
Custom Pagging in SQL Server using ROW_NUMBER Function
This is simple post to implement the pagination in SQL Server using Analytical functions.
-- Variable Declaration
DECLARE @PageLimit smallint, @CurrentPageNumber smallint
SET @PageLimit = 10 -- Setting Page Limit to 10
SET @CurrentPageNumber = 10 -- Current Page Number
DECLARE @StartRow INT
DECLARE @EndRow INT
-- Calculating the starting row
SET @StartRow = ((@CurrentPageNumber-1) * @PageLimit)
-- Calculation the Ending row
SET @EndRow = @StartRow + @PageLimit
-- Query to get the actual records based on Order by Clase
SELECT * FROM
(
SELECT ProductID,
Name,
ProductNumber,
ROW_NUMBER()OVER(ORDER BY Name) AS RowNumber
FROM Production.Product
) v
WHERE v.RowNumber > @StartRow AND v.RowNumber <= @EndRow
Friday, December 18, 2009
SQL Server Vs Oracle
My friend Pinal Dave (http://blog.sqlauthority.com/) posted one very good article on "Differences in Vulnerability between Oracle and SQL Server". This is a kinid of topic which will never end.
Its a very good topic and each one one us has different opinion and also every one should take this in +ve mode.
I will not say which one is better here. Coz each of these are best on their own.
Based on my consulting exprience in US and UK, Database servers are decided based on the following factors:
1) The application which is used to access the tables. If the front-end application is in .net or any of the microsoft products then default database server is SQL Server. If the front-end application is in Java then default database server is oracle.
2) selecting database server is entirely based on the big picture of enterprise architecture. if the firm is using SQL Server right from the begining then they preffer to go with SQL Server than changing the whole architecture.
I know these are not the only factors but these are the two answers i get normally when i review the architecture.
On the other-hand, what i have seen now a days, people are looking more towards vertica or Sybase IQ or Netezza. which are mainly for datawarehouse applications. So i think in the next 2 to 3 years there would be a huge changes to various database architectures.
Wednesday, October 14, 2009
Microsoft Most Valuable Professional Award - 2009 - SQL Server Architecture
Dear Vijay Krishna Kadiyala,
Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in SQL Server technical communities during the past year.
Also in this email:
About your MVP Award Gift
How to access http://www.mvpaward.com to get your technical subscription benefits
Your MVP Identification Number
MVP Award Program Code of Conduct
The Microsoft MVP Award provides us the unique opportunity to celebrate and honor your significant contributions and say "Thank you for your technical leadership."
Toby Richards
General Manager
Community & Online Support
Monday, September 7, 2009
Mindcracker Most Valuable Professional Award - 2009
Just got an award from one of the most popular Technical community...
Dear Vijaya,
Congratulations! You have received the Mindcracker Most Valuable Professional Award for 2009. This award is given for your extra ordinary contributions on C# Corner and Mindcracker Network web sites.
Thank you for your valuable contributions and time. We really appreciate it.
Please send us your latest shipping address (day time) and phone number and we will ship you the prizes.
Thank you again for being a part of most popular community for .NET developers.
Cheers!
Praveen Kumar
Editorial Director
Mindcracker Network
