![]() |
|
#1
|
|||
|
|||
Problem with SQL query (Inner Join)Hello to all.I have a problem with an SQL query. I want to link 3 tables and get the results from the database records.My query is as shown below but i cannot receive the records of the database. I also tried Left or Right Joins but the problem there is that although i receive the number of the records that are in table pilot_flight i do not receive all the fields from the other tables. I would appreciate any help. Thank you in advance.
Code:
|
|
#2
|
||||
|
||||
Re: problem with SQL query (Inner Join)Could there possibly be some missing IDs?
Using this sample data: Code:
Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: Problem with SQL query (Inner Join)As you can se from my query i wanted also to show the start date and the end date of the flights and with the query i provided i could not retrieve any single record from the database. The query worked finaly by making the following change. It seems strange to me but it worked. The change is
Code:
Thanks for the reply |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Trigger problem using MS SQL Server | amirand926 | MySQL / PHP Forum | 3 | 30-Jan-2008 15:19 |
| SQL query form | biggieuk | MySQL / PHP Forum | 2 | 28-Nov-2006 09:45 |
| Microsoft SQL Server :: SQL Server message 241, state 1, severity 16 | lyuboe | MySQL / PHP Forum | 0 | 11-May-2005 04:31 |
| Easy SQL query | jlee | MySQL / PHP Forum | 1 | 22-Jul-2004 07:15 |
| SQL multiple languages query | samtediou | MySQL / PHP Forum | 6 | 23-Jul-2003 13:09 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The