Question

Oracle SQL

Step 9. Create the table below and insert data LFM MoreSkill table SkillcodeSkillname Primary KeyUnique BD Build Databases Design Databases PL/SQL Programming Machine Learning ML Step 10. Using set operations, list what skills (10a) appear in the MoreSkill that were not in Skill (10b) appear in the Skill that are not in MoreSkill (10c) appear in both Skill and MoreSkill (10d) appear in either table so you have a complete list of all skills

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SET Operations in Oracle are supported by following commands :-

1. UNION - Combine results of two or more Select statements but remove duplicate rows.

2. UNION ALL - Combine results of two or more select statements but show duplicate rows.

3. INSTERSECT - Combine results of two or more select statements but only show rows common in both statements.

4. MINUS - Combine results of two or more select statements but only show those in the final results that are present only in the first set of result.

SQL COMMANDS

Step 9.

CREATE TABLE LFM_MoreSkill (

Skillcode varchar(50),

Skillname varchar(100),

UNIQUE(Skillname),

PRIMARY KEY(Skillcode)

);

INSERT INTO LFM_MoreSkill VALUES('BD','Build Databases');

INSERT INTO LFM_MoreSkill VALUES('DD','Design Databases');

INSERT INTO LFM_MoreSkill VALUES('PP','PL/SQL Programming');

INSERT INTO LFM_MoreSkill VALUES('ML','Machine Learning');

INSERT INTO LFM_MoreSkill VALUES('PM','Pattern Matching');

STEP 10.

10a.

SELECT * FROM MoreSkill

MINUS

SELECT * FROM Skill

10b.

SELECT * FROM Skill

MINUS

SELECT * FROM MoreSkill

10c.

SELECT * FROM Skill

INSTERSECT

SELECT * FROM MoreSkill

10d.

SELECT * FROM Skill

UNION

SELECT * FROM MoreSkill

NOTE - For any other query, Pls use the comment section.

Add a comment
Know the answer?
Add Answer to:
Oracle SQL Step 9. Create the table below and insert data LFM MoreSkill table SkillcodeSkillname Primary...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,   ...

    Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,    MFirst VARCHAR(25) NOT NULL,    MLast VARCHAR(25) NOT NULL,    Street VARCHAR(64) NOT NULL,    City VARCHAR(25) NOT NULL,    State VARCHAR(2) NOT NULL,    ZipCode NUMBER(5) NOT NULL,    CreditLimit NUMBER(7,2) NOT NULL,    Gender VARCHAR(1) NOT NULL CHECK (Gender IN('F','M')) ); CREATE TABLE Employees(    EmployeeID NUMBER(3) NOT NULL PRIMARY KEY,    EFirst VARCHAR(25) NOT NULL,    ELast VARCHAR(25) NOT NULL,   ...

  • create table sql query and insert data sql query for the below - VehicleType(make, model, doors,...

    create table sql query and insert data sql query for the below - VehicleType(make, model, doors, body,trim) Vehicle(regNum, fleetNum, colour, make,model) ScheduledService(date,kilometrage,regNum,depotId) ServiceHistory(date,cost,description,regNum,depotId) Records(make,model,tariffId,rentalPrice) DailyTariff(tariffId, conditions) Invoice(invoiceId,qualityCheck,datePaid,finalCost,date) Insurance(insuranceId, policyType, cost) Insures(insuranceId,date,policyNumber) HiredVehicle(date, cardType, cardNo, kilometrage, days,tariffId,clientId,depotId,regNum) Depot(depotId, street,postcode,phone,fax) Booking(startDate,hiredays,colour,depotId,make,model,clientId) Client(clientId,street,postcode,phone) PersonalClient(clientId, fName, lName, title, driversNum) CompanyClient(clientID, cname) underlined are primary keys and italicised are foreign keys.

  • Overview: Database management plays an integral role in nearly every area of business. Databases house customer, accoun...

    Overview: Database management plays an integral role in nearly every area of business. Databases house customer, accounting, and employee data, and these different data sets must all be efficiently managed in order to make the data accessible. Companies rely on database engineers to ensure that their records are accurate, updated, and tracked in real time. This course covers structured query language (SQL) and how it can be used to manage database schemas, manipulate data, and analyze data. For your final...

  • Step 1: Design and create the tables You must create additional tables to hold Project and...

    Step 1: Design and create the tables You must create additional tables to hold Project and Activity Data. A project represents the construction of a facility with a limited scope of work and financial funding. A Project can be composed of many activities which indicate the different phases in the construction cycle. Example Project Name: Bobba Fett’s Bounty Chase Ride An activity represents the work that must be done to complete the project. Example Activity Name: For Example activity name...

  • SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the...

    SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT