Viewing 15 posts - 18,136 through 18,150 (of 26,484 total)
Try this. You need to do the casts in the comparision.
select
tli.iItemID,
tva.ianswerID,
CAST(tva.nvcanswer AS varchar(max)),
...
December 4, 2009 at 7:47 am
Unfortunately, we can't see what you see and you aren't giving us enough information to really help. Please provide the FULL error message(s) you have received.
December 4, 2009 at 7:34 am
It would help if provided the DDL (CREATE TABLE statements), sample data (in a readily consummable format that can be cut/paste/run in SSMS), expected results bassed on the sample data,...
December 4, 2009 at 7:26 am
Please, when you get a chance, go back and eliminate the cursor. Since there is a set-based solution, you really should use that as it should scale better than...
December 4, 2009 at 7:21 am
stewsterl 80804 (12/4/2009)
Yes that would be great. I'm new to SQL and trying to learn as much as possible.
With some of the issues I have at times here at work,...
December 4, 2009 at 7:12 am
Have to agree, this is how to accomplish this task. Too bad the OP didn't show us what they had tried.
create table dbo.Grade (
LowPercent tinyint,
...
December 4, 2009 at 7:11 am
Doesn't mean the problem is in the data. It could be a problem in the front-end.
December 3, 2009 at 3:29 pm
Personally, I'd rewrite this but here is what you should try:
SELECT PART.DESCRIPTION,
sum(case when invoice_date between '1/1/'+@Year and '1/31/'+@Year then total_amount else 0 end) as 'Jan',
sum(case when invoice_date between '2/1/'+@Year and...
December 3, 2009 at 3:24 pm
Untested as you didn't provide the necessary DDL or sample data:
select
cl.*
from
dbo.calllog cl
where
not exists(select 1 from dbo.asgnmnt asg where...
December 3, 2009 at 3:17 pm
Please provide the DDL for the tables (CREATE TABLE statements), sample data in a readily consummable format (We should be able to simple cut/paste/execute to load the tables), expected results...
December 3, 2009 at 3:12 pm
Options page. This won't, however, change the collation of character data in any of the tables. Those will still have the case sensitive collation.
Curious, why the concern? ...
December 3, 2009 at 2:54 pm
What makes you think that there are carriage returns in the datetime data?
December 3, 2009 at 2:51 pm
Both work for me, but then AdventureWorks database on my development server is using a case insensitive collation. It appears that your install of AdventureWorks is using a case...
December 3, 2009 at 12:56 pm
Are you asking this because you are preparing to interview people for an SSRS position or to prepare for an interview for an SSRS position?
December 3, 2009 at 12:50 pm
??????? :blink: ????????
Care to share your solution; and I mean the code, not just what you did?
December 3, 2009 at 12:44 pm
Viewing 15 posts - 18,136 through 18,150 (of 26,484 total)