Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Practice Set-2

Perform the following operations:

• Copy the given script file (i.e. test.sql) file into d:\
• Run the given script file (SQL>@ d:\test) in order to create the required tables along
with data.
• The following two tables are created along with data:
Player(playid,playnm,pcountry,page)
Runs(playid,totballs,totruns)
• Write appropriate SELECT statement for the followings:
1. Display name of Indian player who have scored highest runs.
2. Display name of Australian player who have scored highest runs.
3. Display name of player who have scored highest runs.
4. Display name of player and total runs scored for those player whose age is greater
than 35.
5. Display player name and strike rate for all Indian Players. [strike rate =
(totruns/totballs)*100].
6. Display player name and strike rate for all Australian Players.
7. Display player name and strike rate for all Players.
8. Display name of Australian player who have scored maximum score.
9. Display name of Indian player who have scored maximum score.
10. Display name of player who have scored maximum score.
11. Display name of player who have scored minimum score.
12. Display Indian player name whose strike rate is greater than100 [strike rate =
(totruns/totballs)*100].
13. Display Australian player name whose strike rate is greater than100 [strike rate =
(totruns/totballs)*100].

Page 1 of 1

You might also like