K
KG
I am doing a query operation. Over here, i have 4 fileds. One of the
is Name,transactionType,weight and some calculation filed. I need t
query all the names transaction type whose weight is less than 100
this is done.
Problem is I need to output all others whose weight is less than 100
thats ok. but i have to sort according to the transaction type an
replace the name as "others" in the quer
this is my query
SELECT username='Others' AS Others, dbo_trans.transtype A
[Transaction Type], Count(dbo_trans.trans) AS [Total Transactions]
Sum(Abs([dbo_trans].[weight]))/44000 AS TL
FROM dbo_tran
WHERE (((dbo_trans.datetime)>=[Start Date (mm/dd/yyyy)] An
(dbo_trans.datetime)<=DateAdd("d",1,[End Date (mm/dd/yyyy)]))
GROUP BY dbo_trans.transtype, dbo_trans.usernam
HAVING ((Count(dbo_trans.trans))<50)
this changes the column name but not the column contents
K
is Name,transactionType,weight and some calculation filed. I need t
query all the names transaction type whose weight is less than 100
this is done.
Problem is I need to output all others whose weight is less than 100
thats ok. but i have to sort according to the transaction type an
replace the name as "others" in the quer
this is my query
SELECT username='Others' AS Others, dbo_trans.transtype A
[Transaction Type], Count(dbo_trans.trans) AS [Total Transactions]
Sum(Abs([dbo_trans].[weight]))/44000 AS TL
FROM dbo_tran
WHERE (((dbo_trans.datetime)>=[Start Date (mm/dd/yyyy)] An
(dbo_trans.datetime)<=DateAdd("d",1,[End Date (mm/dd/yyyy)]))
GROUP BY dbo_trans.transtype, dbo_trans.usernam
HAVING ((Count(dbo_trans.trans))<50)
this changes the column name but not the column contents
K