Create a VIEW as Restaurants_Backup from your YELP Table
- Create a PARTIAL VIEW of only Restaurants in a single State or City
- Show an Update statement that uses a View ( update restaurants, and change a rating from before to a new value.
Write a stored procedure that gets all of the customers from the customers table on the OM database
Show all field names in your procedure. Provide the following;
1. Your Stored Procedure name.sql
2. Show you calling the stored procedure name
3. Show a screenshot of the output of the procedure being called with the data results
[Having sample data/table definition from the YELP table was
expected]
Assuming table definition: YELP (restaurant_id, restaurant_name,
rating, restaurant_type, created_on, manager_id, state, city,
pincode)
VIEW FOR Restaurants_Backup
CREATE VIEW Restaurants_Backup
AS SELECT * FROM YELP
Partial View for Restaurants in single State
Select * from VIEW Restaurants_Backup
GROUP BY State
Stored Procedure to get all customers from the customers table on the OM database
select customer_id from orders
StoredProcedureName
getCustomersFromOrderManagement.sql
Calling StoredProcedure
EXEC getCustomersFromOrderManagement;
[ there isn't any database information provided to share a screenshot of the sample data].
Create a VIEW as Restaurants_Backup from your YELP Table - Create a PARTIAL VIEW of only...
(SQL Coding) Create a read only view called: VIEW_EMPS_NO_SAL Have the view show all of the data from the employee table and the department id and department name from the departments table. Do not show the salary and commission percent from the o_employees table.
Write SQL to create a table called City in your account. The schema of the table is listed below. You must define the data types and not null constraint (if needed) of every column and all the primary key and foreign key constraints for the table. No screenshot needed for this question. City (Name, Country, Population, Capital). Name: the name of the city. Text string with maximum 50 characters. Must not be null. Country: the name of the country where...
create a handler you can visit to set up your database table. It contains all the fields needed to make a simple workout tracker. name - the name of the exercise reps - the number of times the exercise was performed weight - the weight of the weights used date - the date the exercise was performed lbs - a boolean indicating if the measurement is in lbs or kg. 1 indicates lbs, 0 indicates kgs. Requirements You need to...
Write code for mySQL 1) create a new one database ; to create your table 2) Every table should have a primary key 3) Table relationship has to be based on foreign key and shown within your physical table 4) Insert 5 data records in every table 9) Create a database view that return result set of all record and all columns within all 6 table
Question 32 Which view would you use to see only the tables you have created ALL_TABLES USER_TABLES USER_TABS ALL_OBJECTS 2 points Question 33 Which script will you execute to create new user DAVE and give him the ability to connect to the database and the ability to create tables, sequences, and procedures? CREATE USER dave IDENTIFIED BY dave18; GRANT create table, create sequence, create procedure TO dave; CREATE USER dave IDENTIFIED BY dave18; GRANT create session, create table, create sequence,...
Programming Microsoft Visual Basic 2012/2015 - Create an SQL or Access database with all your friends’ information and write a program to load the names in the combo box and also search the database and find your friend’s record off the database by name and retrieve all the information from the database to the form including your friend’s picture. You should be able to add new friends, update an existing friends’ information and delete a friend’s record. See the sample...
Using the MySQL Workbench create a new database using your design specifications Add at least 10 records to your tables. Note: Certain tables may not require 10 records and that is ok as long as your main tables have 10 or more Create MySQL statements that will retrieve all records or rows from the tables in your database Create 10 MySQL statements that will retrieve specified records or rows from one table in your database Create 10 MySQL statements that...
Create a table named Quiz within a database called ExamDB. You should use the embedded Java DB mode to implement this database. Data is stored in a text file in the following csv format (questionNumber, description, choice1, choice2, choice3, choice4, Answer). Create your own csv text file containing quiz questions. Read from this file and store the records in the Quiz table within the ExamDB database. Give the user a simple MCQ test from your Quiz table with 3 questions...
In this assignment you will combine HTML, PHP, and SQL in order to create a web form that allows a manager to add films to the sakila database. You will also create a method to allow the manager to view a list of all films along with their related information, and a list of actors in the movies. Task 1 Create an initial HTML page titled manager.html with 2 buttons. The first button will be labeled “View Films”, and the...
please use dia to draw the e-r diagram to create Entity -
Relationship Diagrams
then use MS access
This project requires you to create a database design. Your design will be documented in a set of Entity-Relationship Crow's Foot diagrams using the representation as shown in the lecture materials. Draw a set of Entity-Relationship diagrams to model the following scenario. The Maggs Realty Company wants to track the Sales Offices that they have across all of Ontario They are interested...