0% found this document useful (0 votes)
50 views1 page

Subquerry in Insert

This SQL statement attempts to insert a new record into the offc table by selecting the job, ename, and sal fields from the emp table where ename equals 'SMITH', and also tries to insert specific values for job, ename, and sal for a new record. However, it returns an error stating that the SQL command is not properly ended.

Uploaded by

Abhisek Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Subquerry in Insert

This SQL statement attempts to insert a new record into the offc table by selecting the job, ename, and sal fields from the emp table where ename equals 'SMITH', and also tries to insert specific values for job, ename, and sal for a new record. However, it returns an error stating that the SQL command is not properly ended.

Uploaded by

Abhisek Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

INSERT INTO offc(SELECT job,ename,sal

FROM emp
WHERE ename = 'SMITH')
VALUES ('PEON','AKHIL',1200)
/
--'SQL command not properly ended'

You might also like