Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Queries

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-17-2006, 01:40 AM
maqza
Guest
 
Posts: n/a
Angry How to write query for this database?

SELECT price.code,price.price_date,price.price
FROM price
WHERE price.code=price.code
code Price_date Price
100 01/Jun/2006 2500
200 01/Jun/2006 3000
100 02/Jun/2006 2300
200 02/Jun/2006 2500
100 03/Jun/2006 5000
200 03/Jun/2006 4000
100 04/Jun/2006 1000
200 04/Jun/2006 2000
Actual i want to display like
Code, Price_date (currentdate) , Pricecurrent, (price_Date)Oldate-1, oldprice ( As per oldate)
like yesterdays price, and date
Thanks
Reply With Quote
Sponsored Links
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database slow down due to query? ddiver General 3 03-14-2005 01:07 PM
empty fields causing problems Christos Queries 2 04-27-2003 07:31 PM
Write Conflict Error when saving record edited in Query by Form? joe789 General 0 09-06-2002 01:37 PM
query source database grassaj Queries 0 03-01-2002 01:26 PM


All times are GMT -8. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World