Viewing 15 posts - 3,451 through 3,465 (of 5,504 total)
You might want to have a look at Jeff's "Running Total" article. You'll find several solutions including a comparison. Depending on the number of rows you're dealing with...
May 24, 2010 at 5:14 am
atikdesai (5/24/2010)
I don't have proper data. My client will provide some test data tomorrow. Please try to help me out without data.
How does this statement match with your first post?
Please...
May 24, 2010 at 4:59 am
A TRY ...CATCH block might help.
May 24, 2010 at 4:57 am
It's more than unlikely to get those values, since there are several ways to assign a default value to a parameter (e.g. as part of the CREATE PROCEDURE statement, using...
May 24, 2010 at 3:59 am
Without seeing your table defs and a description of your business case it's hard to tell...
There are several versions around how to deal with such a scenario. Some are better...
May 24, 2010 at 3:32 am
You should add the following two options to import unicode data:
CODEPAGE = 'RAW'
DATAFILETYPE = 'widechar'
That should help you to import your Swedish character (as long as the...
May 24, 2010 at 3:08 am
Gopi Muluka (5/24/2010)
See this
DECLARE @DT DATETIME, @WeekNumber INT
SET @DT='03/01/2010'
SELECT @WeekNumber=DATEPART(wk,@DT)
SELECT @WeekNumber
You need to be careful with DATEPART(wk,...) since it depends on the setting of DATEFIRST. Furthermore, it always starts with...
May 24, 2010 at 2:56 am
Please havea look at ROW_NUMBER(). Use it with 'phone_number' ordered desc and select the results with rwn=1.
[sarcasm ON] Since you marked it as "urgent" I replied the fastest way I...
May 24, 2010 at 2:51 am
You're very welcome 😀
May 23, 2010 at 2:18 pm
Sorry for answering late...
A great resource is Jacob Sebastian's blog.
And, if you don't find the answer there: post your question here on SSC. I've learned a lot and I'm...
May 23, 2010 at 2:16 pm
You might find an answer by searching Jacob Seabstian's blog.
If not, please post a (fake) sample of your current data nd your expected result.
We might be able to help...
May 23, 2010 at 1:59 pm
The problem is you're updating all rows with your first statement, since there is no WHERE condition that would limit the number of rows affected.
Another option to get the result...
May 23, 2010 at 1:55 pm
Hi Wayne,
here's what I came up with (side note: I added an ID column to your original table to keep the order the data were inserted):
;WITH CTE AS
(
SELECT p_or_l,...
May 23, 2010 at 1:49 pm
I'm not sure if this is the best place to ask for issues with a 3rd party product...
You should check a website/forum related to that software.
May 22, 2010 at 9:32 am
You might consider using GETUTCDATE() instead.
But you need to take care of the different time zone you're in.
May 22, 2010 at 9:27 am
Viewing 15 posts - 3,451 through 3,465 (of 5,504 total)