Viewing 15 posts - 571 through 585 (of 600 total)
James Stover (7/26/2010)
July 27, 2010 at 7:14 am
With "Order by" it does not need to be something in your select list.
So you can select datename(month,YOURFIELD) and order by datepart(month,YOURFIELD)
July 26, 2010 at 2:42 pm
You only specified one of your two tables in the join. What is the structure of the table that has monthly data in it? Does every record in...
July 26, 2010 at 1:56 pm
Eugene Elutin (7/26/2010)
Nevyn (7/26/2010)
July 26, 2010 at 12:20 pm
The way "money" and thus "isnumeric" handles commas seems to be fairly dumb, though. Instead of validating commas in only certain placements, I guess they decided to just make...
July 26, 2010 at 10:37 am
Sorry, I just found that comment by you funny considering you were asking people to spend their time to help with your problem, and doing what he asked would have...
July 23, 2010 at 10:34 am
Lynn Pettis (7/23/2010)
Did you try...
July 23, 2010 at 10:19 am
ss_nl (7/15/2010)
"Upgrade_Year", "NULL" or "Upgrade_Basic".
Why always NULL in stead of "Upgrade_3Months" ??
This should be the logic:
----
If the latest ActualDate...
July 23, 2010 at 8:13 am
A lot has been covered already, but I'll just add 2 quick notes: "sp_" as a name is a bad idea (system will look in master db), and as...
July 22, 2010 at 1:27 pm
Solution above. I was editing while you were posting.
July 22, 2010 at 10:36 am
First and foremost, I'd say that doing this is probably a bad idea. Im not sure if you're talking about updating the table (a really bad idea), or just...
July 22, 2010 at 9:44 am
Actually, you can blame me for the isnulls and the full outer joins. I am appropriately humbled. Hadn't heard of coalesce before, Im embarassed to say, and the...
July 20, 2010 at 2:01 pm
Just a heads up on this one to watch out for SQL injection vulnerabilities here. Just parsing a querystring in a stored procedure and using it to dynamically build...
July 19, 2010 at 3:23 pm
Are you connecting it to a reporting tool? Crystal or SSRS would probably do this easier than straight SQL, while providing nicer formatting.
Heck, even just doing a raw query...
July 16, 2010 at 3:09 pm
Could you post the script you have so far and the table definition? This one is a tad more complicated, and just easier to show using the actual parameters and...
July 16, 2010 at 1:23 pm
Viewing 15 posts - 571 through 585 (of 600 total)