SQL Task Presentation: Naveen J
SQL Task Presentation: Naveen J
SQL Task Presentation: Naveen J
presentation
Naveen J
Business problem
To create a database for attendance portal of a organisation and to perform
exercise on the Sql topics given for that the following table are included
● Attendance table
● Employee detail
● Permission detail
● Leave detail
● Department detail
Topics
● Keys
● Joins
● Subqueries
● String functions
● Datetime functions
● Stored procedures
Keys
Keys in sql are the set of attributes that is used to specify the particular
column in a table and to find or to create a relation between the tables in a
database in this task I have used keys are as follows
Primary Key
Foriegn Key
Unique key
joins
Joins are used to retrieve data from different tables by combining the two or
more tables with the help of relation between the tables. There are different
types of joins used in sql.
● Inner join
● Right Join
● Left Join
● Outer join
Example
To find the employee who are taken leave or
permission in two days and the status of the
request.
● Scalar subquery
● Multiple row subquery
Example
There are many String functions in SQL from that i have used
● Without parameter
● With parameter