Home › Exam notes › IBPS Banking › Database / SQL Basics
Database / SQL Basics
Reasoning & Computer Aptitude · Office, Database & Networking
Useful for: IBPS Banking
Overview
A database stores related data in tables; SQL is the language used to define, query and change it.
Key points
- DBMS manages databases; RDBMS stores data in related tables.
- Primary key uniquely identifies each row; foreign key links to another table’s primary key.
- DDL: CREATE, ALTER, DROP; DML: SELECT, INSERT, UPDATE, DELETE; DCL: GRANT, REVOKE.
- DELETE removes rows; DROP removes the whole table.
- Normalisation reduces redundancy.
Explanation
- A row is also called a record or tuple; a column a field or attribute.
- WHERE filters rows; ORDER BY sorts results.
- Banks use databases for accounts, transactions and customer records.
- Backups protect databases from loss.
Step by step
- Identify the term or device asked.
- Recall its definition or function.
- Eliminate options from other categories.
Examples
- The key that links two tables → foreign key.
- The SQL command that removes an entire table → DROP.
- SELECT belongs to → DML.
Traps and advanced points
- Trap: Mixing DELETE and DROP.
- Trap: Calling a column a record.
- Trap: Thinking a primary key can repeat.
Quick revision
- PK unique; FK links.
- DDL/DML/DCL.
- DELETE rows, DROP table.
Practice MCQs
Computer awareness: “SQL” is best matched with:
- Structured Query Language
- service that indexes/retrieves web information
- transforming data using a key to protect confidentiality
- Uniform Resource Locator
Read chapter notes · Similar questions
Show answer
Answer: (a) Structured Query Language. SQL” is best matched with Structured Query Language.
Computer awareness: “DBMS” is best matched with:
- Arithmetic Logic Unit
- Database Management System
- transforming data using a key to protect confidentiality
- Comma-Separated Values
Read chapter notes · Similar questions
Show answer
Answer: (b) Database Management System. DBMS” is best matched with Database Management System.
A primary key —
- uniquely identifies each row
- links to another table only
- stores images
- deletes data
Read chapter notes · Similar questions
Show answer
Answer: (a) uniquely identifies each row. Unique identifier.
A foreign key —
- links to another table’s primary key
- is always unique
- deletes rows
- is a password
Read chapter notes · Similar questions
Show answer
Answer: (a) links to another table’s primary key. Relationship.
Which is a DDL command?
- SELECT
- CREATE
- INSERT
- UPDATE
Read chapter notes · Similar questions
Show answer
Answer: (b) CREATE. Also ALTER, DROP.
Which is a DML command?
- DROP
- SELECT
- GRANT
- CREATE
Read chapter notes · Similar questions
Show answer
Answer: (b) SELECT. Also INSERT, UPDATE, DELETE.
Which is a DCL command?
- INSERT
- GRANT
- SELECT
- ALTER
Read chapter notes · Similar questions
Show answer
Answer: (b) GRANT. Also REVOKE.
DELETE removes —
- the database
- columns only
- rows
- the whole table structure
Read chapter notes · Similar questions
Show answer
Answer: (c) rows. Rows.
RDBMS stores data in —
- related tables
- one text file
- images
- folders only
Read chapter notes · Similar questions
Show answer
Answer: (a) related tables. Tables.
Normalisation mainly reduces —
- size of keys
- redundancy
- speed
- security
Read chapter notes · Similar questions
Show answer
Answer: (b) redundancy. Duplication.
More topics in this chapter
Notes and questions are written by Kundali IQ for practice. They are not official papers; always check the latest official notification for the syllabus and pattern.