
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

Transcribed Image Text:PROBLEM:
Create a table named BOOK_STORES to include the columns listed in the following chart.
Column Name
Store_ID
Name
Contact
Rep_ID
Datatype
NUMBER (8)
VARCHAR2(30)
VARCHAR2(30)
VARCHAR2(5)
Constraint Comments
PRIMARY KEY column
Should be UNIQUE and NOT NULL
:
INSTRUCTIONS:
Submit the complete code on doc file, run and also submit the snapshot of the result. You can paste
the screen shots(2) on a MS. Word doc.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Transcribed Image Text:Beta
MySQL
Main.sql X
HN34567
2
7 );
@paiza.io MySQL Online
CREATE TABLE BOOK_STORES (
Store_ID NUMBER(8) NOT NULL,
Name VARCHAR2(30) UNIQUE NOT NULL,
Contact VARCHAR2(30),
Rep_ID VARCHAR2(5),
PRIMARY KEY(Store_ID)
Run (Ctrl-Enter)
Enter a title here
New code
Name VARCHAR2(30) UNIQUE NOT NULL,
Contact VARCHAR2 (30),' at line 2
Recent code
WebDev
Runtime error(Exit status:1)
English
▼
Sign Up
Sign In
(1.38 sec)
Output Runtime error Input Comments 0
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NUMBER (8) NOT NU
LL,
Solution
by Bartleby Expert
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Transcribed Image Text:Beta
MySQL
Main.sql X
HN34567
2
7 );
@paiza.io MySQL Online
CREATE TABLE BOOK_STORES (
Store_ID NUMBER(8) NOT NULL,
Name VARCHAR2(30) UNIQUE NOT NULL,
Contact VARCHAR2(30),
Rep_ID VARCHAR2(5),
PRIMARY KEY(Store_ID)
Run (Ctrl-Enter)
Enter a title here
New code
Name VARCHAR2(30) UNIQUE NOT NULL,
Contact VARCHAR2 (30),' at line 2
Recent code
WebDev
Runtime error(Exit status:1)
English
▼
Sign Up
Sign In
(1.38 sec)
Output Runtime error Input Comments 0
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NUMBER (8) NOT NU
LL,
Solution
by Bartleby Expert
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- with comments please for the codesarrow_forwardTo test weather a table has been modified correctly as you do these exercises, you can write and run an appropriate SELECT statement. Or, when you're using mySQL Workbench, you can right-click on a table name in the navigator window and select the Select Rows - Limit 1000 command to display the data for the table in a Result tab. To refresh the data in this tab after modifying the table data, click the Refresh button in the toolbar at the top of the tab.1. Write an INSERT statement that adds this row to the Terms table: terms_id: 6 terms_description: Net due 120 days terms_due_days: 120 Use MySQL Workbench to review the column definitions for the Terms table, an dinclude a column list with the required columns in the insert statement. 2. Write an UPDATE statement that modifies the row you just added to the Terms table. This statement should change the terms_description column to "Net due…arrow_forwardWhich of the following values for the table-layout property is the default value? : A) auto B) fixed C) initial D) inheritarrow_forward
- Assume a University website has a procedure named DISPLAY_GPA(), see the procedure code below. When a student runs the procedure with his or her ID number, the procedure will display the student's name and his or her GPA. set serveroutput on; CREATE OR REPLACE PROCEDURE DISPLAY_ GPA ( P_ Stdid STUDENT.Stdid%Type) AS Stmt CONSTANT VARCHAR2(3000);= 'SELECT stdfn, stdin, StdGPA from Student Where StdiD ='’’ || P_Stdid || “”; Fname varchar2(30); Lname varchar2(30); GPA number(4); BEGIN DBMS Output.Put_Line (SQL Stmt:’|| Stmt); EXECUTE IMMEDIATE stmt into fname, Lname, GPA; DBMS OUTPUT.PUT_LINE(fname || ‘’|| Lname || ‘’| | GPA); End DISPLAY GPA/ Show error; Example of legitimate use: End DISPLAY_GPA (104); Output SQL Stmt: SELECT stdfn, stdin, StdGPA from Student Where StdiD = ‘104’ Sue Williams 3 PL/SQL procedure successfully completed. Assume you know someone whose last name is Roberson. Use SQL Injection technique to gain unauthorized access to at least two student's GPAs.…arrow_forwardcreate a form with two input field name and password use onfocus to focus to tell which should be entered to that field you can use alertarrow_forwardwith comments please for the codesarrow_forward
- Create a form that includes a dropdown list with 4 items: Windows 95, Windows XP, Windows NT, Windows 7. The form should contain submit button. Assume this form will use the processing program "formProc.cgi", which is located at www.formprocessing.com/cgi-bin. Form data should be sent to server by "POST".arrow_forwardExcel date fields have the date to the right of the decimal point, and time to the left of the decimal point. True Falsearrow_forwardWith the frmTutorSearch form still open in Design View, use the Title button to add a title to the form. Replace the default title text with Tutor Information Form. (Hint: Do not include the period.) Save and close the frmTutorSearcharrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education