Reply to Re: Whats wrong with my join statement?

Your name:

Reply:


Posted by Hugo Kornelis on 11/03/05 00:14

On 2 Nov 2005 14:01:52 -0800, COHENMARVIN wrote:

>The following sql statement is rejected by asp.net (working with sql
>server). It says something is wrong near "TableFlights". But I don't
>see anything wrong with it.
>Any help is appreciated:
>
>SELECT TableFlights.IdFlight, Concat = (TableFlights.OrganizerLastName
>+ ', ' + TableFlights.OrganizerFirstName + ' Flt:' +
>TableFlights.FlightNumber + ' on ' +
>Convert(char(10,TableFlights.FlightDate,101)) FROM TableFlights INNER
>JOIN TablePassengers ON TableFlights.IdFlight=TablePassengers.IdFlight
>Where TablePassengers.Email = 'marvin@micro-net.com' Order By
>TableFlights.OrganizerLastName, TableFlights.OrganizerFirstName
>
>-- Marvin

Hi Marvin,

You're missing one closing parenthesis.

==> char(10,TableFlights.

should be

==> char(10),TableFlights,

Best, Hugo
--

(Remove _NO_ and _SPAM_ to get my e-mail address)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация