Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SYNTAX
Message
From
11/04/2001 05:14:30
 
 
To
11/04/2001 04:50:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00494306
Message ID:
00494337
Views:
17
PMFJI,

Mohammed,

I think because you are doing this in SQL server the syntax is slightly different (SQL is less flexible with the ordering of some commands).

First things first,

Try and get the second select working on it's own
select distinct au_lname from authors having count(*)>1 group by au_lname
I think you need to put the having AFTER the group by eg.
select distinct au_lname from authors group by au_lname having count(*)>1
>Cetin
>
>Hello it does not worked
>
>select * from au_lanme where au_lname in
> (select distinct au_lname from authors having count(*)>1 group by au_lname)
>
>
>The Error Is
>
>Server: Msg 156, Level 15, State 1, Line 2
>Incorrect syntax near the keyword 'group'.
>
>
>Thanks
>Mohammed
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform