Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SQL
INSERT INTO Owner
VALUES (1205, 'Wonderland', 'Alice',
'awonderland@domain.com') ;

UPDATE Player
salary = 1800000
WHERE player_id = 323

SELECT FROM Player
WHERE salary >1000000

DELETE FROM Owner
last_name = "Jones" AND first_name = "Jerry"

UPDATE Game
SET home_score = 17,
       visitors_score = 23

1st message: Missing semicolon (;) at end of SQL statement

2nd message: Characters found after end of SQL statement
Posted
Updated 26-Oct-15 22:05pm
v2
Comments
Messages are quite clear.
jaket-cp 28-Oct-15 5:29am    
I am just interested to know, is this homework or the like?
As these are rudimentary mistakes.
In any case solutions 1 and 2 should answer your question.
Juan Manuel Vigil Bardelli 28-Oct-15 16:35pm    
Hi,
Is my homework.
I never program anything in my life and this is again my homework.
Can you please help me?

SELECT;

INSERT INTO Owner
VALUES (1205, 'Wonderland', 'Alice';
'awonderland@domain.com');

UPDATE Player
salary = 1800000
WHERE player_id = 323;

SELECT FROM Player
WHERE salary > 1000000;

DELETE FROM Owner
last_name = "Jones" AND first_name = "Jerry";

UPDATE Game
WHERE
SET home_score = 17,
visitors_score = 23;
Now I'm getting a message:
"The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect."

I will be very thankful if you can help me if possible...

It seems there are few error in syntax. I tried to highlight those below:

INSERT INTO Owner
VALUES (1205, 'Wonderland', 'Alice',
'awonderland@domain.com') ;

UPDATE Player
SET salary = 1800000
WHERE player_id = 323 ;

SELECT FROM Player
WHERE salary > 1000000 ;

DELETE FROM Owner
WHERE last_name = "Jones" AND first_name = "Jerry" ;

Cautions: Below statement seems to be dangerous because it does not have where clause, so it will update all rows in Game table.

UPDATE Game
SET home_score = 17,
visitors_score = 23 ;
 
Share this answer
 
v3
Follow below CRUD Operation syntax while implement any query in SQL Server.

SQL
SELECT * FROM TABLENAME
WHERE CONDITIONS

INSERT INTO TABLENAME(COLUMNS)
VALUES(....)

UPDATE TABLENAME
SET COLUMN1 = YOURVALUE
WHERE CONDITIONS

DELETE FROM TABLENAME
WHERE CONDITIONS


because of mismatching syntax only you are getting the above errors, first correct your syntax obviously the errors has been resolved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900