sql commands for practise
sql commands for practise
1 Suman 20000
2 Sanjay 32000
3 ravi 30000
Table:empl
5.display the name and salary of all the employees after incrementing it as thrice the amount of
present salary.
6. display the name and salary of all the employees after decrementing it as half the amount of
present salary.
Table:student
1004,”Amaan”,11,’blue’
Table:item
1.write a query to display detail of items whose quantity is more than 10.
15,”pencil”,20,10
5.display the total amount of each item. The amount must be calculated as the price multiplied by
quantity for each item.
Table: book
2.display the total amount of all books whose price is less than 500.(hints:Amount=qty*price)