2 CREATE TABLE employee ( 3 eid INTEGER PRIMARY KEY, name TEXT NOT NULL, AGE INTEGER NOT NULL, salary INTEGER NOT NULL 7 ); INSERT INTO employee VALUES (1, 'Ryan', 26, 30000); INSERT INTO employee VALUES (2, 'Joanna', 30, 45000); INSERT INTO employee VALUES (3, 'Mark', 35, 75000); INSERT INTO employee VALUES (4, 'Anthony', 24, 35000); 12 INSERT INTO employee VALUES (5, 'Lisa', 24, 60000); INSERT INTO employee VALUES (6, 'Henry', 50, 250000); SELECT * FROM employee ORDER BY name ASC, salary DESC;| 4 5 6 13 14

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
CREATE TABLE employee (
eid INTEGER PRIMARY KEY,
name TEXT NOT NULL,
AGE INTEGER NOT NULL,
salary INTEGER NOT NULL
7 );
INSERT INTO employee VALUES (1, 'Ryan', 26, 30000);
INSERT INTO employee VALUES (2, 'Joanna', 30, 45000);
INSERT INTO employee VALUES (3, 'Mark', 35, 75000);
INSERT INTO employee VALUES (4, 'Anthony', 24, 35000);
12 INSERT INTO employee VALUES (5, 'Lisa', 24, 60000);
13 INSERT INTO employee VALUES (6, 'Henry', 50, 250000);
SELECT * FROM employee ORDER BY name ASC, salary DESC;
3
4
6
Transcribed Image Text:CREATE TABLE employee ( eid INTEGER PRIMARY KEY, name TEXT NOT NULL, AGE INTEGER NOT NULL, salary INTEGER NOT NULL 7 ); INSERT INTO employee VALUES (1, 'Ryan', 26, 30000); INSERT INTO employee VALUES (2, 'Joanna', 30, 45000); INSERT INTO employee VALUES (3, 'Mark', 35, 75000); INSERT INTO employee VALUES (4, 'Anthony', 24, 35000); 12 INSERT INTO employee VALUES (5, 'Lisa', 24, 60000); 13 INSERT INTO employee VALUES (6, 'Henry', 50, 250000); SELECT * FROM employee ORDER BY name ASC, salary DESC; 3 4 6
Practical Tasks for Database Systems
Question:1
Show all data from employee table where name should be in ascending and salary in
descending order.
Show the total length of (eno. deptno). (Employee Number, department Number) joined it
and rename by funetion from the employee table?
Show the ename (employee name) first 3 alphabets of manager?
Write a query that show the manager data like this.
job
*** MANAGER
ename
JONES
BLAKE
***MANAGER
Transcribed Image Text:Practical Tasks for Database Systems Question:1 Show all data from employee table where name should be in ascending and salary in descending order. Show the total length of (eno. deptno). (Employee Number, department Number) joined it and rename by funetion from the employee table? Show the ename (employee name) first 3 alphabets of manager? Write a query that show the manager data like this. job *** MANAGER ename JONES BLAKE ***MANAGER
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY