Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
frank.svs
Constraint Violating Yak Guru
368 Posts |
Posted - 2007-06-19 : 09:58:11
|
Hi,select EmployeeID,LastName,FirstName,Title from employees where country='UK' order by newid()UNION select EmployeeID,LastName,FirstName,Title from employees where country='USA' order by newid()Any Idea on this err:========================Server: Msg 156, Level 15, State 1, Line 2Incorrect syntax near the keyword 'UNION'. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-06-19 : 10:02:08
|
[code]select EmployeeID,LastName,FirstName,Title from employees where country='UK' order by newid()UNIONselect EmployeeID,LastName,FirstName,Title from employees where country='USA' order by newid()[/code] KH |
 |
|
|
|
|
|
|