Preview

Nt1310 Unit 3 Assignment Pdf

Satisfactory Essays
Open Document
Open Document
1169 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1310 Unit 3 Assignment Pdf
Part 1

1. Write a script which will Create the needed tables as follows:
a. Table name : DEPT
i. Column datatype Mandatory? PK? FK? Deptno NUMBER(2) Yes Yes dname VARCHAR2(30) Yes No loc VARCHAR2(20) No No

Ans: CREATE TABLE dept (deptno NUMBER(2) NOT NULL, dname VARCHAR2(30) NOT NULL, loc VARCHAR2(20) CONSTRAINT deptno_pk PRIMARY KEY (deptno));

b. Table name: EMP
i. Column datatype Mandatory? PK? FK? Empno NUMBER(4) Yes Yes
…show more content…

Hiredate DATE No No Job VARCHAR2(15) No No Mgrno number(4) no no yes ( to emp.empno) Salary number(8,2) no no Comm number(8,2) no no Deptno number(2) no no yes ( to …show more content…

Use SQL*Loader
For dept table:
Control File: load data infile 'dept.dat ' "var 3" into table dept fields terminated by ', ' optionally enclosed by '" ' (col1 NUMBER(2), col2 VARCHAR2(30), col3 VARCHAR2(20) )

From Command Prompt: SQLLDR CONTROL=dept.ctl, LOG=bar.log, BAD=baz.bad, DATA=dept.dat USERID=student/student, ERRORS=999, LOAD=2000, DISCARD=toss.dis, DISCARDMAX=5

For emp table:
Control File: load data infile 'emp.dat ' "var 3" into table emp fields terminated by ', ' optionally enclosed by '" ' (col1 NUMBER(4), col2 VARCHAR(2), col3 DATE, col4 VARCHAR2(15), col5 number(4), col6 number(8,2), col7 number(8,2), col8 number(2))

From Command Prompt: SQLLDR CONTROL=emp.ctl, LOG=bar.log, BAD=baz.bad, DATA=emp.dat USERID=student/student, ERRORS=999, LOAD=2000, DISCARD=toss.dis, DISCARDMAX=5

DEPT table
Deptno
Dname
Loc
10
Accounting
Boston
20
Sales


You May Also Find These Documents Helpful

  • Satisfactory Essays

    Therefore I decided to choose just a simple phone for my grandmother, one that is not energy consuming and can go for days without requiring to be charged. So Nokia Torch 1203 came in handy as it has no applications, thus reserves battery. As an old woman she has impairment in hearing so this phone has a loudspeaker, the flashlight would help her if she has to look for something in the dark. It can also vibrate if she can’t hear it ringing. Because my grandmother can hardly read, she just need a simple phone to call and receive calls vise…

    • 791 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 8 Assignment

    • 459 Words
    • 2 Pages

    In this paper you will find 3 factors that could affect splicing performance, 3 intrinsic factors, and 3 extrinsic factors.…

    • 459 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 3 Assignment

    • 447 Words
    • 2 Pages

    We cannot complete the construction at this point in time due to the extension of the building project.…

    • 447 Words
    • 2 Pages
    Good Essays
  • Good Essays

    This lab will utilize a set of tables found in the script file (LeeBooks.sql) found in the Doc Sharing area of the website. If you have not yet downloaded this file from Doc Sharing then do so now. Once you have downloaded the script file, import and run the script in SQL*Plus.…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 5 Assignment

    • 2359 Words
    • 10 Pages

    Table of Contents 1 Introduction 2 2 Overview 2 3 Static Data File 2 4 Request & Response 2 4.1 Request 2 4.2 Response 3 5 Operations 3 5.1 Region List (rtype=1) 4 5.2 Region List (rtype=2) 4 5.3 Hotel Details (rtype=3) 5 5.4 Keyword Search (rtype=4) 6 5.5 Region Search (rtype=5) 7 5.6 Geo Search (rtype=6) 8 5.7 Availability and Rates (rtype=7) 8 5.8 Special Offers List (rtype=8) 9 5.9 Special Offers (rtype=9) 9 5.10 Currency List (rtype=10) 10 5.11 Facilities List (rtype=11) 10 6 Affiliate Filters 10 Introduction We have made some changes to the way our affiliate XML feeds work. Overview…

    • 2359 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    Nt1330 Unit 3 Assignment

    • 356 Words
    • 2 Pages

    Note: Follow these instructions carefully: There could be modifications that could limit your use of the Ghost software.…

    • 356 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 2 Assignment

    • 506 Words
    • 3 Pages

    An example is of a virtual insurance company, we're not talking only aboutInternet delivery for products. We're talking about the online insurance agency necessarily, although that's certainly one component of the enterprise. We're also talking about back-office infrastructure and support, perhaps dedicating third parties to support this infrastructure to create an electronic communications medium.…

    • 506 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1310 Unit 2 assignment

    • 475 Words
    • 2 Pages

    RBOCS- Regional Bell operating company (RBOC) is a term describing one of the U.S. regional telephone companies (or their successors) that were created as a result of the breakup of American Telephone and Telegraph Company (AT&T, known also as the Bell System or "Ma Bell") by a U.S. Federal Court consent decree on December 31, 1983. The seven original regional Bell operating companies were Ameritech, Bell Atlantic, BellSouth, NYNEX, Pacific Bell, Southwestern Bell, and US WEST. Each of these companies owned at least two Bell operating companies (Bell operating company). The BOCs were given the right to provide local phone service while AT&T was allowed to retain its long-distance service.…

    • 475 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. SELECT e.ename, e.deptno, d.dname, d.deptno FROM dept d LEFT OUTER JOIN emp e ON d.deptno = e.deptno ORDER BY d.deptno; SQL> SELECT e.ename, e.deptno, d.dname, d.deptno 2 FROM dept d 3 LEFT OUTER JOIN emp e 4 ON d.deptno = e.deptno 5 ORDER BY d.deptno; ENAME DEPTNO DNAME DEPTNO ---------- ---------- -------------- ----------…

    • 1542 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Assignment

    • 292 Words
    • 2 Pages

    I took the skin-tone IAT and my data suggested a strong automatic preference for light skin compared to dark skin. I knew that I may or may not have agreed with some parts of the test results; however, I strongly disagree with the results that I actually did receive. The way that the test switches the sides in which the categories are populate, was really confusing. I do not believe that it was because there were light skinned people on one side and dark skinned people on the other, I believe it was confusing when the images shown on the opposite sides of the screen. I feel that if it were any other images, I would have still been just as confused, but because the images that were switched were of people, my data suggests that I have a stronger…

    • 292 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    SERVICE_CO (Co_Name, Co_Phone, Co_Street, Co_City, Co_State, Co_Zip) 7. MAINTENANCE (Vehicle_ID, Serv_Date, Serv_Code, Co_Name) FK Vehicle_ID  CAR FK Co_Name  SERVICE_CO. 8. RESERVATION (Confirm_No, C_Name, C_Phone, Car_Type, Credit_Card_No, Daily_Rate, Mileage_Rate, Res_Pickupdate, Res_Returndate) FK…

    • 182 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 6 Assignment

    • 303 Words
    • 2 Pages

    Unit 6 Assignment Shana Howell CE-240-01 Down Syndrome       Characteristics of this disability:…

    • 303 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 2 Assignment

    • 354 Words
    • 2 Pages

    2. No I do not feel that inheritance violates the principle of equality of opportunity and abolishing it would not promote productivity or an even distribution of income. While everyone may not have the same opportunities in life, those who have been able to become successful and wealthy with out inheritance have worked hard to achieve their wealth. To tell some one that they can’t leave their hard earned belongs to family is violating ones right of freedom, life and pursuit of happiness. Not only that, by allowing the government to take over peoples property; doesn’t mean that productivity will increase or that the funds will be distributed evenly among Americans. This theory of abolishing inheritance doesn’t seem to have any correlation…

    • 354 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 5 Assignment

    • 2632 Words
    • 11 Pages

    NAEYC offers many perks with their membership. First off, they send out the latest research-based ideas through their magazines and journals. You also receive discounts at conferences and off NAEYC books.…

    • 2632 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    Nt1310 Unit 1 Assignment

    • 1341 Words
    • 6 Pages

    In this paper I will be discussing which theory represents my personal beliefs in depth, describe the theory in depth, and I will also add how this theory is used within my society. I will also describe the misconceptions and confusion related applying society’s guidelines and how it has affected by technology.…

    • 1341 Words
    • 6 Pages
    Powerful Essays