Question: Using SQL Statement/Script/Query. Each Items Worth 5 Points
The document contains 20 multiple choice questions about SQL (Structured Query Language). It asks about SQL fundamentals like what SQL stands for, basic SQL commands like SELECT, UPDATE, DELETE, and INSERT. It also contains questions about performing queries with conditions, sorting results, creating databases, tables, and user logins.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
59 views1 page
Question: Using SQL Statement/Script/Query. Each Items Worth 5 Points
The document contains 20 multiple choice questions about SQL (Structured Query Language). It asks about SQL fundamentals like what SQL stands for, basic SQL commands like SELECT, UPDATE, DELETE, and INSERT. It also contains questions about performing queries with conditions, sorting results, creating databases, tables, and user logins.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Name: Date:
Course/Section:
Question: Using SQL Statement/Script/Query. Each items worth 5 points.
1. What does SQL stand for?
2. What SQL statement command is used to extract data from a database? 3. What SQL statement command is used to update data in a database? 4. What SQL statement command is used to delete data from a database? 5. What SQL statement command is used to insert new data in a database? 6. With SQL, how do you select/extract only column named "FirstName" from a table named "Persons"? 7. Define typical connection string looks like and create a connection string whereas the server is Exam2 then the Database is Question4. 8. In your own understanding define SQL Injections. 9. Site at least five companies the fallen victims or included in the SQL Injection Hall of Shame. 10. In new query/script of SSMS. Write an SQL command that will create a new database name “Exam2”. (output query script) 11. Write an SQL command that will delete a database name “ExamNumber2”. 12. Write an SQL command that will create a table name ExamNoTwo with the following columns ExamID, Question1 up to Question 10, DateAnswered, SubmittedBy and Status, then specify the correct data type and one primary key. 13. Write an SQL Statement that will add additional column ApplicationName in the table ExamNoTwo. 14. With SQL, write SQL command on how do you select all the columns from a table named "Persons"? 15. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is totally equal to "Peter"? 16. With SQL, how do you select all the records from a table named "Persons" where the value of the column "LastName" starts with an "Ex"? 17. With SQL, how do you select all the records from a table named "Persons" where the "FirstName" exactly equal to "Peter" and "LastName" is similar to "Jack"? 18. What SQL command keyword is used to sort the result-set? 19. With SQL, how can you return all the records from a table named "Persons" sorted descending by "MiddleName"? 20. Write an SQL statement that will create new login “Exam2_User” and delete login “Exam_User”