sql server 2008 - sql query with create command -


this question has answer here:

i having problem in creating table table. using query:

create table new_table ( select distinct * old-table) 

its giving error

incorrect syntax near keyword 'as'. 

select distinct * new_table  old-table  group whatever want group by

edit: can cast rows varchar, comparable, or can group column values want distinct.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -