Following is my query in which I am making insertion in one table and some specific values from another table. Kindly let me know what is an appropriate way to write such a query. Thank,
Insert into c_table (name,number,class)
values ('1','2',select count(id) from thetable)