COMMON FUNCTIONS IN SQL Flashcards
USED TO EXECUTE TASKS SUCH AS INSERTING DELETING OR UPDATING RECORDS
ACTION QUERIES
A QUERY THAT MAKES A NUMBER OF CHANGES TO VARIOUS RECORDS USING A SINGLE OPERATION
ACTION QUERY
WHAT ARE THE 4 TYPES OF ACTION QUERIES
DELETE,APPEND,UPDATE AND MAKE-TABLE
IS USED TO DELETE A GROUP OF RECORDS IN ONE OR MORE TABLES
ACTION QUERY FOR DELETE
DELETED USING THE DELETE QUERY IT CANNOT BE UNDONE, THUS CAUTION SHOULD BE EXERCISED ALL THE TIME.
-ONCE A RECORD
ENSURE THAT YOU HAVE A FALLBACK IF YOU DELETE THE WRONG RECORDS
ALWAYS MAKE A BACKUP COPY OF YOUR DATA
PERFORMING A DELETE QUERY MAY DELETE RECORDS IN RELATED TABLES
CHECK THE DEPENDENCIES OF YOUR TABLES BEFORE USING THE DELETE QUERY
APPENDS A GROUP OF RECORDS TO THE END OF THE TABLE FOR EXAMPLE IF WE WANT TO ADD NEW STUDENT NAMED “AND BROWN” WE USE THE ACTION QUERY FOR INSERT
ACTION QUERY FOR INSERT
MAKES AN UPDATE TO A GROUP OF RECORDS IN THE EXISTING SINGLE OR MULTIPLE TIMES
ACTION QUERY FOR UPDATE
ONCE AN UPDATE ACTION QUERY IS EXECUTED YOU WILL NOT BE ABLE TO RETRIEVE THE PREVIOUS DATA
ACTION QUERY FOR UPDATE
TO BUILDS A NEW TABLE FROM ALL OR SOME OF THE DATA IN OTHER TABLES
ACTION QUERY FOR MAKE-TABLE