"write a note on sql and where it is used"
There are three main keywords when writing an SQL script:
1) Select - what columns or fields you would like to incude in your query
2) From - which view you are going to take the data from
3) Where - the conditions for your query