Name Midterm Score
William Smith67
Natalie Lopez85
Brenda Harper94
Adam Petrie85
Jennifer Warnes 56
Joni Mitchell 89
William Ackerman 96
Bing Crosby 74
Jose Carreras 78
Ans) CREATE TABLE TEST_SCORES ( id INTEGER PRIMARY KEY ,Name TEXT,Midterm score INTEGER);
INSERT INTO TEST_SCORES VALUES (1,"William Smith",67);
INSERT INTO TEST_SCORES VALUES (2,"Natalie Lopez",85);
INSERT INTO TEST_SCORES VALUES (3,"Brenda Harper",94);
INSERT INTO TEST_SCORES VALUES (4,"Adam Petrie",85);
INSERT INTO TEST_SCORES VALUES (5,"Jennifer Warnes ",56);
INSERT INTO TEST_SCORES VALUES (6,"Joni Mitchell",89);
INSERT INTO TEST_SCORES VALUES (7,"William Ackerman ",96);
INSERT INTO TEST_SCORES VALUES (8,"Bing Crosby",74);
INSERT INTO TEST_SCORES VALUES (9,"Jose Carreras",78);
SELECT * FROM TEST_SCORES;
How would you create this table using SQL(psql) ?? Create a table for the test scores...
Problems and Exercises 1 through 9 are based on the dass scheduling
3NF relations along with some sample data shown in Figure 6-11.
Not shown in this figure are data for an ASSIGNMENT relation,
which represents a many-to-many relationship between faculty and
sections.4. Write SQL data definition commands for each of the following queries:a. How would you add an attribute, Class, to the Student
table?b. How would you remove the Registration table?c. How would you change the FacultyName field from...
Create three or more MySQL Data Control language (DCL) Statements using the Youth League Database. 1. A Create new user statement for the database 2. A statement that grants privileges to the new user 3. A statement that revokes privileges 1. A SQL Text File containing the SQL commands to create the database, create the table, and insert the sample test data into the table. 2. A SQL Text File containing the DCL SQL Statements. eted hemas Untitled Limit to...
CREATE TWO C++ PROGRAMS : Program 1 Write a program that reads in babynames.txt (provided) and outputs the top 20 names, regardless of gender. The file has the following syntax: RANK# BoyName Boy#OfBirths Boy% GirlName Girl#OfBirths Girl% You should ignore the rank and percentages. Compare the number of births to rerank. Output should go to standard out. Program 2 Write a program that reads a text file containing floating-point numbers. Allow the user to specify the source file name on...
Write a program that reads in BabyNames.txt and produces two files, boynames.txt and girlnames.txt, separating the data for the boys and the girls, and listing them in alphabetical order. This is the code I have, Its not sorting the boys/girls names in seperate files. It is creatinf two files, but has all the names. I also need to alphabetize the names. with an Array. sort import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; public class BabyNames{ public static void main(String[]...
C++ Create an application that searches a file of male and female first names. A link to the file is provided on the class webpage. "FirstNames2015.txt" is a list of the most popular baby names in the United States and was provided by the Social Security Administration. Each line in the file contains a boy's name and a girl's name. The file is space-delimited, meaning that the space character is used to separate the boy name from the girl name....