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...
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...
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.
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.