0% found this document useful (0 votes)
11 views7 pages

GS2210 Setoperators

The document outlines tasks for a GIS Applications Specialist program course, focusing on SQL queries and data manipulation. Participants are instructed to import Excel files into SQL Developer, create tables, and write specific SQL queries using set operators like INTERSECT, UNION, and MINUS. The tasks culminate in creating tables from climate data and calculating averages, with submissions required in a combined format of scripts and documentation.

Uploaded by

Malik Owais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views7 pages

GS2210 Setoperators

The document outlines tasks for a GIS Applications Specialist program course, focusing on SQL queries and data manipulation. Participants are instructed to import Excel files into SQL Developer, create tables, and write specific SQL queries using set operators like INTERSECT, UNION, and MINUS. The tasks culminate in creating tables from climate data and calculating averages, with submissions required in a combined format of scripts and documentation.

Uploaded by

Malik Owais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

GIS Applications Specialist Program

___________________________________________________________________
Course: GS2210
Skill Sheet: Set Operators

1
Tasks:
Create queries as directed screen capture the resulting tables in a word doc. Combine your
scripts (just the 10) into one file and submit with the word doc.

Using SQL Developer import the 3 excel files to create 3 separate tables.

1. Open SQL Developer and connect to your schema


2. Expand the connection
3. Click Tables and select import Data using the Context menu (right click)

4. Select the VEHICLE_2016.xlsx excel file in the tabular folder using the Browse... button.
A 5-Step Data import wizard will appear.
5. Leave the defaults for Step 1 and click Next.

2
6. On Step 2, Name the table VEHICLE_2016

7. Accept defaults for all other options to create the table.


8. Repeat the process for the remaining years.
9. Refresh the connection to verify the tables were created

10. In a new worksheet write queries to return the number of rows in each table.

No need to save the queries.

3
11. Write a query (GS2210_<Initials>_01.sql) to find the vehicles that were in the lot in
2016 and 2017 (INTERSECT).

4
12. Write a query (GS2210_<Initials>_02.sql) to find the common vehicles in 2017 and
2018.

13. Write a query (GS2210_<Initials>_03.sql) to determine which vehicles were present in


2016, 2017 and 2018? Are there any that were present all years?

14. Write a query (GS2210_<Initials>_04.sql) to determine total number of vehicles parked


in the lot for 2016 and 2017 without duplicates (UNION). Review the data are all
duplicated really removed? Why or why not?

5
15. Write a query (GS2210_<Initials>_05.sql) to determine total number of vehicles parked
in the lot for all years without duplicates (UNION).

16. Write a query (GS2210_<Initials>_06.sql) to determine total number of vehicles parked


in the lot for all years include duplicates (UNION ALL).

17. Import the guestlist and contacts tables from excel.

18. Write a query (GS2210_<Initials>_07.sql) to reveal which of your contacts did not
attend the party (MINUS).

6
19. Run the createCourses.sql script provided.
20. Create and run the following script to create a SEMESTER1 table.

CREATE TABLE SEMESTER1


AS SELECT COURSE_CODE, COURSE_TITLE, INSTRUCTOR_ID, SEMESTER_ID
FROM COURSES
WHERE SEMESTER_ID = 1;

Repeat the above to create a SEMESTERS2 table.

21. Create a query (GS2210_<Initials>_08.sql) to put all records in a FALLWINTER Table.

22. Import the climate data excel files as


Data_JAN2018, Data_FEB2018 and Data_MAR2018.
YOU cannot accept all defaults this time, you will
have to fix output field names to remove or replace
invalid field characters.
23. Create a query (GS2210_<Initials>_09.sql) to put all
climate records in a Q1_2018 Table.
24. Create a query (GS2210_<Initials>_10.sql) to
display the Average MAX_TEMP_C Q1.

You might also like