So I have a table called QUEUE with the columns STUDENT_ID, S_NAME, PASSWORD I want to write an SQL statement to copy the values within only the first 2 columns (i.e. STUDENT_ID, S_NAME) to another table STUDENT with columns STUDENT_ID, S_NAME only.
I tried this
insert into student (student_id, s_name) as (student_id, s_name) from queue
I'm new to SQL so I'm pretty sure this is incorrect. Can someone please help me out with this? Thanks. :)