Learn how to efficiently select 50% of data from a SQL table using the 'SELECT TOP 50 PERCENT' query. This SQL technique is crucial for data sampling and optimizing query performance, often discussed in SQL interviews and database management.
The below query is useful for selecting 50% of the data from the SQL table.
SELECT TOP 50 PERCENT * FROM Employee;
This query will show 50% data from total table records. This is mostly asked interview questions.