Viewing 15 posts - 11,281 through 11,295 (of 26,486 total)
The code I provided creates a csv list. You'll have to modify it to concatenate your notes into a single field. Perhaps using a blank (space) instead of...
June 15, 2012 at 3:15 pm
Hopefully this helps you move in the right direction.
WITH CTE AS
(
SELECT DISTINCT
NoteId,
object_id
FROM...
June 15, 2012 at 3:00 pm
Brandie Tarvin (6/15/2012)
June 15, 2012 at 1:49 pm
The only way I can think of is if you had auditing setup. After the fact, I don't think you are going to have much luck.
June 15, 2012 at 12:39 pm
Going out on a limb here, but I'm pretty sure you can't use a MERGE statement in a derived table.
What exactly are you trying to accomplish here?
June 15, 2012 at 9:42 am
If I may, I am wondering why you are even using sp_executesql to run your select statement. From what I am seeing, it isn't necessary.
June 15, 2012 at 8:46 am
dwain.c (6/15/2012)
Lynn Pettis (6/15/2012)
Not running your code, but what do you return if the mobility indicator is not 1? The OP indicated that it should be blank.
Plus, I find...
June 15, 2012 at 1:29 am
First of all, what you posted as a query isn't, it is just a part of the query. We really need to see the whole query to be able...
June 15, 2012 at 1:27 am
vinu512 (6/15/2012)
June 15, 2012 at 1:25 am
dwain.c (6/15/2012)
Actually you don't need to do a JOIN of any sort.
create table #studentSchoolHistory (studentID varchar(12),scode int, iSchoolYearcode int)
insert into #studentSchoolHistory...
June 15, 2012 at 1:23 am
Okay, here is my solution:
create table dbo.student (
studentID varchar(12),
Firstname varchar(12),
LastName varchar(12)
);
insert into dbo.student values ('003412581','steve','marnet');
insert into dbo.student values...
June 15, 2012 at 1:19 am
Kingston Dhasian (6/15/2012)
Lynn Pettis (6/15/2012)
Kingston Dhasian (6/15/2012)
surma.sql (6/14/2012)
dwain.c (6/14/2012)
It appears that there is more than one person stumped on the same homework problem.http://www.sqlservercentral.com/Forums/Topic1316131-391-1.aspx
Thanks for reply. but please help me.
i need...
June 15, 2012 at 12:32 am
Kingston Dhasian (6/15/2012)
surma.sql (6/14/2012)
dwain.c (6/14/2012)
It appears that there is more than one person stumped on the same homework problem.http://www.sqlservercentral.com/Forums/Topic1316131-391-1.aspx
Thanks for reply. but please help me.
i need help, thats why i...
June 15, 2012 at 12:20 am
dwain.c (6/15/2012)
Lynn Pettis (6/14/2012)
Not sure why you need the SUM or GROUP BY.
I was going to say the same thing but I think Sony was assuming there might be duplicated...
June 15, 2012 at 12:16 am
Viewing 15 posts - 11,281 through 11,295 (of 26,486 total)