create table divorced_females
select cust_id, cust_first_name,cust_last_name, cust_gender, cust_marital_status from customers
where cust_gender = 'F' and cust_marital_status = 'divorced';
I am getting errors like below:
Error starting at line : 1 in command -
create table divorced_females
select cust_id, cust_first_name,cust_last_name, cust_gender, cust_marital_status from customers
where cust_gender = 'F' and cust_marital_status = 'divorced'Error report
ORA-00922: missing or invalid option
00922. 00000 - "missing or invalid option"
*Cause:
*Action:
Thank you in advance.
selectstatement? Such a statement is called a CTAS statement ("Create Table As Select ...") You are missing the keywordASbetween the table name and the keywordselect.