Viewing 14 posts - 1 through 14 (of 14 total)
Thanks that was it.....
December 18, 2009 at 1:21 pm
Thanks... That seems to work except I get a conversion error.
TOTAL_AMOUNTdecimal(15, 2)
Conversion failed when converting the varchar value '$2847.00' to data type int.
December 16, 2009 at 2:38 pm
How would I get the results as MONEY? I've tried.
then '$' + CONVERT(money, total_amount)
But the $ does not show up for some reason.
current results 10495.00
Need $10,495.00
Any ideas on how...
December 15, 2009 at 3:08 pm
Awesome... Thank you very much... More arsenal for growing bag of SQL knowledge.
December 9, 2009 at 12:55 pm
lol.. Yup there is a quantity... Duhhh sorry..
December 8, 2009 at 12:07 pm
Wow! Much cleaner.
I just added this to my new SQL utility belt.
Thanks...
December 8, 2009 at 12:00 pm
Thanks for the reply.
I Thought if I changed SUM to COUNT I would get the number of items(counts) for each month instead of the totals. but It just gave...
December 8, 2009 at 11:49 am
How would I change this from SUM to COUNT? I changed it but it gives me total count on every month.
Works good with SUM:
62 IN X 8 LProfile Dump 5K...
December 8, 2009 at 9:21 am
Any luck with the query? I read the page of the link you sent. Not sure how to implement this in my project.
SUCKS being a noooob at SQL. But...
December 3, 2009 at 8:29 am
Awesome! thanks.. Going to read the article tonight.
December 2, 2009 at 2:53 pm
sorry. yes TOTAL_AMOUNT from the TABLE RECEIVABLE.
I was using the stored procedure below but I cannot use pivot tables because our ERP system requires 2000 compatibility (80).
@CustomerID ...
December 2, 2009 at 11:26 am
The results I'm looking for are the totals for each month of each year.
Jan Feb ...
November 30, 2009 at 7:45 am
Please forgive my newbee SQL status.. :w00t:
I have the following database structure and data:
CREATE TABLE CUSTOMER_ORDER
(
ROWID INT ,
ID varchar(15) ,
CUSTOMER_ID varchar(15),
STATUS char(1),
USER_1 varchar(80),
USER_2 varchar(80)
)
CREATE TABLE DEMAND_SUPPLY_LINK
(
ROWID INT ,
SUPPLY_BASE_ID varchar(30),
DEMAND_BASE_ID varchar(30)
)
CREATE...
October 15, 2009 at 11:43 am
Thank you very much.. That's exactly what i was looking for.
May 19, 2008 at 2:50 pm
Viewing 14 posts - 1 through 14 (of 14 total)