Viewing 15 posts - 10,081 through 10,095 (of 15,381 total)
I am extremely confused on what you want to do here. Initially I thought what you wanted was ROW_NUMBER with partition but you posted the query that will do that....
November 9, 2012 at 1:48 pm
I second reading the article by Gail. Also, why all the NOLOCK hints? Are you aware of the possible risks using that?
November 9, 2012 at 1:44 pm
harri.reddy (11/9/2012)
the first record should be like this
1 ...
November 9, 2012 at 12:16 pm
I would agree bterraberry about using cross apply here.
To directly answer your question I think you need something like this...
select Main.*,
(Select TOP 1
case when f.objectName 'Anesthesia_Type!Anesthesia_Post_Note' = 'TRUE'...
November 9, 2012 at 11:11 am
harri.reddy (11/9/2012)
in my data viewer i am seeing correct data,but when i see in the table,its not ordered.
i have identity column so it should start by 1.
but when do something...
November 9, 2012 at 10:24 am
You can't have an order by in a subquery like that. You need to include the ID column in your subquery and then use the Order by on the main...
November 9, 2012 at 9:56 am
LANdango.com (11/9/2012)
November 9, 2012 at 9:50 am
dedicatedtosql (11/8/2012)
Recently some one deleted some rows from a table. I was asked to find out who did it. Since the log has not been backed up since the...
November 8, 2012 at 3:02 pm
My apologies for not providing you the answer you were looking for in your other thread. I thought that this was an extension of your previous issue. I didn't realize...
November 8, 2012 at 2:09 pm
IF the column in varchar you could do something like this.
;with data (SomeVal) as
(
select '480.90' union all
select '480.91' union all
select '48090' union all
select '48091'
)
select case charindex('.', SomeVal, 0) when 0...
November 8, 2012 at 1:23 pm
So you have already loaded this data into a table and some of the rows contain decimal places and other do not? And you want to add the decimal place...
November 8, 2012 at 12:52 pm
dj1202 (11/8/2012)
Field 1: varchar in the format of '20121108'.
Field 2 and 3: varchar string...
November 8, 2012 at 12:32 pm
michielbijnen (11/8/2012)
I know how to...
November 8, 2012 at 11:11 am
That worked. Now of course all of this is because you don't seem to be able to test this. I am still confused how you think the trigger I posted...
November 8, 2012 at 11:05 am
Again I will assume you did NOT test what you posted. It is full of issues.
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near 'BOA'.
Msg 102, Level 15, State...
November 8, 2012 at 10:33 am
Viewing 15 posts - 10,081 through 10,095 (of 15,381 total)