Forum Replies Created

Viewing 15 posts - 13,291 through 13,305 (of 15,381 total)

  • RE: Excel Source to Flat File Destination

    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...

  • RE: SQL Query to parse data

    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...

  • RE: recreate database for every change and deployment

    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...

  • RE: recreate database for every change and deployment

    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...

  • RE: recreate database for every change and deployment

    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...

  • RE: Stored Procedures - Need to learn from the ground up!

    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...

  • RE: Help with Stored Procedure

    Count() and Group By

  • RE: Date range query , filling in missing values

    daninmanchester (1/3/2012)


    Great, a calendar table is a good idea.

    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...

  • RE: Cast as Money

    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. 😉

  • RE: Cast as Money

    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....

  • RE: Date range query , filling in missing values

    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...

  • RE: Cast as Money

    Sean Grebey-262535 (1/3/2012)


    Yeah, it puts 4 digits in. That seems a bit silly. How can you have $96.1538? I need it to represent actual money payments. Any thoughts on how...

  • RE: Date range query , filling in missing values

    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...

  • RE: Stored Procedures - Need to learn from the ground up!

    They really aren't that different than procedures in Oracle. There are a few syntax differences but the concepts are 100% the same.

  • RE: Cast as Money

    Sean Grebey-262535 (1/3/2012)


    I am trying to divide a column by 26 and cast the result as Money for an Update/Select SQL Query. I'm just figuring out the select part first,...

Viewing 15 posts - 13,291 through 13,305 (of 15,381 total)