Hello,
The fallowing didn't work for me:
What;s the problem?Code:SELECT * FROM AccessLog as a, pr_departments as d WHERE a.lid = d.description;
Thank you.
| SitePoint Sponsor |
Hello,
The fallowing didn't work for me:
What;s the problem?Code:SELECT * FROM AccessLog as a, pr_departments as d WHERE a.lid = d.description;
Thank you.
Why It Doesn't Work?!


define "didn't work"
syntax error?
no syntax error, but no results?
results, but wrong rows?
acullay it worked after trying serveral hours :S
Why It Doesn't Work?!
From my experience with Oracle (Was a few years back), it'll have been the AS keyword, as I don't think Oracle supports it for creating aliases, you just simply put the alias name you want after the table name e.g.
SELECT * FROM AccessLog a, pr_departments d WHERE a.lid = d.description;
Karl Austin :: Profile :: KDA Web Services Ltd.
Business Web Hosting :: Managed Dedicated Hosting :: From £250/m
Personal Web Hosting :: Budget Web Hosting :: From £50/y
Call 0800 542 9764 today and ask about our Cloud Hosting Platform





Karl is correct. The As keyword in oracle is for renaming / aliasing a column.
e.g. select ename, sal*12 as AnnualPay from emp
replaces sal*12 with AnnualPay as the column heading.
Dr John
www.kidneydialysis.org.uk
Bookmarks