0% found this document useful (0 votes)
7 views3 pages

Student Activity Record Instructions

The document outlines instructions for students to record activities on A4 paper, including coding and output formatting. It specifies the need for a front page, certificate design, and spiral binding, with a submission deadline of September 9, 2025. Additionally, it lists SQL queries for various tasks related to sports and athletes.

Uploaded by

kamranftp09
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Student Activity Record Instructions

The document outlines instructions for students to record activities on A4 paper, including coding and output formatting. It specifies the need for a front page, certificate design, and spiral binding, with a submission deadline of September 9, 2025. Additionally, it lists SQL queries for various tasks related to sports and athletes.

Uploaded by

kamranftp09
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Activity Record file

Instruction:
1. Students are instructed to write the activities in A4 size blank paper.
2. Code must be written in right side of the page and output must be on the left side.
3. Design a front page, Certificate.
4. Do the spiral binding.
5. Submission date is : 09.09.2025

Activity 1:

Activity 2:
1. Write a SQL query to display the sports-wise total number of medals won.
2. Write a SQL query to Display the names of all the Indian athletes in uppercase.
3. Write a SQL query to Display the athlete name along with their corresponding sports
4. Write a SQL query to display to total number of medal for all the sports.
5. Write a SQL query to display athletes whose name starts with letter ‘A’

Activity 3:

Activity 4:
Activity 5:

Activity 6:
Write the SQL commands
1. Round the value of pi (3.14159) to two decimal places.
2. Calculate the remainder when 125 is divided by 8.
3. Display the number of characters in the word 'NewDelhi'.
4. Display the first 5 characters from the word 'Informatics Practices'.
5. Display details from 'email' column (attribute), in the 'Students' table, after removing any leading
and trailing spaces.

Common questions

Powered by AI

Compiling a complete report involves writing each activity on A4 paper with the code on the right and output on the left. SQL queries to be included can involve displaying sports-wise total medals (e.g., `SELECT sport, COUNT(medal) AS total_medals FROM athletes GROUP BY sport;`), displaying uppercase names (e.g., `SELECT UPPER(name) FROM athletes WHERE country = 'India';`), and other tasks as instructed. Ensure proper documentation and order before binding. Submission date adherence is critical .

To display the names of all Indian athletes in uppercase, you can use the SQL query: `SELECT UPPER(name) FROM athletes WHERE country = 'India';` .

Students are instructed to write activities on A4 size blank paper, with code on the right side and output on the left side. They must design a front page and certificate, do spiral binding, and submit by the due date, 09.09.2025 .

Removing leading and trailing spaces is crucial for ensuring data consistency and preventing issues with data retrieval and reporting. In SQL, leading and trailing spaces can be removed using the command: `SELECT TRIM(email) FROM Students;` This cleans up data by ensuring uniformity and accuracy in data entries .

To calculate the remainder when 125 is divided by 8, you can use the SQL command: `SELECT 125 % 8;` The result will be `5` .

To display the first five characters from 'Informatics Practices', use the SQL command: `SELECT SUBSTRING('Informatics Practices', 1, 5);` The result is `Infor` .

To display athlete names starting with 'A', use the SQL query: `SELECT name FROM athletes WHERE name LIKE 'A%';` This query is used to filter and retrieve records of athletes whose names begin with 'A', aiding in sorting and organizing data .

To display the sports-wise total number of medals won, you can use the SQL query: `SELECT sport, COUNT(medal) AS total_medals FROM athletes GROUP BY sport;` .

To round the value of pi (3.14159) to two decimal places, you can use the SQL command: `SELECT ROUND(3.14159, 2);` The expected result is `3.14` .

To display the number of characters in 'NewDelhi', use the SQL function: `SELECT LENGTH('NewDelhi');` The expected output is `8` .

You might also like