Viewing 15 posts - 31 through 45 (of 355 total)
Jeff Moden (12/15/2010)
parthi-1705 (12/13/2010)
But i want to know only CEILING can do this or some other functions can do this or notThanks
Parthi
CEILING is the way people do it becaue...
December 15, 2010 at 3:47 am
It might be possible to perform the update using a single recursive CTE query, but I'm not sure that in this case it would be the most efficient method.
Here...
December 13, 2010 at 5:22 pm
Well if you don't want to hang from the ceiling, you could do a handstand on the floor.
SELECT
-1000 * FLOOR(-TESTDATA.Number / 1000.0),
1000 *...
December 13, 2010 at 2:17 pm
How do you identify top-level nodes, that is rows where the PrevID column does not reference any other parent row? Is the PrevID column NULL valued in this case, or...
December 13, 2010 at 2:10 pm
Something like this maybe.
I've had to make a few assumptions, such as what exactly you mean by "within 1 minute", and I've also assumed that tables TableA and TableC do...
December 13, 2010 at 12:36 pm
The () and [] brackets have a special meaning in regular expression syntax so if you need to match these characters you have to escape them by prefixing them with...
December 3, 2010 at 6:36 am
Think about what you don't want and then negate it.
WHERE NOT (
(
Status = 'Succeeded'
)
OR (
...
November 26, 2010 at 10:50 am
Try using DENSE_RANK() to derive your Order_Rank column value, something like this:
...
DENSE_RANK() OVER (
PARTITION BY ProductGroup
ORDER BY DateRequested DESC) AS Order_Rank
However, there may...
November 12, 2010 at 11:45 am
Here is an attempt at solving your problem using the Quirky Update method. You need to be aware of the rules associated with using this technique as described in Jeff...
November 11, 2010 at 12:08 am
I haven't had a chance to test this, but...
;WITH cteSEQ AS (
SELECT
[Date],
[Value],
...
November 10, 2010 at 4:59 pm
If your account number column contains only numeric digits and can be reliably converted to an int (or bigint) type then you could obfuscate the data by converting the column...
November 10, 2010 at 4:02 pm
Chris Morris-439714 (11/10/2010)
andrewd.smith (11/10/2010)
SELECT *
FROM dbo.ZNodeOrder NO
...
November 10, 2010 at 10:34 am
If you are concerned about optimizing query performance and/or keeping your working day queries simple, you could amend your calendar table to include an additional indexed column that increments by...
November 10, 2010 at 7:19 am
Either of these will work and stand a chance of using an index (if such an index exists) on the OrderDate column:
SELECT *
FROM dbo.ZNodeOrder NO
INNER...
November 10, 2010 at 6:13 am
Sachin's solution does rely on the added IDENTITY column to define the order of all the rows in the table, including those rows with a NULL ChangeDate. If there is...
November 9, 2010 at 8:37 am
Viewing 15 posts - 31 through 45 (of 355 total)