Write a command that will remove barry from student table

Assignment Help Basic Computer Science
Reference no: EM13974129

Given the relations below, create the database tables using SQL DDL  (Data Definition Language).  Assume the following attribute data types:

StudentID (integer, primary key)

StudentName (25 characters)

FacultyID (integer, primary key)

FacultyName (25 characters)

CourseID (8 characters, primary key)

DateQualified (date)

SectionNo (integer, primary key)

Semester (7 characters)

 

STUDENT (StudentID, StudentName)

StudentID

StudentName

38214

Alvaro

54907

Letterman

66324

Troy

70542

Myra

..........

 

FACULTY (FacultyID, FacultyName)

FacultyID

FacultyName

 

1123

Cooper

4237

Burgess

5115

May

........

 

COURSE (CourseID, CourseName)

CourseID

CourseName

CMIS 320

Relational Database

CMIS 102

Algorithm Design

CMIS 420

Advance Relational Database

CMIS 170

Introduction to XML

CMSC 100

Intro to Computer Science

........

 

 

QUALIFIED (FacultyID, CourseID, DateQualified)

FacultyID

CourseID

DateQualified

1123

CMIS 102

9/2014

1123

CMIS 170

9/2014

4237

CMIS 420

9/2012

4237

CMIS 320

9/2013

5115

CMIS 102

9/2011

5115

CMIS 170

9/2011

..........

 

 

SECTION (SectionNo, Semester, CourseID

SectionNo

Semester

CourseID

3115

FALL-2014

CMIS 320

3116

FALL-2014

CMIS 320

3117

FALL-2014

CMIS 102

3118

FALL-2014

CMIS 420

..........

 

 

REGISTRATION (StudentID, SectionNo, Semester)

StudentID,

SectionNo

Semester

38214

3117

FALL-2014

54907

3117

FALL-2014

54907

3118

FALL-2014

66324

3116

FALL-2014

.....

 

 

 

 

 

 

 

 

 

After creating the tables above, write SQL statements to answer the following questions.  Submit your work as a text file containing the 6 SQL statements.

a) What is the name of the faculty member whose ID is 1123?

b) What is the smallest section number used in the FALL-2014 semester?

c) How many students are enrolled in Section 3117 of FALL-2014?

d) Create an SQL command that will modify the name of course CMIS 320 from Relational Database to Relational Database Concepts and Applications

e) Write a command that will remove Barry from the Student table

f) Write statement to add an attribute, Class to the Student table?

Reference no: EM13974129

Questions Cloud

Should you be allowed to hackback against a cyber attacker : "should you be allowed to hackback against a cyber attacker under some circumstances, and if so, what circumstances?"
What are the essential elements needing attention : Introduction to the Situation: Briefly describe the situation and identify the primary issues contributing to the coaching scenario. What are the essential elements needing attention? Using a coaching perspective, identify the problem as clearly a..
What are some tips for developing and using the bis describe : How does the business intelligence system (BIS) at CKE add value to the business? What are some tips for developing and using the BIS described in this case?
Journal entry to record flyer bad debt expense : Prepare the journal entry to record Flyer's bad debt expense for 2015. 2.. Now assume that Flyer estimates bad debt expense as 10% of accounts receivable. Prepare the journal entry to record Flyer's bad debt expense for 2015. 3.
Write a command that will remove barry from student table : What is the smallest section number used in the FALL-2014 semester?
Determine what the optimal level of output is for the firm : Determine what the optimal level of output is for the firm and the firm's profit if fixed costs are expected to be $4.0 million.
Computing the financing activity : In the Cash Flow column, indicate whether the item is an operating activity (OA), investing activity (IA), or financing activity (FA). Use NA to indicate that an element is not affected by the event. (Enter any decreases to account balances and ca..
Article review - a phenomenology of the integration of faith : Article- A PHENOMENOLOGY OF THE INTEGRATION OF FAITH AND LEARNING. Provide atitle page in currentAPA format including only your name, the paper title (referring to the article title), and the institutional affiliation
Division of net income : PFW Co. reports net income of $76,900. Partner salary allowances are Pitts $16,130, Filbert $3,110, and Witten $6,500. Indicate the division of net income to each partner, assuming the income ratio is 50 : 30 : 20, respectively.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identify areas where data can be hidden on a computer?

Identify areas where data can be hidden on a computer?

  Humans have launched into space

Draw an ER diagram. Make sure each entity type has at least one key attribute. Document any assumptions you make. Avoid diagrams with a single entity. b. If you think the description is incomplete, list other data the database should store. c. Adjust..

  How can two cubical

how can two cubical (six sided) dice be labelled using numbers {0,1,2,3,4,5,6} so that when the two dice are thrown, the sum has a uniform probability distribution over the integers ( 1,2...12}.The same number can repeat more than once on a face of e..

  Write a program named orderreceipt for the magic blender

Write a program named OrderReceipt for the Magic Blender Company. The program prompts the user for a name, street address, city, state, zip code, and quantity of blenders ordered at $39.95 each. In an attractive format (similar to Figure 2-24), displ..

  Analysis comparing and contrasting the systems

Analysis comparing and contrasting the systems

  Write queries to retrieve data for tsql

Write SQL statements that will retrieve the following data from a database, using Subqueries and Joins. Using the Northwind database, write a SQL SELECT statement that will retrieve the data for the following questions:

  What are the basic network management functions

(1) What are the basic network management functions: OAMP? (2) Describe what are in SNMPv1

  Dss projects

DSS projects succeed more often than they fail or are challenged.

  The southern tiny college to develop student registration

You have been employed by the Southern Tiny College to develop Student Registration System. To understand the functions of Registrar Office, you have spent some time talking to various personnel in the Registrar Office and also you've examined ..

  Case study application architecture

You have been tasked with building a payroll program for a large organization with offices spread across the United States. The company has one larger data center that each office connects to via a wide area network (WAN). Write a 3-4 page paper i..

  Information assets to estimate for risk management

If organization has three information assets to estimate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first?

  What is the purpose of the system unit

1. What is the purpose of the system unit? 2. List and define the primary components of the motherboard. 3. List and define the primary subunits of the CPU.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd