Rdbms Prac QP
Rdbms Prac QP
Create a Supplier table with the fields as Sup_No (Primary Key), Sup_Name, Item_Supplied, Item_Price and City.
Write sql query to display Supplier numbers and Supplier names whose name starts with ‘R’
Write sql query to display the name of suppliers who supply Printers and whose city is Delhi.
Write sql query to display the names of suppliers who supply the same items as supplied by Ramesh.
Create a Supplier table with the fields as Sup_No (Primary Key), Sup_Name, Item_Supplied, Item_Price and City.
Write sql query to increase the price of Keyboard by 200.
Write sql query to display supplier numbers, Supplier names and item_price for suppliers in delhi in the ascending
order of item_price.
Write sql query to add a new column called CONTACT_NO
Implement all the Questions
Create a Supplier table with the fields as Sup_No (Primary Key), Sup_Name, Item_Supplied, Item_Price and City.
Write sql query to delete the record whose itemprice is the lowest of all the items supplied.
Create a view on the table which displays only supplier numbers and supplier names.
Write sql query to display the records in the descending order of itemprice for each itemsupplied.
Implement all the Questions
Create a Supplier table with the fields as Sup_No (Primary Key), Sup_Name, Item_Supplied, Item_Price and City.
Write sql query to display the records of suppliers who supply items other than Processor or Keyboard.
Write sql query to add a new column called CONTACTNO
Write sql query to display Suplier numbers and Supplier names whose name starts with ‘S’
2.Write sql query to display all the employees who earn more than average salary of all the employees in the
company.
3.Write sql query to display the fields Eid, Ename and Dname.
Implement all the Questions
Create the table called Student with the below mentioned details.
Sid (Primary Key) , Sname ,DOB , State , Gender, Category(ex. OBC,General,Sports, Ex Service men) , Degree_name
Write sql query to display the students who are not from Telangana or AndhraPradesh.
Create a view to display the columns Sid, Sname for students belonging to Telangana.
Implement all the Questions
Create the table called Student with the below mentioned details.
Sid (Primary Key) , Sname ,DOB , State , Gender, Category(ex. OBC,General,Sports, Ex Service men) , Degree_name
Write sql query to create an index on column Sname.
Write sql query to display all the female students enrolled under B.Sc. CS and who belong to OBC.