0% found this document useful (0 votes)
9 views1 page

SQL Hw-12

The document outlines various SQL operations related to a scholarship table, including displaying unique subjects, filtering names containing 'R', and retrieving specific data based on conditions. It also includes instructions for modifying the table structure, such as adding columns, changing data types, and applying constraints. Additionally, it addresses data manipulation tasks like removing entries and updating stipend amounts.
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)
9 views1 page

SQL Hw-12

The document outlines various SQL operations related to a scholarship table, including displaying unique subjects, filtering names containing 'R', and retrieving specific data based on conditions. It also includes instructions for modifying the table structure, such as adding columns, changing data types, and applying constraints. Additionally, it addresses data manipulation tasks like removing entries and updating stipend amounts.
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
You are on page 1/ 1

Table: scholarship

divcode Name Remark


I Category 1 Distinction
II Category 2 First class

c) display the subject without repetition

d) display the name contains ‘R’ in it

e display the name ,subject of people who has subject physics and div I

f display the name ,stipend and subject for people those who have average more than 50 and less than 70

g add a column remark with varchar(20)

h. change the subject to comp.sc for sabina

I add constraint unique to name and primary key to sno

J remove the constraint unique

k. remove data for those who have subject chemistry

l. remove the data from the table and the structure

m. increase the stipend by 50 for those who have subject csc and display it as allowance

n. create table scholarship and graduate with foreignkey constraint in the appropriate table.

You might also like