|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SQL Server database programmingmicrosoft.public.sqlserver.programming
MIN/MAX usage
Greg Collins [Microsoft MVP] -
27 Apr 2007 8:44 PM - 1 message
I have a temp table that I create to build some statistics, the results of which I copy back to a live table. My question is in regards to MIN/MAX and other such functions... Do these get re-evaluated for every row, or is SQL smart enough to store the value for the next iteration? Because if they are re-evaluated every time, then I will definitely want to copy them into a variable first so they are only evaluated one time. ...
Return 1 of 2 Select Statements
Derek Hart -
27 Apr 2007 12:57 AM - 1 message
I simply want to do this in a stored procedure: If @myValue = 1 Select Field1 From myTable Else If @myValue = 2 Select Field1, Field2 From myTable In query analyzer I get the right select statement, but in dotnet or access ...
Running Total for sales by week
aj70000 -
26 Apr 2007 6:11 AM - 1 message
Hi, Here's what I need as the output for running total Week BU Cumulative_Amount 1 AB 100 ...
Modifying date value (varchar)
Rob -
25 Apr 2007 7:52 PM - 1 message
Hi, I receive a flat file that contains, among other info, a value for date. This value is 10 char. long and a sample of what it could look like is (CCYY-MM-DD): 2007-4-12 2006-12-31 ...
how to select every "n"th row from an ordered dataset?
Rich -
24 Apr 2007 10:58 PM - 1 message
My table contains 100 rows of data that was collected every 10 seconds. The datetime is recorded along with other information. I want to retrieve every 6th row from this table - that would be the row at each minute interval. How ...
|
|||||||||||||||||||||||