Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
26 views

SQL Syllabus R1

The document outlines a T-SQL syllabus covering topics such as SQL statements for creating, altering, and manipulating databases, tables, and data. It includes sections on data types, constraints, queries, joins, subqueries, transactions, views, built-in functions, and stored procedures. The syllabus covers the major SQL statements and features needed to effectively work with Microsoft SQL Server databases.

Uploaded by

gk.mobm33
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

SQL Syllabus R1

The document outlines a T-SQL syllabus covering topics such as SQL statements for creating, altering, and manipulating databases, tables, and data. It includes sections on data types, constraints, queries, joins, subqueries, transactions, views, built-in functions, and stored procedures. The syllabus covers the major SQL statements and features needed to effectively work with Microsoft SQL Server databases.

Uploaded by

gk.mobm33
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

T-SQL Syllabus

Topics:

1. SQL CREATE Database

2. DROP or DELETE Database

3. SQL SELECT Database

4. SQL USE Statement

5. SQL CREATE Table

6. SQL Data Types

7. Using AUTO_INCREMENT column

8. SQL ALTER TABLE Statement

9. SQL TRUNCATE TABLE

10. SQL DROP or DELETE Table

11. SQL INSERT Query

12.SQL UPDATE Statement

13. SQL DELETE Statement

14. SQL Constraints

15. NOT NULL Constraint

16. DEFAULT Constraint

17. Drop Default Constraint

18. UNIQUE Constraint

19. DROP a UNIQUE Constraint

20. PRIMARY Key


21. Composite key.

22. FOREIGN Key

23. DROP a FOREIGN KEY Constraint

24. CHECK Constraint

25. DROP a CHECK Constraint

26. SQL SELECT Query

a. SQL Arithmetic Operators

b. SQL Comparison Operators

c. SQL Logical Operators

d. SQL Expressions (Boolean , Numeric , Date )

e. SQL WHERE Clause

f. SQL HAVING CLAUSE

g. SQL AND and OR Operators

h. SQL LIKE Clause

i. SQL TOP Clause

j. SQL SORTING Results

k. SQL ORDER BY Clause

l. SQL Group By

m. SQL Offset

n. SQL Fetch

o. SQL Distinct Keyword

p. SQL UPDATE Query


q. SQL DELETE Query

r. SQL Alias Syntax.

s. Select Into

t. Union ALL

u. Union

v. Except

w. Intersect

x. CTE

y. IF / IF ELSE / WHILE / DO WHILE

27. SQL JOINS

a. INNER JOIN

b. LEFT OUTER JOIN

c. RIGHT OUTER JOIN

d. FULL OUTER JOIN

e. SELF JOIN

28.Sub Query

a. Subqueries with the SELECT Statement

b. Subqueries with the INSERT Statement

c. Subqueries with the UPDATE Statement

d. Subqueries with the DELETE Statement

29. SQL Transactions

a. The COMMIT Command


b. The ROLLBACK Command

30. Creating Views

a. The WITH CHECK OPTION

b. Updating a View

c. Inserting Rows into a View

d. Deleting Rows into a View

31.Built-In Functions

a. String Functions

i. CHAR

ii. CHARINDEX

iii. CONCAT

iv. LEN

v. LOWER

vi. LTRIM

vii. NCHAR

viii. REPLACE

ix. REVERSE

x. RTRIM

xi. STR

xii. STUFF

xiii. SUBSTRING
xiv. UPPER

b. Numeric/Math Functions

i. ABS

ii. AVG

iii. CEILING

iv. COUNT

v. FLOOR

vi. MAX

vii. MIN

viii. RAND

ix. ROUND

x. SUM

c. Date and Time Functions

i. DATEADD

ii. DATEDIFF

iii. DATENAME

iv. DATEPART

v. DAY

vi. GETDATE()

vii. CURTIME()

viii. GETUTCDATE()

ix. MONTH
x. YEAR

xi. DAYNAME(date)

xii. DAYOFMONTH(date)

xiii. DAYOFWEEK(date)

xiv. DAYOFYEAR(date)

xv. DATE_FORMAT(date,format)

xvi. FROM_DAYS(N)

xvii. HOUR(time)

xviii. LAST_DAY(date)

xix. MINUTE(time)

xx. MONTH(date)

xxi. MONTHNAME(date)

xxii. NOW()

xxiii. QUARTER(date)

xxiv. SEC_TO_TIME(seconds)

xxv. STR_TO_DATE(str,format)

xxvi. SUBDATE(date,INTERVAL expr unit) and SUBDATE(expr,days)

xxvii. SUBTIME(expr1,expr2)

xxviii. SYSDATE()

xxix. TIME(expr)

xxx. TIMEDIFF(expr1,expr2)

xxxi. TIME_FORMAT(time,format)
xxxii. TO_DAYS(date)

d. Aggregate Functions

i. AVG

ii. COUNT

iii. MAX

iv. MIN

v. SUM

e. System Functions

i. CASE

ii. CAST

iii. CONVERT

iv. COALESCE

v. CURRENT_TIMESTAMP

vi. CURRENT_USER

vii. DATALENGTH

viii. @@ERROR

ix. @@IDENTITY

x. IDENTITY

xi. ISDATE

xii. ISNULL

xiii. ISNUMERIC

xiv. NEWID()
xv. @@ROWCOUNT

f. Conversion Functions

i. CAST

ii. CONVERT

iii. TRY_CAST

iv. TRY_CONVERT

g. Configuration Functions

i. @@VERSION

h. Advanced Functions

i. CASE

ii. COALESCE

iii. ISDATE

iv. ISNULL

v. ISNUMERIC

32. STORED PROCEDURES

You might also like