Viewing 15 posts - 13,291 through 13,305 (of 15,381 total)
Not sure if you want left or right padding so I will take a stab that you want them right filled. Let's say you have AccountNum of variable length and...
January 3, 2012 at 1:42 pm
Can you post a sample of your spreadsheet and what the desired result is from that data? It is pretty hard to figure out details of what you are doing...
January 3, 2012 at 1:21 pm
Like I said too, if you have identity columns and those values are referenced in other tables....how can you maintain a script of that? Let's say you have tablea with...
January 3, 2012 at 10:39 am
Do you have any large tables? The size of the scripts are going to become unwieldy as the amount of data increases. What happens when somebody accidentally removes some inserts...
January 3, 2012 at 10:30 am
That seems like a recipe for disaster to me. Not to mention deployments could take hours instead of minutes when all objects and data have to be scripted. That seems...
January 3, 2012 at 10:21 am
Ever done any programming? A stored procedure is just a method. It takes in some parameters (optionally), performs some work, and returns something (optional). Any books I would have used...
January 3, 2012 at 9:38 am
daninmanchester (1/3/2012)
So lets assume I've plugged the date gaps using a calendar table.
If I do something like this :
SELECT tbl_Calendar.Date, Min(tbl_Report.MyValue) as MyVal
FROM...
January 3, 2012 at 9:30 am
Sean Grebey-262535 (1/3/2012)
(Ceiling(CAST((E.[MED Acct# - Participant's Annual Election]/26) as Money) * 100)/100)Seemed to do it. Thanks for the help.
This would do it too. 😉
January 3, 2012 at 8:34 am
Sean Grebey-262535 (1/3/2012)
That will just round. How do I round up? Thanks!
Something like this?
select cast(ROUND(col1 + .005, 2) as decimal(9,2)), * from #MyTable
Of course rounding up is not actually rounding....
January 3, 2012 at 8:33 am
daninmanchester (1/3/2012)
There isn't a real table yet, but there will be no nulls just missing dates in the range as in the example I gave.
Then I will assume you want...
January 3, 2012 at 8:22 am
Sean Grebey-262535 (1/3/2012)
January 3, 2012 at 8:17 am
Your post raises more questions to those of us wanting to help that we could answer. It is unclear if your table has records for all the dates but the...
January 3, 2012 at 8:02 am
They really aren't that different than procedures in Oracle. There are a few syntax differences but the concepts are 100% the same.
January 3, 2012 at 7:56 am
Sean Grebey-262535 (1/3/2012)
January 3, 2012 at 7:53 am
Viewing 15 posts - 13,291 through 13,305 (of 15,381 total)