Viewing 15 posts - 4,306 through 4,320 (of 5,588 total)
A picture's worth a thousand words, but setup code is worth more. If you can provide the tables structure via CREATE TABLE statements, and some sample data via INSERT statements,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2010 at 10:22 am
AndrewSQLDBA (4/22/2010)
Hope that you don't mind if I take the code apart and figure out how it works, and what it does
Actually, I think you will find that most people...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2010 at 8:53 am
Grant Fritchey (4/22/2010)
jcrawf02 (4/21/2010)
GregoryF: "don't worry about not knowing how many instances/servers there are, every where I have ever worked, no one know all of them, there are some that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2010 at 8:44 am
Gianluca Sartori (4/22/2010)
Jack Corbett (4/22/2010)
Gianluca Sartori (4/21/2010)
Public const SC AS String = "'" 'Yes, you got it right, it's...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2010 at 8:20 am
Hugo Kornelis (4/22/2010)
Abrar Ahmad_ (4/22/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2010 at 6:03 am
GregoryF (4/21/2010)
jcrawf02 (4/21/2010)
GregoryF: "don't worry about not knowing how many instances/servers there are, every where I have ever worked, no one know all of them, there are some that are...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 9:59 pm
Matt Miller (#4) (4/21/2010)
For 2 exactly - the median is the average of the 2 numbers.
Well, keywestfl9 did say:
i have a requirement to find median of two date column in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 9:53 pm
ColdCoffee (4/21/2010)
Lynn Pettis (4/21/2010)
Please note that if you write the query the way Coldcoffee showed you it will not take advantage of any indexes that may exist on your table.
Guess...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 9:37 pm
andy behrendt (4/21/2010)
I have a stored procedure that requests one parameter which is a bit field. In the stored procedure I want to check if the parameter is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 9:07 pm
keywestfl9 (4/21/2010)
i have a requirement to find median of two date column in a table.Can anyone suggest how do i achieve it in sql query?
Thanks for any help
How's this?
DECLARE @Date1...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 9:00 pm
CirquedeSQLeil (4/21/2010)
Yeah - I saw that. I like how he began his blog.
That was indeed a novel way to start...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 6:47 pm
GregoryF (4/21/2010)
Me, and many of my friends do spend a few hours surfing the web during the day.
Then, to kill the time surf the web.
Might I suggest instead of just...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 6:44 pm
Paul White NZ (4/21/2010)
Well this took off while I was asleep!
You actually sleep??? When did this change occur? :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 5:00 pm
Steve Jones - Editor (4/21/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 4:54 pm
Yes. Make a hidden parameter. Then use a variable to build the sql statement to run, using this parameter as the where clause.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 3:43 pm
Viewing 15 posts - 4,306 through 4,320 (of 5,588 total)