1. Create a database called book_store that has a table called books in which has (book_name, author, year_of_publication, publisher). 2. Create a Database name "university", then Create two tables. The first table name "Student" which has five columns (Stu_id, stu_fname, stu_Lname, Address, email „phone no). The second table name" Department" which has three columns (dept_name ,building ,Level).
Q: Write an application that creates a database named Personnel. The database should have a table named…
A: JAVA CODE import java.sql.*;import java.util.*; public class JdbcEx { public static void…
Q: Assume you have a table in your database called World' with the following schema: Table: World |…
A: NOTE: I have given the answer as asked in the question Solution: WHERE: conditionally…
Q: ance" in the "AdventureWorksDW2017" database and returns those amounts, organized by month, and…
A: In this query we will use GROUP BY clause for grouping of Date and Amount Where clause for the…
Q: Which of the following data dictionary objects should be used to view information about the…
A: Data Dictionary: A data dictionary is an essential part of database. It is defined as the…
Q: 1. Create an Oracle table with a minimum of two varchar(2) fields (one should be a persons name), a…
A:
Q: Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the…
A: Q: Write required SQL statement for give problem
Q: Create the following table in your database with the following schema: Table: Users I Column Name 1…
A: Note:- As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: You have recently been hired to create an inventory management system for “Book Hub”, a new online…
A: Answer : the question was incomplete with my experience on subject i attempting the answer
Q: The marketing team wants to celebrate the success of StayWell with a party. The team wants a table…
A: SELECT FIRST_NAME as PARTICIPANT, SURNAME AS LAST_NAME FROM RESIDENTSUNIONSELECT FIRST_NAME as…
Q: 1. Create a database called book_store that has a table called books in which has (book_name,…
A: Given: Create a database called book_store that has a table called books in which has (book_name,…
Q: Write a PHP script that obtains a URL and its description from a user and stores the infor- mation…
A: STEP 1 - Creating a SQL script:- STEP 2 - Connecting to MySQL:- STEP 3 - Creating an HTML form:-
Q: First step is to built the database schema using the following query- CREATE SCHEMA `organization`…
A: The new attributes will get added in the primary table form in the database table .
Q: go create table salesman( salesman_id int primary key, name varchar(30), city varchar(20),…
A: select sum(commission) as total_commision from salesman; the above function will calculate total…
Q: i keep getting this message Msg 1778, Level 16, State 0, Line 23 Column 'salesman.salesman_id' is…
A: Given error is Column 'salesman.salesman_id' is not the same data type as referencing column…
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: The database schema would have the following structure. The primary keys are underlined and foreign…
Q: # Question 1 #Using the World database, in the city table, insert a new city for the Tasmania…
A: What is SQL: SQL is a language for interacting with databases. SQL is the standard language for…
Q: Create the following table in your database with the following schema: Table: Patients | Column Name…
A: The code is given below.
Q: You have a frequent itemset I={football, cricket, swimming, climbing} that contains 4 items. What…
A: Ans:) The answers are given below.
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: Database schema: The database schema would have the following structure (primary keys are italicised…
Q: Design the Java FX Insurance Policy registration as follows. List view contains five policies as…
A: Answer: I have done code and also I have attached code as well as code screenshot. And this is not…
Q: 1. Create a new database, save it on the desktop and name it "School Database" 2. Create a Table in…
A: Actually, database is a used to stores the data.
Q: Write a PHP application that creates a class that allows connection to a specific MySQL database,…
A: Here we have given code for php application that creates a class that allows connection to a…
Q: The dataset has two features: sepal length, sepal width. The third column is for species, which…
A: KNN algorithmOne of the simplest machine learning algorithms is the KNN or k-nearest neighbors…
Q: Below is part of a student database for your reference. The primary keys are highlighted in bold.…
A: 10) FROM student s, enrollment r, course c 12) AND r.courseno=c.courseno 22) FETCH course_list into…
Q: Create the following table in your database with the following schema: Table: Customer +- | Column…
A: syntax to create table:- create table tableName(column_name data_type constraint); syntax to insert…
Q: connect with database called university , the database contain 3 Tables o Student Table \ this…
A: STUDENT TABLE BEGIN TRANSACTION;/* Create a student table */CREATE TABLE student(Id integer PRIMARY…
Q: Given an object context named mmaBooks that contains an entity class named Customer and an entity…
A: Entity Framework: The Entity Framework acts as a layer between an application's database and its…
Q: 4.1 Create a database called checkersproducts using MySQL or any relational database management…
A: In below we make a program to fulfill all the question: 1.create database and table products: CREATE…
Q: 3.8 LAB - Create LessonSchedule table with FK constraints Two tables are created: Horse with…
A: The SQL Query for LessonDateTime table is given below The 2 constraints are kept in mind while…
Q: 18. What is the best data type definition for Oracle when a field is alphanumeric and has a length…
A: Oracle Database is a multi-model cross-platform database management system developed by Oracle…
Q: • Create a new database called 'Library' • Create two tables in the database O First table name is…
A: A database is an organized collection of data, so that it can be easily accessed and managed. You…
Q: We need to create a database for the Circulation Department of a public library. The database will…
A: The database schema would have the following structure (primary keys are italicised and foreign keys…
Q: assume that a database has a table named Stock, with thefollowing columns:Column Name…
A: Create a table named Stock. Table Stock has the following columns: Trading_Symbol of type nchar…
Q: First, create a MySql database or use an existing database (make sure to use a UTF8 character set)…
A: To set the Character set to UTF-8 use below command: SET NAMES 'utf8'; above command will set the…
Q: Write a script that implements the following design in a database named my_web_db: downloads…
A: In Database language **************** a. CREATE TABLE downloads ( download_id INT, user_id…
Q: Question2 Create a database in MYSQL with the following columns and populate it. Name of database…
A: Create database and table first: create database student_db; use student_db; create table…
Q: A private kindergarten, Happy Learning, wants to build a database to manage their operations. You…
A: there are eight entities in a class. the primary key of each class is shown in a table foreign key…
Q: Write a query against the Sales.Orders table that returns orders placed in June 2015. 2)Write a…
A: Since you have asked multiple questions, so we have provided answer for first three questions. If…
Q: Build an application for a car rental company. It should offer the following features: • Maintain a…
A: Build an application for a car rental company. It should offer the following features:• Maintain a…
Q: Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called…
A: CREATE DATABASE:A new SQL database is created using the CREATE DATABASE statement.Syntax:CREATE…
Q: The database has three tables for tracking horse- riding lessons: 1. Horse with columns: o ID -…
A: Answer: Create table Horse with below attributes, respective data types, and primary key create…
Q: assume that a database has a table named Stock, with thefollowing columns:Column Name…
A: “SELECT” statement: The "SELECT" statement is been used for selecting data from a database. The…
Q: Assignment Create a database in Access. In the database include the following tables: • Student info…
A: JOIN: This word refers to the act of combining two or more things. In SQL, Joining means "to join…
Q: Create a user Nurse. (Screenshot 1) Create a database Hospital. (Screenshot 2) Grant Nurse…
A: The given problem
Q: Write a script that attempts to insert a new category named “Guitars” into the Categories table. If…
A: In the script, So the category 'Guitars' that you want to insert is already present, then logic is…
Q: 1. CourseId ---- String 2. CourseName ---- String 3. TeacherName ---- String 4. college ---- String…
A: · Make an Application called “ Student Management System ” that connect with database called…
Q: You have a table that contains the following fields: Last Name, First Name, Street, City, State, and…
A: The above question is solved in step 2:-
Q: me Data type Constraint AuthorID Integer, auto-increment Primary key Name Up to 40 characters…
A: Use phpmyadmin to create a MySQL database called “library” that contains the following tables:…
Q: 5. Now compute Average GPA in each class. Display class_code, Class_GPA. Assume all courses are 3…
A: Now compute Average GPA in each class. Display class_code, Class_GPA. Assume all courses are 3…
Q: Q1/ A library service wants to create a database to store details ofits libraries, books and…
A: Solution: Approach: Step 1: List of entities and sub entities: Book BookCopy Library: two kinds…
Help guys
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images
- Write a script that adds an index to the MyGuitarShop database for the zip code field in the Addresses table. Write a script that implements the following design in a database named MyWebDB: In the Downloads table, the UserID and ProductID columns are the foreign keys. In the Users table, the EmailAddress and LastName columns are required, but the FirstName column is not. Include a statement to drop the database if it already exists. Include statements to create and select the database. Include any indexes that you think are necessary. 3. Write a script that adds rows to the database that you created in exercise 2. Add two rows to the Users and Products tables. Add three rows to the Downloads table: one row for user 1 and product 1; one for user 2 and product 1; and one for user 2 and product 2. Use the GETDATE function to insert the current date and time into the DownloadDate column. Write a SELECT statement that joins the three tables and retrieves the data from these tables like…Write Two CREATE USER Statements for the Publisher -Author - Books - Marketing: Database -- drop the database Publisher -Author - Books - MarketingDB if it already exists DROP DATABASE IF EXISTS PublisherAuthorBooksMarketingDB; -- create a database with name Publisher -Author - Books - MarketingDB CREATE DATABASE IF NOT EXISTS PublisherAuthorBooksMarketingDB; -- ensure that the database is used USE PublisherAuthorBooksMarketingDB; -- create the table for Publisher DROP TABLE IF EXISTS Publisher; CREATE TABLE IF NOT EXISTS Publisher ( pid VARCHAR(25), pubName VARCHAR(50), email VARCHAR(50), address VARCHAR(50), phone VARCHAR(15), CONSTRAINT Publisher_PK PRIMARY KEY(pid) ); -- create the table for Author DROP TABLE IF EXISTS Author; CREATE TABLE Author( socSecNum VARCHAR(15), authName VARCHAR (50), phone VARCHAR (15), address VARCHAR (50), email VARCHAR (50), CONSTRAINT Author_PK PRIMARY KEY (socSecNum) ); -- create the table for Marketer…Task 5: ' The Driver Relationship team realized that there is no need for DRIVER_DRIVING_LICENSE_CHECKED field in the active drivers table. Since all the drivers are already active in InstantRide, their driving licenses should be checked regularly. The team wanted you to remove the field from the table. ANSWER IN MYSQL PLEASE
- Suppose that a mattress store has a TABLE1 with sales representatives with an attribute vcode as primary key. It also has a TABLE2 with every mattress sold, the table has an attribute vcode to indicate which sales representative made the sale, and a mt_code to indicate which mattress was sold. Which of the following returns all the sales representatives that haven't closed a sale? a. SELECT * FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL. b. SELECT * FROM TABLE1 JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL. c. SELECT * FROM TABLE1 RIGHT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NULL. d. SELECT * FROM TABLE1 RIGHT JOIN TABLE2 ON TABLE1.vcode = TABLE2.vcode WHERE mt_code IS NOT NULL.The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule.The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule. Hint: Perform a join on the Student and LessonSchedule tables, matching the student IDs
- You have a table that contains the following fields: Last Name, First Name, Street, City, State, and Postal Code. There are 50,000 records in the table. What indexes would you create for the table? You have a table that contains the following fields: Book ISBN Number, Book Title, Author Last Name, Author First Name, Publication Year, and Publisher Name. There are 75,000 records in the table. What indexes would you create for the table?Write a PHP application that creates a class that allows connection to a specific MySQL database, allowing the specification (by setting some properties) of the location server, user, password, and database name. Give a example of instantiating it (creating an object) and using it in an application with a MySQL tableCreate a MySQL Database called “CSC306Class”. Create three (3) tables in the database called “studentInf”, “IntructorInf”, and “LikedAndDisliked”. Each table should consist of five columns that are relatable to the table name. Insert at least five row of data in each table. The data can be any information as long as it is related to the table name.
- MySql Workbench CREATE TABLE students ( id INT PRIMARY KEY, first_name VARCHAR(50), last_name VARCHAR(50), age INT, major VARCHAR(50), faculty VARCHAR(50)); CREATE TABLE location ( id INT PRIMARY KEY, name VARCHAR(50), rooms INT); CREATE TABLE faculty ( id INT PRIMARY KEY, name VARCHAR(50), department_id INT); 1. List last name of all students whose first name is longer than 4 letters in ascending order accordingto the last name. Duplicated rows should be removed from the output.2. Count the total number of rooms in Location.3. Find the number of students in each major.4. Find the number of employees in each department who get no commission or have salary less than5000.5. Find the maximum salary of employees in each department that the employee was hired 15 yearsbefore now. *hint: user TIMESTAMPDIFF(<unit type>,<Date_value 1>,<Date_value 2>), the unitcan be YEAR, MONTH, DAY, HOUR, etc...The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule for Feb 1, 2020 with the lesson date/time, student's first and last names, and the horse's registered name. Order the results in ascending order by lesson date/time, then by the horse's registered name. Make sure unassigned lesson times (student ID is NULL) appear in the results.Create table Medicine (MInventory_Id int primary key, M_Name varchar (40), Manufacturer varchar (40), Price varchar (20), Quantity int, Exp_Date date); Create table PrescriptionMedicine (Prescription_Id int primary key, MInventory_Id int); Example of a table (Medicine) Insert into Medicine values(101, ‘Biaxin’, ‘Pfizers’, ‘$10.99’, 1, 10/5/02); Insert into Medicine