Task 03
Task 03
Task
1. Upload data to your database (task_data2023_11_07.txt Platon platform)
2. Modify the structure
• Create a primary key
• Add an age field
3. Calculate the age of the people and enter the age in the field
4. Find the oldest and youngest person
5. Calculate the number of people in each age group
6. Copy the oldest 10 people to the OLD_EMPLOYEE table
If you can't do it, write why
Save the script in a file with the TXT extension and place it on the Platon platform (Solution_3)
Don't send email solutions!!!
HELP
YEAR ( date ), MONTH ( date ), DAY ( date )
SELECT SYSDATETIME(),
SYSDATETIMEOFFSET(),
GETDATE(),
GETUTCDATE()
1
2023-11-07&2023-11-09