SQL Commands Video Lecture | Question Bank for GATE Computer Science Engineering - Computer Science Engineering (CSE)

63 videos|8 docs|165 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on SQL Commands Video Lecture - Question Bank for GATE Computer Science Engineering - Computer Science Engineering (CSE)

1. What are the basic SQL commands?
Ans. The basic SQL commands include SELECT, INSERT, UPDATE, DELETE, CREATE, and DROP. These commands are used to retrieve data from a database, insert new data, update existing data, delete data, create new database objects, and drop existing objects, respectively.
2. How does the SELECT command work in SQL?
Ans. The SELECT command is used to retrieve data from one or more tables in a database. It allows us to specify the columns we want to retrieve and apply filters using the WHERE clause. For example, the query "SELECT column1, column2 FROM table_name WHERE condition" will retrieve the specified columns from the table based on the given condition.
3. What is the purpose of the INSERT command in SQL?
Ans. The INSERT command is used to insert new records into a table. It allows us to specify the columns and values that we want to insert. For example, the query "INSERT INTO table_name (column1, column2) VALUES (value1, value2)" will insert a new record with the specified values into the table.
4. How does the UPDATE command work in SQL?
Ans. The UPDATE command is used to modify existing records in a table. It allows us to specify the columns and new values that we want to update, as well as apply filters using the WHERE clause to update specific records. For example, the query "UPDATE table_name SET column1 = new_value WHERE condition" will update the specified column with the new value for the records that meet the given condition.
5. What is the purpose of the DELETE command in SQL?
Ans. The DELETE command is used to delete records from a table. It allows us to specify the conditions using the WHERE clause to delete specific records, or without the WHERE clause to delete all records in the table. For example, the query "DELETE FROM table_name WHERE condition" will delete the records that meet the given condition, while the query "DELETE FROM table_name" will delete all records in the table.
Explore Courses for Computer Science Engineering (CSE) exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

pdf

,

shortcuts and tricks

,

Summary

,

mock tests for examination

,

Semester Notes

,

Extra Questions

,

MCQs

,

study material

,

practice quizzes

,

ppt

,

Viva Questions

,

Exam

,

Objective type Questions

,

past year papers

,

SQL Commands Video Lecture | Question Bank for GATE Computer Science Engineering - Computer Science Engineering (CSE)

,

Sample Paper

,

Important questions

,

video lectures

,

SQL Commands Video Lecture | Question Bank for GATE Computer Science Engineering - Computer Science Engineering (CSE)

,

SQL Commands Video Lecture | Question Bank for GATE Computer Science Engineering - Computer Science Engineering (CSE)

,

Previous Year Questions with Solutions

,

Free

;