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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -