Connecting Tech Pros Worldwide Help | Site Map

Advance Query..Urgent

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:33 AM
Arijit Chatterjee
Guest
 
Posts: n/a
Default Advance Query..Urgent

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, 01:33 AM
Bruce Dodds
Guest
 
Posts: n/a
Default 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, 01:34 AM
Arijit Chatterjee
Guest
 
Posts: n/a
Default 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, 01:35 AM
Bruce Dodds
Guest
 
Posts: n/a
Default 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.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.