exam questions

Exam 412-79v8 All Questions

View all questions & answers for the 412-79v8 exam

Exam 412-79v8 topic 1 question 52 discussion

Actual exam question from ECCouncil's 412-79v8
Question #: 52
Topic #: 1
[All 412-79v8 Questions]

A WHERE clause in SQL specifies that a SQL Data Manipulation Language (DML) statement should only affect rows that meet specified criteria. The criteria are expressed in the form of predicates. WHERE clauses are not mandatory clauses of SQL DML statements, but can be used to limit the number of rows affected by a SQL DML statement or returned by a query.

A pen tester is trying to gain access to a database by inserting exploited query statements with a WHERE clause. The pen tester wants to retrieve all the entries from the database using the WHERE clause from a particular table (e.g. StudentTable).
What query does he need to write to retrieve the information?

  • A. EXTRACT* FROM StudentTable WHERE roll_number = 1 order by 1000
  • B. DUMP * FROM StudentTable WHERE roll_number = 1 AND 1=1—
  • C. SELECT * FROM StudentTable WHERE roll_number = '' or '1' = '1‘
  • D. RETRIVE * FROM StudentTable WHERE roll_number = 1'#
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...