ACID
ACID (Atomicity, Consistency, Isolation, Durability) - It is used to ensure that the data transactions are processed reliably in a database system.
Aggregate vs Scalar functions
Aggregate functions are used to evaluate mathematical calculation and returns a single value. These calculations are done from the columns in a table. For example- MAX(), COUNT(), SUM().
Scalar functions return a single value based on the input value. For example – UPPER(), NOW().
ALIAS
Authentication modes. How can it be changed?
Windows mode and Mixed Mode
Auto Increment
BETWEEN vs IN
case manipulation functions
* LOWER: takes a string as an argument and returns it by converting it into lower case. LOWER(‘string’)
* UPPER: takes a string as an argument and returns it by converting it into uppercase. UPPER(‘string’)
* INITCAP: returns the string with the first letter in uppercase and rest of the letters in lowercase. INITCAP(‘string’)
CHAR vs VARCHAR2
CLAUSE in SQL
Clustered vs Non-clustered index
Clustered Index: * Physically stored the rows on the dick in the same order as the index * there can only be 1 cluster * faster to read from clustered index Non-Clustered Index: * a list that points to physical rows * can have many * takes time to write therefore slower than clustered index
Collation
Set of rules that determine how data can be sorted as well as compared.
Character data is sorted using the rules that define the correct character sequence along with options for specifying case-sensitivity, character width etc.
types of Collation Sensitivity
How can you fetch common records from two tables?
What are the various levels of constraints?
Constraints
CROSS JOIN vs NATURAL JOIN
Current date
* SELECT CURRENT_DATE;
Data Integrity
* refers to accuracy and consistency of data. * constraints helps with integrity when entered * business rules reinforcement
Datawarehouse
What is DBMS? What are its different types?
DELETE vs TRUNCATE
DELETE:
TRUNCATE:
Denormalization
select unique records from a table
You can select unique records from a table by using the DISTINCT keyword
Example:
SELECT DISTINCT studentID
FROM Student
DROP vs TRUNCATE
DROP
TRUNCATE