SQL Error Codes and Fundamentals

Test your knowledge of SQL error codes, keys, and comparison clauses in database management

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

SQL470 error means?

  1. Stored Procedure Not Found
  2. General error
  3. Duplicate cursor name
  4. Option value changed
Question 2 Multiple Choice (Single Answer)

SQL300 error means?

  1. DDL not allowed on this table definition
  2. Column with this name already exists
  3. View's WITH CHECK OPTION validation failed in UPDATE
  4. One or more matching rows is locked by another user
Question 3 Multiple Choice (Single Answer)

SQL87 error means?

  1. Invalid field name
  2. Invalid table name
  3. Invalid index name
  4. Invalid view name
Question 4 Multiple Choice (Single Answer)

SQL64 error means?

  1. Cursor not updateable
  2. DISTINCT not valid in subquery of FROM clause
  3. Positive integer constant or variable expected
  4. Incompatible SELECT list is used in INSERT
Question 5 Multiple Choice (Single Answer)

SQL1401 error means?

  1. COMMAND NOT SPECIFIED
  2. ALREADY LOGGED IN
  3. SESSION DOES NOT EXIST
  4. None of these
Question 6 Multiple Choice (Single Answer)

SQL1224 error means?

  1. FAILED TO RETAIN COOPERATIVE TASK
  2. FAILED TO LOAD INFILE
  3. FAILED TO PUT SQL LOCK ON A TABLE
  4. FAILED TO LOCK RECORD FOR WRITING
Question 7 Multiple Choice (Single Answer)

SQL1117 error means?

  1. DISTINCT NOT ALLOWED
  2. GROUP BY index is not allowed
  3. HAVING is not an aggregate expression
  4. Column function is not allowed
Question 8 Multiple Choice (Single Answer)

SQL1145 error means?

  1. FOREIGN KEY DOES NOT EXIST
  2. FAILED TO CREATE FOREIGN KEY
  3. FOUND VIEW COLUMN
  4. INDEX ALREADY EXISTS
Question 9 Multiple Choice (Single Answer)

SQL3018 error means?

  1. UNEXPECTED HEADER VALUE
  2. INVALID AGENT SIGNATURE
  3. Both 1 and 2
  4. None of these
Question 10 Multiple Choice (Single Answer)

SQL3000 error means?

  1. UNKNOWN COMMAND
  2. ALREADY LOGGED IN
  3. NOT LOGGED IN
  4. HEADER NOT FOUND
Question 11 Multiple Choice (Single Answer)

SQL3001 error means?

  1. ALREADY LOGGED IN
  2. UNKNOWN COMMAND
  3. SOCKET READ ERROR
  4. INVALID AGENT SIGNATURE
Question 12 Multiple Choice (Single Answer)

SQL3017 error means?

  1. INVALID AGENT SIGNATURE
  2. STILL LOGGED IN
  3. INVALID STATEMENT ID
  4. HEADER NOT FOUND
Question 13 Multiple Choice (Single Answer)

SQL1816 error means?

  1. Failed to aggregate
  2. Failed to execute DISTINCT
  3. Failed to execute HAVING clause
  4. Failed to execute WHERE clause
Question 14 Multiple Choice (Single Answer)

SQL1724 error means?

  1. Failed to validate CASE expression
  2. Failed to execute UPDATE command
  3. Failed to calculate LIKE predicate pattern
  4. Failed to validate column list
Question 15 Multiple Choice (Single Answer)

SQL1513 error means?

  1. FAILED TO PARSE YEAR
  2. UNEXPECTED CHARACTER
  3. Failed to parse duration
  4. Failed to parse timestamp
Question 16 Multiple Choice (Single Answer)

SQL1432 error means?

  1. VARIABLE WAS NOT FOUND
  2. POINTER OF UNKNOWN TYPE
  3. RESULT IS NOT A SELECTION
  4. ARRAY NOT ALLOWED IN EXECUTE IMMEDIATE
Question 17 Multiple Choice (Single Answer)

SQL1203 error means?

  1. FUNCTIONALITY IS NOT IMPLEMENTED
  2. NO MORE JOIN SEEDS POSSIBLE
  3. Both 1 and 2
  4. None of these
Question 18 Multiple Choice (Single Answer)

SQL1004 error means?

  1. Access denied
  2. EXECUTION INTERRUPTED BY USER
  3. REMOTE SQL SERVER IS NOT AVAILABLE
  4. SQL SERVER IS NOT RUNNING
Question 19 Multiple Choice (Single Answer)

which is Not a Comparison clause ?

  1. LIKE
  2. IN
  3. BETWEEN
  4. ANY
Question 20 Multiple Choice (Multiple Answers)

Which key is related to SQL?

  1. Superkey
  2. Candidate key
  3. Primary key
  4. Composite key