Hi,
following is my sql query
select acode.vcassociatename,pd.vcplacenames,pd.inday,pd.vcpackagecode,pe.vcpackagename,pe.vcallplacenames from packagedetails pd,packageextras pe,associates acode where pe.vcpackagecode=pd.vcpackagecode and pe.vcassociatecode=acode.vcassociatecode and pe.vclanguage='english' order by pd.inday
this is working fine.
but i need the distinct values.
i try this example
select distinct(acode.vcassociatename),distinct(pe.vcallplacenames),distinct(pd.vcpackagecode),distinct(pe.vcpackagename)from packagedetails pd,packageextras pe,associates acode where pe.vcpackagecode=pd.vcpackagecode and pe.vcassociatecode=acode.vcassociatecode and pe.vclanguage='english'
error is showing
this is the error
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'distinct'.
what is the correct query
Regards
K L BAIJU