Viewing 15 posts - 9,856 through 9,870 (of 13,461 total)
you can add a WHERE statment to eliminate the days, but which datefield? your sample has three fields that might be datetimes:
new_lastupdatetime, createdon or new_timesupportcallreceived?
select datename(dw,getdate())--Friday
and do something like :
WHERE...
March 12, 2010 at 8:14 am
==edit i reread this and have no idea what we are after yet...sorry==
is this a hierarchy? so 1,2 is the parent record, and anything that starts with 2 would be...
March 12, 2010 at 7:08 am
--for users who are too lazy to type "SELECT * FROM TABLENAME"
CREATE procedure sp_show ...
March 12, 2010 at 6:39 am
shouldn't orderAmt be a money or decimal(19,4) datatype instead of float?
I'm thinking that because it's an approximate value for a float, some value does nto convert well to float,...
March 11, 2010 at 11:52 am
Dan it's fairly simple, you just need to use dynamic SQL;
I followed up on a similar thread where the user wanted a database and some specific roles to be created...
March 11, 2010 at 10:07 am
there are several script contributions of functions you can grab; look for "Propercase" in the scripts section;
that way you get "Raccoon City" instead of "Raccoon city" for multi-word locations.
here's one...
March 11, 2010 at 9:52 am
==edit== nice job hunterwood! you posted right when i did, yours is more elegant.==end edit==
yeah non-standard formats are going to be tough to convert. you have to substring the parts...
March 11, 2010 at 8:27 am
it looks like the data consistently has a dbl quote ending the last comment, followed by a three char monthly abbreviation that starts the next comment.;
if you did a repetitive...
March 10, 2010 at 6:42 pm
Jeff Moden is the resident king of the Tally Table, and has contributed a number of articles on it here on SSC; you can find them in the search for...
March 10, 2010 at 7:59 am
can we see the trigger itself? it might not be written correctly, or not using the INSERTED table correctly and causing an error.
March 10, 2010 at 7:35 am
your problem is your function; to do a split you must return a TABLE, not a nvarchar string.
try this instead:
select *
from Loss_Mit.DM_ER_Portal_Usage_TBL
where Loan_Num in (select Item from dbo.DelimitedSplit ('1100123408,1100226532,1127116374',','))
order...
March 10, 2010 at 7:28 am
Angela S. (3/9/2010)
March 9, 2010 at 7:52 am
here's a script that generates the DELETE FROM / TRUNCATE TABLE statements in foreign key hierarchy order; like i said before, i've found it's rare you want to delete all...
March 9, 2010 at 6:54 am
My question is similar to Paul's; what is it you want to see;
if you look at the data, which changes do you want to track? if you ignore the...
March 9, 2010 at 6:24 am
huston you can use something like this:
select
case
when myvalue like '%[^0-9]%'
then 'has chars'
else ;is numeric'
...
March 8, 2010 at 4:18 pm
Viewing 15 posts - 9,856 through 9,870 (of 13,461 total)