Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. databanker

    Generate Daily Balance From Transaction Table

    rac2 "The amount is obtained with an expression using ISNULL, COALESCE, or CASE to show 0.00 for those days which have no transactions." Days w/o transactions are not necessarily 0.00 -> they are the current balance. Example: If you did not have a transaction on your bank account in a...
  2. databanker

    Generate Daily Balance From Transaction Table

    This is the data I have: Account Date Balance 1 1/1/2007 9 1 1/6/2007 17 1 1/11/2007 25 1 1/16/2007 0 1 1/21/2007 8 1 1/26/2007 16 1 1/31/2007 24 This is what I need: Account Date Balance 1 1/1/2007 9 1 1/2/2007 9 1 1/3/2007 9 1 1/4/2007 9 1 1/5/2007 9 1 1/6/2007 17 1 1/7/2007 17 1 1/8/2007...
  3. databanker

    Generate Daily Balance From Transaction Table

    I developed a query that creates a running balance from a transaction table. My issue is that I would like to establish an end of day balance for all 7 days of the week even if there are not transactions on a particular day. What is the best strategy to go from a running balance to an end of...
  4. databanker

    Increment Column Name

    Wow - this works perfectly.. quick too (Method 2)! Nice solution.
  5. databanker

    Increment Column Name

    This database is running on a 2000 box. I am trying to clean up what is currently 12 SQL statements. Dynamic SQL is what I was trying to pull off in my above example. UNPIVOT sounds very useful... wish I could use it.
  6. databanker

    Increment Column Name

    I agree! This is an import from a legacy system. I am building a new table that replaces rows for columns. Unfortunately, I have to extract monthly balance fields as individual columns thanks to my progress data source.
  7. databanker

    Increment Column Name

    I am trying to figure out how to increment a column name in a select statement. Basically I want one select statement to run against my 12 monthly balance fields (EOMB). The below code is what I have so far. Any advice is greatly appreciated. declare @counter int set @counter = 0 while...

Part and Inventory Search

Back
Top