|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
ORA-00905 Missing Keyword
Hi everyone, I am a newbie with Oracle and I am receiving ora-00905 missing keyword error.
Can anyone tell me what could possibly be wrong with this SQL statement? Select T1.*, T2.* From Table1 T1 INNER JOIN Table2 T2 On T1.File_Name = T2.File_Name And T1.Downloaded_Date = T2.Act_Date INNER JOIN (Select File_Name, Max(DownLoaded_Date) as Max_Date From Table1 Group By File_Name) as T3 On T1.File_Name = T3.File_Name And T1.Downloaded_Date = T3.Max_Date Where T1.File_Desc = 'LEVY' I am trying to select the maximum dates from 2 different tables and I am using Oracle 10. Any help would be greatly appreciated. Thanks!! |
|
#2
|
|||
|
|||
|
Oracle does not allow a table alias with AS. Try to leave out the AS for the inline view:
(Select File_Name, Max(DownLoaded_Date) as Max_Date From Table1 Group By File_Name) T3 |
|
#3
|
|||
|
|||
|
Works beautiful!!!!!!!!!
Thank you so much!! |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > ORA-00905 Missing Keyword |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|