We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
USE Assignment_2;
-- 1. Arrange the ‘Orders’ dataset in decreasing order of amount
SELECT * FROM Cust_Order
ORDER BY Amount DESC;
-- 2. Create a table with the name ‘Employee_details1’ consisting of these
columns: ‘Emp_id’, ‘Emp_name’, ‘Emp_salary’. -- Create another table with the name ‘Employee_details2’ consisting of the same columns as the first table.
CREATE TABLE Employee_details1 (Emp_id INT PRIMARY KEY, Emp_name VARCHAR(25)
NOT NULL, Emp_salary INT);
CREATE TABLE Employee_details2 (Emp_id INT PRIMARY KEY, Emp_name VARCHAR(25)
NOT NULL, Emp_salary INT);
SELECT * FROM Employee_details1;
SELECT * FROM Employee_details2;
INSERT INTO Employee_details1 (Emp_id, Emp_name, Emp_salary) VALUES