PC Review


Reply
Thread Tools Rate Thread

very interesting query- please help

 
 
subs
Guest
Posts: n/a
 
      19th Feb 2008
Ost Ocity Dstate Dcity Carrier Price Rank Diff
A B C D X 1200 1 100
A B C D Y 1300 2 100
A B C D Z 1350 3 100
A B C D W 1789 4 100
A1 B1 C1 D1 X1 785 1
A1 B1 C1 D1 Y1 789 2
The rank for every carrier is based on the price . If rank1
carrier
is not a pariticular carrier(say if it is not X1 or
Y1 or Z1), then i want to calculate the difference between Price
corresponding to rank1 and price corresponding to rank2. and fill the
Diff column with the value. I want a query which can create that
difference coln ( last col) as in the above example. The first four
rows is one lane and the last two rows is another lane. For the
second
set of lane, the diff col will be empty because tthe carrier is X1.
Can somebody please help me in writing this query.

Thanks in advance
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
very interesting query- please help subs Microsoft Access Queries 0 19th Feb 2008 04:14 AM
my pc very very very slow help me =?Utf-8?B?amFrZXRoZWd1bm5lcg==?= Windows XP General 3 18th Mar 2005 01:43 AM
RIS - very very very very very slow =?Utf-8?B?TWF0dGhldyBFbGxpcw==?= Windows XP Setup 3 6th Dec 2004 11:58 PM
Help! Anyone! Please Please Please Please Please Please =?Utf-8?B?UmFuZHk=?= Microsoft Access Macros 2 17th May 2004 07:16 PM
Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! -$- Windows XP Internet Explorer 2 21st Dec 2003 11:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:17 PM.