Using SQL, write Data Definition Language commands to set up the database schema for an Admission...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using SQL, write Data Definition Language commands to set up the database schema for an Admission Database System for a University with the tables below: a. STUDENT(SD, sName, GPA, sizeHS) b. COLLEGE(CName, state, enrollment) c. Apply(sID Name, major, decision) Hint: i. slis unique and not null for each Student Meme is unique and not null for each College ii. iii. slp. SName and major are unique for each record in the Apply table iv. GPA is a decimal value with at least 2 decimal points Research (over google) the SQL syntax of the SQL "INSERT INTO" statement and determine the commands to populate the tables with data below. COLLEGE cName Stanford Berkeley MIT Cornell STUDENT SID 123 234 345 456 567 678 789 987 876 765 654 543 sName Amy Bob Craig Doris Edward Fay Gary Helen Irene Jay Amy Craig state CA CA MA NY 3.9 3.6 GPA sizeHs 1000 1500 500 1000 3.5 3.9 enrollment 15000 36000 2.9 3.8 3.4 3.7 3.9 2.9 3.9 3.4 10000 21000 2000 200 800 800 400 1500 1000 2000 Apply SID 123 123 123 123 234 345 345 345 345 678 987 987 876 876 876 765 765 765 543 cName Stanford Stanford Berkeley Cornell Berkeley MIT Cornell Cornell Cornell Stanford Stanford Berkeley Stanford MIT MIT Stanford Cornell Cornell MIT major CS EE CS EE Biology Bioengineering Bioengineering CS EE History CS CS CS Biology marine biology History History Psychology CS decision Y N Y Y N Y N Y N Y Y Y N Y N Y N Y N Case Study 2: You are provided with the specification requirements below to implement a database management system (DBMS) for "Bank X" to store details about their Branches, Accounts, and Customers. SR-1: A BRANCH has a Branch that is numeric, a Branch Name, and Branch Address. The BranchJP.is unique for each branch while Branch Name and Branch Address may not be unique. SR-2: SR-3: CUSTOMER has an SSN field that is of numeric characters, along with Name, Phone, Address. SR-4: A Branch has multiple accounts linked to it, while an account can be linked to just one branch. A customer can possess no more than 4 accounts in the same branch but of different account types. While accounts are not shared between customers. SR-5: An ACCOUNT has an Account No field in numeric characters, Account Type, and Balance. The ACCOUNT_TYPE is either Savings, Checking, Credit Card, or Mortgage. The Account No is unique for each account. SR-6: A customer can have multiple accounts in different branches. SR-7: Only the customer's phone number may be empty (NULL), all fields in the database are mandatory. 3. Using SQL, write Data Definition Language (DDL) commands to set up the database schema with the below tables. Note: Include a primary key for each table: a. BRANCH (Branship. BranchNe BrensbAddress) b. ACCOUNT (ACcNo, AccTypeID, Branch, SSN, Balance) C. ACCOUNT_TYPE (ASGTvesIP. AccountType) d. CUSTOMER (SSN, Name, Phone, Address) 4. Using SQL, write Data Manipulation Language (DML) commands to populate the tables with data to illustrate SR4 to SR7. Using SQL, write Data Definition Language commands to set up the database schema for an Admission Database System for a University with the tables below: a. STUDENT(SD, sName, GPA, sizeHS) b. COLLEGE(CName, state, enrollment) c. Apply(sID Name, major, decision) Hint: i. slis unique and not null for each Student Meme is unique and not null for each College ii. iii. slp. SName and major are unique for each record in the Apply table iv. GPA is a decimal value with at least 2 decimal points Research (over google) the SQL syntax of the SQL "INSERT INTO" statement and determine the commands to populate the tables with data below. COLLEGE cName Stanford Berkeley MIT Cornell STUDENT SID 123 234 345 456 567 678 789 987 876 765 654 543 sName Amy Bob Craig Doris Edward Fay Gary Helen Irene Jay Amy Craig state CA CA MA NY 3.9 3.6 GPA sizeHs 1000 1500 500 1000 3.5 3.9 enrollment 15000 36000 2.9 3.8 3.4 3.7 3.9 2.9 3.9 3.4 10000 21000 2000 200 800 800 400 1500 1000 2000 Apply SID 123 123 123 123 234 345 345 345 345 678 987 987 876 876 876 765 765 765 543 cName Stanford Stanford Berkeley Cornell Berkeley MIT Cornell Cornell Cornell Stanford Stanford Berkeley Stanford MIT MIT Stanford Cornell Cornell MIT major CS EE CS EE Biology Bioengineering Bioengineering CS EE History CS CS CS Biology marine biology History History Psychology CS decision Y N Y Y N Y N Y N Y Y Y N Y N Y N Y N Case Study 2: You are provided with the specification requirements below to implement a database management system (DBMS) for "Bank X" to store details about their Branches, Accounts, and Customers. SR-1: A BRANCH has a Branch that is numeric, a Branch Name, and Branch Address. The BranchJP.is unique for each branch while Branch Name and Branch Address may not be unique. SR-2: SR-3: CUSTOMER has an SSN field that is of numeric characters, along with Name, Phone, Address. SR-4: A Branch has multiple accounts linked to it, while an account can be linked to just one branch. A customer can possess no more than 4 accounts in the same branch but of different account types. While accounts are not shared between customers. SR-5: An ACCOUNT has an Account No field in numeric characters, Account Type, and Balance. The ACCOUNT_TYPE is either Savings, Checking, Credit Card, or Mortgage. The Account No is unique for each account. SR-6: A customer can have multiple accounts in different branches. SR-7: Only the customer's phone number may be empty (NULL), all fields in the database are mandatory. 3. Using SQL, write Data Definition Language (DDL) commands to set up the database schema with the below tables. Note: Include a primary key for each table: a. BRANCH (Branship. BranchNe BrensbAddress) b. ACCOUNT (ACcNo, AccTypeID, Branch, SSN, Balance) C. ACCOUNT_TYPE (ASGTvesIP. AccountType) d. CUSTOMER (SSN, Name, Phone, Address) 4. Using SQL, write Data Manipulation Language (DML) commands to populate the tables with data to illustrate SR4 to SR7.
Expert Answer:
Answer rating: 100% (QA)
Answer Insert data into COLLEGE table INSERT INTO COLLEGE CName state enrollment VALUES ... View the full answer
Related Book For
Posted Date:
Students also viewed these databases questions
-
5) Global Tech Corp has the following capital structure: a. Debt = 35% b. Preferred Stock = 15% c. Common Stock = 50% d. After tax cost of debt = 6.5% e. Cost of preferred stock = 10% f. Cost of...
-
Consider the following information for two companies, A and B: In U.S $ Market Value of Equity (E) Market Value of Debt (D) Cost of Equity (Re) Cost of Debt (Rd) Tax Rate (Tax) Company B 500,000...
-
A small consulting company wants to make the switch to QuickBooks Online. All of their expenses are paid at the time they are incurred, so there is no need to track bills in the system. There is only...
-
Solve: y(4) +18y"+81y = 0 y(0) = -4, y'(0) = 8, y'(0) = 42, y"(0) = -108 - Submit Question X
-
If the potential energy for a conservative two-degree-of-freedom system is expressed by the relation V = ay2 + bx2, where y and x, determine the equilibrium positions and investigate the stability at...
-
Radisson Square Garden Entertainment (RSGM) reported net income of $100 million in 2022, after interest expenses of $10 million. (The corporate tax rate was 20%.) It reported depreciation of $15...
-
Section2.1 described a sample of \(n=50\) geographic areas (Zip codes) containing sales data on the Wisconsin state lottery ( \(y=\) SALES). In that section, sales were analyzed using a basic linear...
-
Doe Creek Interior Decorators issued a 120-day, 7% note for $150,000, dated February 18, 2014, to La Fleur Furniture Company on account. a. Determine the due date of the note. b. Determine the...
-
An electricity company pays today a dividend $ 1 . 6 4 per share and the share price is $ 2 7 . If the expected yield is 1 0 % what will be the dividend growth rate?
-
? ?? Journalize the closing entries. Include Posting References, using the account numbers in your spreadsheet. Refer to your answers from Chapter 4, Part 1 to complete this part. If an amount box...
-
In Problem 13.5, you used the GPA to predict the overall satisfaction of university students (stored in UPFBE ). a. At the 0.05 level of significance, is there evidence of a linear relationship...
-
In Problem 13.8, you used the number of Internet users to predict the number of Facebook users by country (stored in Internet ). a. Construct a 95% confidence interval estimate of the mean number of...
-
Are the economies that became member states of the European Union after 2004 catching up to the older members? The file EUGDP2017 contains real GDP growth rates in 2017 for the \(28 \mathrm{EU}\)...
-
In Problem 13.6, a prospective MBA student wanted to predict starting salary upon graduation, based on program per-year tuition. The data are stored in FTMBA . a. Construct a 95% confidence interval...
-
Define the terms explained variation and unexplained variation. How are they interrelated? Illustrate.
-
Find the Loop Currents: 12 = 13 = O
-
Why is a help desk and production support critical to system implementations? Discuss its interrelationship with the problem management and reporting system.
-
Determine the reactions at the pin at A and the rollers at B and C. EI is constant. Mo A L B Prob. F9-4 L C
-
Draw the shear and moment diagrams for the beam. Indicate values at the supports and at the points where a change in load occurs. 6 kN/m A -2 m- -2 m- Prob. F4-19 6 kN/m B -2 m-
-
Determine the force in member BD. AE is constant. 12 kN D -1.5 m Probs. 9-30/31 C 9 kN 2m B
-
The overall process of creating a capital budget proposal has a lot of similarities to writing a business plan for a start-up company. Describe three aspects of the similarities between a budget...
-
There are three general categories of capital budget scenarios: replacement, expansion, and investment in a NewCo. Describe the overall decision-making context for each. How do they draw on similar...
-
In analysis, some focus seems to be on the need for NPV equations to be applied to projects that are mutually exclusive. But in practice we find that the lines are blurred in capital budgeting....
Study smarter with the SolutionInn App