Connecting Tech Pros Worldwide Help | Site Map

Advance Query..Urgent

  #1  
Old November 13th, 2005, 02:33 AM
Arijit Chatterjee
Guest
 
Posts: n/a
Dear All,
I have written a query in Oracle.It is actually doing a running sum
for a particular field.I am giving the query details
================================================== ===========
select
accountcode,
datefield,
voucherkey,
drcr,
amount,
sum(decode(drcr,1,amount,amount*(-1))) over
(partition by accountcode order by datefield, voucherkey) as RunnigSum
from Accounts
================================================== ===========
But I need the equivalent query in MS Access.But I didn't get the feature
"partition by".Please advice me how to move..
Regards
Arijit Chatterjee
  #2  
Old November 13th, 2005, 02:33 AM
Bruce Dodds
Guest
 
Posts: n/a

re: Advance Query..Urgent


Arijit Chatterjee wrote:[color=blue]
> Dear All,
> I have written a query in Oracle.It is actually doing a running sum
> for a particular field.I am giving the query details
> ================================================== ===========
> select
> accountcode,
> datefield,
> voucherkey,
> drcr,
> amount,
> sum(decode(drcr,1,amount,amount*(-1))) over
> (partition by accountcode order by datefield, voucherkey) as RunnigSum
> from Accounts
> ================================================== ===========
> But I need the equivalent query in MS Access.But I didn't get the feature
> "partition by".Please advice me how to move..
> Regards
> Arijit Chatterjee[/color]

Look up "crosstab queries" in Help to get the Access SQl equivalent to
"partition by".

I don't believe it's possible to do running totals in queries, though
you can do them in reports via the RunningSum text box property.


  #3  
Old November 13th, 2005, 02:34 AM
Arijit Chatterjee
Guest
 
Posts: n/a

re: Advance Query..Urgent


Thanks for the response.But I don't need the "Cross Tab" output.Can
anyone tell me what the substitute of Trigger in MS Access.If I am
inserting some data to a particular table.Is there any way to identify
that from database end.
Regards
Arijit Chatterjee
  #4  
Old November 13th, 2005, 02:35 AM
Bruce Dodds
Guest
 
Posts: n/a

re: Advance Query..Urgent


Arijit Chatterjee wrote:[color=blue]
> Thanks for the response.But I don't need the "Cross Tab" output.Can
> anyone tell me what the substitute of Trigger in MS Access.If I am
> inserting some data to a particular table.Is there any way to identify
> that from database end.
> Regards
> Arijit Chatterjee[/color]


No, there is not.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve this sql query urgent DineshGa answers 1 March 24th, 2008 06:33 AM
Query Save Error imnewtoaccess answers 2 July 30th, 2007 08:57 PM
How To Find SQL QUERY EXECUTION TIME - Very urgent Please Help Balamurugan Ranganathan answers 0 May 4th, 2007 05:34 AM
Problem With Php Insertion From List! Urgent TKB answers 2 December 1st, 2006 09:08 PM