This repository contains some basic sql files pushed from local repository. Basic concepts of databases and sql usecases.
Data, Database , Server, Host, DBMS, RDBMS and N-RDBMS
- Data types.
- Primary key and foreign key.
- Constrains - column and table constrains.
- Default and Check constrains.
- CREATE, ALTER, DROP, TRUNCATE. (C-DAT)
- Differences between DELETE,TRUNCATE, DROP.
- INSERT
- UPDATE
- DELETE
- MERGE
- SELECT : SELECT * FROM table_name;
Find a job where given highest salary and opportunities to limitless grow. (F-J-W-G-H-S-O-L)
FROM > JOIN > WHERE > GROUP BY > HAVING > SELECT > ORDER BY > LIMIT
- Aggregate window functions vs standard aggregate function.
- Ranking window functions-ROW_NUMBER(), RANK(), DENSE_RANK()
- More ranking functions- NTILE(), CUME_DIST(), PERCENT_RANK()
- Value functions - LAG(), LEAD(), FIRST_VALUE(), LAST_VALUE(), NTH_VALUE()
- CASE WHEN THEN ELSE END
- COALESCE
- CAST
- NULLIF
- IF-ELSE
- WHERE vs HAVING
- IN vs EXISTS
- JOIN vs SubQuery
- JOIN vs UNION
- UNION vs UNION ALL
- GROUP BY vs ORDER by