Viewing 15 posts - 1 through 15 (of 21 total)
Sorry about the confusion,
I would like the query to return 1 row per departure airport, preferably the one with the cheapest price.
Thanks again
May 13, 2008 at 4:59 am
Any which the departure date is greater than todays date and WHERE City.name (when joined with the City table) LIKE 'B%'.
I limit the returned results to 20 as they are...
May 13, 2008 at 4:42 am
Hi Gail,
Unfortunatley the query I thought was working the way I wanted it seems to not pull out all the flights available to the various destinations for each departure airport....
May 12, 2008 at 10:29 am
Thanks for posting that, gives me the results that I want.
I've never used the sql snippet below before:
ROW_NUMBER() OVER PARTITION BY
so it's gave me something to look into as...
May 12, 2008 at 6:51 am
The two Stansteds are because they have different destinations. You want only 1 row per departure airport, regardless of where the flight is going?
Yes that would be great.
I think the...
May 12, 2008 at 5:31 am
It would probably be the one corresponding to the cheapest price, but it would be handy to know how to display any one at random also.
Thanks again
May 9, 2008 at 7:45 am
ok thanks again for the help and advice Peso.
Thanks Jack also for advising on other solutions and methods of achieving this.
Cheers Mark 🙂
March 27, 2008 at 9:29 am
Thanks Peso,
the function works a treat!
I noticed the function Numeric(18,4) for returning the money value.
I understand (18,4) has to do with the decimal point.
Can I ask a...
March 27, 2008 at 7:02 am
Yes it is, the only thing I had to do was add distinct to the select statement and of course rearrange some of the columns.
Thanks again for your help
November 6, 2007 at 9:07 am
Thanks for your help John, the SQL statement does the insert in 12 seconds.
Good work! 😀
November 6, 2007 at 8:57 am
Viewing 15 posts - 1 through 15 (of 21 total)