You are here: Whats wrong with my join statement? « MsSQL Server « IT news, forums, messages
Whats wrong with my join statement?

Posted by COHENMARVIN on 11/03/05 00:01

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

 

Navigation:

[Reply to this 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

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