Nov 30, 2014 - Faculty of Engineering. Computer Engineering Dept. Database Lab (ECOM 4113). Lab 8. Procedural Language.
Nov 23, 2014 - Structured Query Language (SQL) is the primary language used to access and ... It brings state-of-the-art
Sep 30, 2014 - simply as Oracle) is an object-relational database management ... version is Oracle 12c (c refers to clou
Sep 30, 2014 - Oracle Database (commonly referred to as Oracle RDBMS or simply as Oracle) is an object-relational databa
Nov 2, 2014 - Computer Engineering Dept. Database Lab (ECOM .... Example: write a query to retrieve the names and hire d
Nov 11, 2014 - Islamic University of Gaza. Faculty of ... Write a query to retrieve departments' names and cities for al
Nov 2, 2014 - Retrieving Data from. Multiple Tables .... duplicate rows. ⢠UNION ALL: return all rows from multiple ta
Nov 11, 2014 - Exercises Solutions: 1. Write a query (without using set operators) to retrieve name and id for all count
5 days ago ... Telemark University College. Department of Electrical Engineering, Information
Technology and Cybernetics. Faculty of Technology, Postboks ...
Functions point(), circle() and box() are introduced to express a region on the sky, and ... Where Point(g.ra, g.dec) within Circle((24.3, +5.0), 1.0) and g.mag_r
worst country in performing good governance. Indonesian ... Structured Query Language, Good Governance. 1. Introduction ... Indonesian index good governance was only 2,88 and the highest was ..... Clean Government dan. Budaya Bisnis ...
Jan 10, 1998 - To find those people with LastName's ending in "L", use. '%L', or if you ..... Let's delete this new row
Download now. Click here if your download doesn't start automatically. Page 1 of 1. structured query language pdf. struc
Jan 10, 1998 - in to the database and entering SQL commands; see the local computer "guru" to help you get .... Good dat
Natural Language Processing; SQL Query; SL4A; Android;. Python. Keywords .... SL4A is specially designed for developers and is still alpha quality software.
for Data Definition Language (DDL) and Data Manipulation Language (DML). ... Semantic analysis [2] is the phase in which
We would like to show you a description here but the site wonââ¬â¢t allow us ... Databases including Microsoft SQL Se
Sep 4, 2002 - a href="http://www.cs.utk.edu/~bartley/other/ISA.html. 3. Incest Survivors ... The final directory name is the user's email alias. 3. The penultimate ...
Structured Query Language (SQL) Eng. Mohammed Alokshiya
Oct 21, 2014 - Computer Engineering Dept. Database Lab (ECOM ... Write SQL statement to insert a new record into JOBS ta
Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113)
Lab 2 Exercises Solutions
Structured Query Language (SQL)
Eng. Mohammed Alokshiya
October 21, 2014
Exercises Solutions: 1. Write SQL statement to insert a new record into JOBS table with
the following information: JOB_ID = C_ENG JOB_TITLE = Computer Engineer MIN_SALARY = 20000 MAX_SALARY = 50000
Suggested Solution INSERT INTO JOBS VALUES ('C_ENG', 'Computer Engineer', 20000, 50000);
2. Write SQL statement to modify all employees’ JOB_IDs to
C_ENG, if there salary is between 20000 and 50000. Suggested Solution UPDATE EMPLOYEES SET JOB_ID = 'C_ENG' WHERE SALARY BETWEEN 20000 AND 50000;
3. Write SQL statement to delete all employees who are not
working in any departments, and all employees who are working in department 80, but their TOTAL salary is less than 7000. Note: total salary = salary + salary * commission_pct Suggested Solution DELETE FROM EMPLOYEES WHERE DEPARTMENT_ID IS NULL OR DEPARTMENT_ID = 80 AND SALARY + SALARY * NVL(COMMISSION_PCT, 0) < 7000;
2
4. Write SQL statement to retrieve the last name and salary for all
employees whose salary is not in the range 5000 through 12000. Suggested Solution SELECT LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY NOT BETWEEN 5000 AND 12000;
5. Write SQL statement to retrieve the last names of all employees
who have both an “a” and an “e” in their last name. Suggested Solution SELECT LAST_NAME FROM EMPLOYEES WHERE LAST_NAME LIKE '%a%' AND LAST_NAME LIKE '%e%';
6. Write SQL statement to retrieve the last name, salary, and
commission for all employees who earn commissions. Sort data in descending order of salary and commissions. Use the column’s numeric position in the ORDER BY clause. Suggested Solution SELECT LAST_NAME, SALARY, COMMISSION_PCT FROM EMPLOYEES WHERE COMMISSION_PCT IS NOT NULL ORDER BY 2 DESC, 3 DESC;
7. Write SQL statement to retrieve all employee last names in
which the third letter of the name is “a”. Suggested Solution SELECT LAST_NAME FROM EMPLOYEES WHERE LAST_NAME LIKE '__a%';