



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























Lec Ayesha Naseer
The SELECT statement in SQL is used to retrieve data from a relational database.
EXAMPLES
In SQL, the DISTINCT keyword is used in the SELECT statement to retrieve unique values from a database table. Any value that has a duplicate will only show up once.
SELECT TOP 2 store_name, Sales, Date FROM Store_Information ORDER BY Sales DESC; SELECT TOP 25 PERCENT store_name, Sales, Date