SQL Interview Questions
US$ 19.95
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews
Language
English
ISBN
9789389328462
Cover Page
Title Page
Copyright Page
Dedication
About the Author
About the Reviewer
Acknowledgement
Preface
Errata
Table of Contents
1. Database and SQL Basics
Introduction
Data, database, and DBMS
Usage of database
Different types of DBMS
Navigational DBMS (Hierarchical DBMS)
Network DBMS
Relational DBMS (RDBMS)
Object-oriented database management (OODBMS)
Object-relational database management system (ORDBMS)
No-SQL databases
Structured Query Language (SQL)
Data Definition Language (DDL)
Data Manipulation Language (DML)
Data Control Language (DCL)
Transaction Control Language (TCL)
Usage of SQL
SQL query execution plan
SQL tables
Advantages and disadvantages of SQL
Rapid fire questions and answers
Conclusion
Do you know (lights on fact?)
2. SQL Statements, Keywords, and Datatype
Prerequisite for this chapter
Structure
SQL keywords
SQL datatypes
Numerical SQL datatypes
Exact numeric
Approximate numeric
The string and char SQL datatypes
Character string
Unicode string
Binary string
Date and time SQL datatypes
Date
Time
Datetime
Miscellaneous SQL datatypes
SQL statements
DDL statement
Create
Alter
Drop
Truncate
DML statement
Insert
Update
Delete
Select
Conclusion
Rapid fire questions and answers
Do you know (lights on fact?)
3. SQL Statements and Clauses
Introduction
Structure
Objective
Data Control Language (DCL) statement
GRANT command
Transaction Control Language (TCL) statement
COMMIT command
ROLLBACK command
SAVE command
WHERE clause
FROM clause
DISTINCT clause
ORDER BY clause
GROUP BY clause
HAVING clause
Conclusion
Rapid-fire questions and answers
Do you know (lights on fact?)
4. SQL Operators
Introduction
Structure
Objective
Types of operators
Arithmetic operators
+ (for addition)
- (for subtraction)
* (for multiplication)
* (for division)
% (for modulo)
Comparison operators
= (Equals)
> (Greater than)
< (Less than)
>= (Greater than or equal to)
>= (Less than or equal to)
<> (Not equal to)
ANSI_NULL
SOME
Logical operators
AND operator
OR operator
BETWEEN operator
IN operator
ALL operator
ANY operator
EXISTS operator
NOT operator
Assignment operators
Bitwise operators
Set operator
EXCEPT
INTERSECT
UNION
String concatenation operator
Conclusion
Rapid fire questions and answers
Do you know (lights on fact?)
5. SQL Functions and Wildcards
Structure
Objective
SQL functions
Configuration functions
SET DATE FIRST
@@DATEFIRST
@@DBTS
@@LANGUAGE
@@LANGID
@@MAX_CONNECTIONS
@@LOCK_TIMEOUT
@@MAX_PRECISION
@@REMSERVER
@@SERVERNAME
@@ SERVICENAME
@@VERSION
@@TEXTSIZE
Conversion functions
CAST
CONVERT
TRY_CAST
Cursor functions
Logical functions
Mathematical functions
ABS
CEILING
COS
COT
EXP
FLOOR
LOG
LOG10
POWER
RAND
ROUND
SQUARE
SQRT
TAN
Aggregate functions
AVG
COUNT
MAX
MIN
SUM
Metadata functions
COL_LENGTH
APP_NAME()
DB_NAME()
Security functions
CURRENT_USER
HAS_DBACCESS
IS_MEMBER
String functions
ASCII
LEFT
LEN
LOWER
Wildcards in SQL
% character
_ character
[] character
Conclusion
Rapid fire questions and answers
Do you know (lights on facts?)
6. SQL Dates Joins and Case
Introduction
Structure
Objective
SQL date related functions
SYSDATETIME
SYSDATETIMEOFFSET
SYSUTCDATETIME
CURRENT_TIMESTAMP
GETDATE
DATENAME
DATEPART
YEAR/MONTH/DAY
DATEDIFF
DATEDIFF_BIG
DATEADD
ISDATE
SQL joins
Inner join
Left-outer join
Right-outer join
Full-outer join
Cross join
CASE statement in SQL
Conclusion
Rapid fire questions and answers
Do you know (lights on facts?)
7. SQL DDL, DCL, and DTL Statements
Structure
Objective
DDL, DCL, and DTL statements
CREATE statement
DROP statement
ALTER statement
TRUNCATE statement
GRANT statement
REVOKE statement
COMMIT TRANSACTION statement
ROLLBACK TRANSACTION statement
Attaching and de-attaching a database
Attaching a database
Using SQL Management Studio
Using SQL Query analyzer
De-attaching a database
Using SQL Management Studio
Using SQL Query analyzer
Conclusion
Rapid fire questions and answers
Do you know (lights on facts?)
8. SQL Stored Procedure and Triggers
Structure
Objective
SQL stored procedure
Types of SQL stored procedure
System/inbuilt stored procedure
Catalog SP
Db Engine SP
Security SP
User defined stored procedure
Temporary procedure
Creating stored procedure (SP)
Modifying stored procedure (SP)
Deleting stored procedure (SP)
Executing stored procedure (SP)
Renaming stored procedure (SP)
SQL triggers
DML triggers
Creating a trigger
Executing trigger
Deleting and renamingtrigger
DDL triggers
Conclusion
Questions
Do you know (lights on facts?)
9. SQL Views, Keys, Indexes, Injections, and Constraints
Structure
Objective
SQL view
Types of SQL view
Indexed views
Partitioned views
System views
Creating a SQL view
Updatable view
Partitioned view
Modifying view
Deleting view
Deleting a view using SQL Management Studio
Deleting view using SQL Query analyzer
Identity column
Using SQL Management Studio
Using SQL Query analyzer
@@identity
SQL keys and its types
Primary key
Using SQL Management Studio
Using SQL Query analyzer
Candidate key
Unique key
Composite key
Foreign key
Using SQL Management Studio
Using SQL query analyzer
Superkey
Alternate key
SQL indexes and its types
Clustered index
Non-clustered index
SQL injection
How SQL injection attack carried out?
Using OR 1=1 condition
Using “or” “=”
Using batch SQL queries
Preventing SQL injection
SQL constraints
Conclusion
Questions
Do you know (lights on facts?)
10. SSRS, SSIS, SQL Cloud Database (Azure) and JSON Support
Structure
Objective
SQL reporting services (SSRS)
Mobile reports
SSRS benefits and drawbacks
Alternative to SSRS
Usage of SSRS
SQL Integration Services (SSIS)
SSIS architecture
Data flow
Control flow
SSIS package
Usage of SSIS
Cloud DB (Azure DB)
JSON support
Conclusion
Questions
Do you know (lights on facts?)
11. New Features of SQL 2016, 2017, 2019
Introduction
Structure
Objective
New features of SQL 2016
SQL Server edition
Secure encryption
Data masking
Support to JSON
Auto temp DB
Secure your row
Stretch database concept for cloud DB
Query store
Temporal database
Working with R
New features of SQL 2017
Automatic tuning
Correct identity
Graph database
Cross database connectivity
DTA (database tuning advisor)
Machine learning
Wide-ranging Linux support
New string functions introduced in SQL 2017
STRING_AGG
TRIM
CONCAT_WS
TRANSLATE
Features of SQL 2019
Index encrypted columns
Transparent data encryption scan
SSL/TLS certificates
Big Data cluster
New graph function shortest path
Partition tables and indexes
OPTIMIZE_FOR_SEQUENTIAL_KEY
Build and rebuild online clustered column store index
Hybrid buffer pool
Query external tables
VERBOSE_TRUNCATION_WARNINGS
Accelerated database recovery
Conclusion
Questions
Do you know (lights on facts?)
12. Fuzzy Interview Questions and SQL Performance Tips
Structure
Objective
Performance improvement tips for SQL server
SQL tips
Fuzzy interview questions and answers
Index
Loading...