Preview

Unit 365 Assignment 3

Satisfactory Essays
Open Document
Open Document
788 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 365 Assignment 3
CIT 365 – Assignment # 4 – Intermediate queries (1 table)
Some important notes
1. When you are finished working with SQLPlus, type the following: Commit; Exit; This will permanently save your work
2. It is STRONGLY suggested that you do your scratch work on Notepad or Textpad.

3. For each question, show the question, the SQL statement, and the result.

SELECT AVG (T1) FROM Student;
SELECT (T1+T2+T3)/3 FROM Student;

Assignment 4
1. Create an Oracle table for the following STUDENT data:
STUDENT

Name
ID
Major
Course
Assignment 1
Assignment 2
Midterm
Final
Project
Aisha Ahmed
200312345
CIT
CIT365
83
91
77
82
71
Anood Abdulla
200312356
BUS
CIT365
77
81
66
76
81
Budoor Mahommad
…show more content…
Which students have the letter “s” in their names?
SELECT Name FROM students WHERE Name LIKE '%s%';
+---------------+
| Name |
+---------------+
| Laila Saeed |
| Aisha Ahmed
…show more content…
List the average score for each student. Assume that all assessments have equal weight.
SELECT Name,(A1+A2+Midterm+Final+Project)/5 as Average FROM students;

+-----------------+---------+
| Name | Average |
+-----------------+---------+
| Laila Saeed | 74.4000 |
| Ghulood Ali | 77.4000 |
| Aisha Ahmed | 80.8000 |
| Anood Abdulla | 76.2000 |
| Fatma Essa | 64.6000 |
| Maryam Ibrahim | 87.2000 |
| Budoor Mahommed | 88.2000 |
| Hanan Ahmed | 93.6000 |
| Shamsa Khalid | 93.4000 |
| Hanan Abdulla | 85.6000 |
+-----------------+---------+

7. What is the average score for the student who scored highest on the midterm?
SELECT Name,MAX(Midterm),(A1+A2+Midterm+Final+Project)/5 as HighstMidtermScoredStudentsAverage FROM students;

+-------------+--------------+------------------------------------+
| Name | MAX(Midterm) | HighstMidtermScoredStudentsAverage |
+-------------+--------------+------------------------------------+
| Laila Saeed | 92 | 74.400000000 |
+-------------+--------------+------------------------------------+

8. List the data sorted by Major and within major by Name.
SELECT Major From students ORDER BY Major;
+-------+
| Major |

You May Also Find These Documents Helpful

  • Satisfactory Essays

    unit 5 assignment1

    • 309 Words
    • 2 Pages

    What type of install is the cable going into? Is everything in a fixed position? If you have an install where items are moved around without being disconnected, using highly flexible cable is necessary. Cables in these scenarios need to be flexible to meet those demands of mobility, and also for the life of the wire so that it does not crack, break, fray or short. We had a job at a university where we moved flat panels on a track system to create different screen sizes, and for that we had to make sure the cable would meet the demand.…

    • 309 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Assignment 1

    • 609 Words
    • 3 Pages

    Switched circuit- A circuit created by the phone company in reaction to signaling (the user tapping telephone keys or a modem sending in the same digits), with the telco tearing down the circuit when the user is finished.…

    • 609 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 10 Assignment 1

    • 256 Words
    • 1 Page

    First of all I would recommend that you use Raid-1 as your fault-tolerant hardware. RAID-1 is most often deployed with two disks. The disks are mirrored – providing fault tolerance. Read performance is increased while write performance will be similar to a single disk – if not less. A single disk failure can be sustained without data loss. RAID-1 is often used when fault tolerance is key and there isn’t an exceptional space or performance requirement.…

    • 256 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Unit 10 Assignment 1

    • 344 Words
    • 2 Pages

    * The onsite updates the responsibility of the onsite IT team, and ultimately the IT supervisor. The responsibility of the restore includes the same people plus the OK from management. All parties need to be kept updated with current…

    • 344 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 7 assignment 1

    • 431 Words
    • 2 Pages

    7. Convert the While loop in the following code to a Do-While loop: int x;…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 3 Assignment 1

    • 383 Words
    • 2 Pages

    Video Connectors – Video Graphics Adapter (VGA), Digital Video Interface (DVI), and S-Video (TV connection)…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 10 Assignment 1

    • 469 Words
    • 3 Pages

    For this video, I have learned the name of the process I have used to repair applications.…

    • 469 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Unit 2 Assignment 2

    • 676 Words
    • 3 Pages

    1. Microsoft is aware that research was published at a security conference proving a successful attack against X.509 digital certificates signed using the MD5 hashing algorithm. This attack method could allow an attacker to generate additional digital certificates with different content that have the same digital signature as an original certificate. The MD5 algorithm had previously shown a vulnerability, but a practical attack had not yet been demonstrated.…

    • 676 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Unit 6 Assignment 1

    • 228 Words
    • 1 Page

    1. How much data has been modified between the last back and the time of failure?…

    • 228 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Unit 8 Assignment 1

    • 349 Words
    • 1 Page

    IP route: One entry in an IP routing table that lists some potential destination (usually a network ID or subnet ID) as forwarding instructions, including the interface out which the router should forward the IP packet.…

    • 349 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Unit 7 Assignment 1

    • 261 Words
    • 2 Pages

    2. A pretest loop is a loop tests the conditions before performing the iteration. A posttest loop performs the iteration then test the condition.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Unit 4 Assignment 2

    • 717 Words
    • 3 Pages

    The purpose of this policy is to define standards for connecting to Richman investment’s network from any host. These standards are designed to minimize the potential exposure to Richman investments from damages which may result from unauthorized use of Richman investments resources. Damages include the loss of sensitive or company confidential data, intellectual property, damage to public image, damage to critical Richman investments internal systems, etc.…

    • 717 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 2 Assignment 2

    • 299 Words
    • 1 Page

    The evolution of the Ethernet standards will have a large effect on data storage requirements. As the speeds of these connections continue to increase, users and businesses will be able to transfer larger files faster and will required larger data storage to accommodate the increased demand of resources. Thirty years ago, when the standard was only 10MB, there was nowhere near the need for the data storage capacity as there is today, with the current standard being 100 Gbit, with 1 Tbit on the way. Data storage wasn’t as high in demand before because it would take an extremely long amount of time to transfer large files, but as the speed increases, so will the demand.…

    • 299 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    unit 3 assignment 4

    • 4187 Words
    • 14 Pages

    It is not only individuals in the consumer marketplace that have the potential to buy, as buyers also exist in the business to business market. B2B markets are individuals that have the responsibility of purchasing on behalf of the business. Cadbury have both individual and business to business consumers. They trade with all major supermarkets and superstores, but also sell to local and private shops. This way they can broaden their distribution and reach customers and consumers everywhere.…

    • 4187 Words
    • 14 Pages
    Powerful Essays
  • Better Essays

    UNIT 2 ASSIGNMENT 1

    • 1061 Words
    • 5 Pages

    4. According to this chapter, which of the following concepts happens in a modern-day, end-to-end voice call between two home telephones in the United States? (Choose two answers.)…

    • 1061 Words
    • 5 Pages
    Better Essays