Viewing 15 posts - 15,286 through 15,300 (of 15,381 total)
Not a really solid solution but you could alias your tables with a lot shorter name. For example, PERS_SVCMBR_TBL a
then your select would lose around 14-15 characters per line.
Not the...
September 30, 2009 at 10:35 am
I think you are wanting to elminate rows that only contain spaces?
simply add where [Field] ''
SQL treats multiple spaces in a field as an empty string. Alternately you could...
August 13, 2009 at 3:15 pm
You are going to need to use a sum() function to get the total. It is impossible to tell from your post what column you want to total. The basic...
August 7, 2009 at 3:11 pm
Since all the data is ultimately converted to string when exporting you should be to do something like this.
isnull(cast([YourFieldHere] as varchar(max)), '')
That way all your null values will just be...
August 5, 2009 at 7:56 am
try something like this:
select left(@a, 15 - charindex(' ', reverse(@a)))
July 9, 2009 at 12:23 pm
It's because when you do math in the select it implicitly convert the result to the lowest datatype. In this example 1 and 17439 are both integers so the result...
June 23, 2009 at 7:15 am
You should be careful about just checking OBJECT_ID. You may have more than one object in the sys.objects table with that name. Take a look at http://msdn.microsoft.com/en-us/library/ms190324(SQL.90).aspx to see a...
June 17, 2009 at 11:22 am
Something like the following should do it:
declare @SearchChar char(1)
set @SearchChar = ' '
declare @Name varchar(50)
set @Name = 'Jamie''s Car'
select left(@Name, charindex(@SearchChar, @Name) - 1)
June 17, 2009 at 7:57 am
For me a long weekend means two very important things. First of all I have a VERY large smoker that gets fired up over this holiday weekend most years. I...
May 22, 2009 at 7:07 am
Happy to help. thanks for letting me know that worked for you. 😉
May 1, 2009 at 8:51 am
Yeah. Either way it is deleting #tempTable where there is not a match in cte_Claims.
May 1, 2009 at 8:02 am
See if this is getting you closer.
--this should now return a list of client_Ids that have claims in the period you want to exclude
;with cte_claims as(
select t.Client_Id
from #tempTable t
join tbl_Claims_master...
May 1, 2009 at 7:32 am
so you need to exlude records that do not have a claim at any point during the 4 months prior to the current one?
May 1, 2009 at 7:20 am
What exactly are you trying to do? Also in the select that you posted you have "where and ...". You left out the conditional. If you can explain your requirements...
May 1, 2009 at 7:10 am
Viewing 15 posts - 15,286 through 15,300 (of 15,381 total)