Question

Question 32 Which view would you use to see only the tables you have created ALL_TABLES...

Question 32

  1. 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

  1. 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, create procedure TO dave;

    CREATE OR REPLACE USER dave IDENTIFIED BY dave18;
    GRANT create session, table, sequence, procedure;

    CREATE dave IDENTIFIED BY dave18;
    GRANT create connect, table, sequence, procedure TO dave;

2 points

Question 34

  1. To add a column to table INV use which command

    MODIFY TABLE INV ADD column datatype

    ALTER TABLE INV ADD column datatype

    MODIFY TABLE INV INSERT column datatype

    ALTER TABLE INV INSERT column datatype

2 points

Question 35

  1. Any select statement can be stored in the database as a view.

    True

    False

2 points

Question 36

  1. The following code creates a table named student_table with four columns: id, lname, fname, lunch_num

    CREATE TABLE student_table (

    id NUMBER(6),

    lname VARCHAR(20),

    fname VARCHAR(20),

    lunch_num NUMBER(4));

    The lunch_num column in the above table has been marked as UNUSED. Which of the following is the best statement you can use if you wish to

    remove the UNUSED column from the student_table?

    DROP column

    ALTER TABLE DELETE UNUSED COLUMNS

    ALTER TABLE DROP UNUSED COLUMNS

    ALTER TABLE DELETE ALL COLUMNS

2 points

Question 37

  1. A Top-N Analysis is capable of ranking a top or bottom set of results.

    True

    False

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: Hey! kindly find your solution below. Let me know if any issue. Thanks.

32- To view the tables of current user we will use this- user_tables

33- CREATE USER dave IDENTIFIED BY dave18;
GRANT create session, create table, create sequence, create procedure TO dave;

34- ALTER TABLE INV ADD column datatype. To add a column in existing table we will use this statement.

35- True statement. We can store any select statement as a view.

36- ALTER TABLE DROP UNUSED COLUMNS. To drop an unused column from a table we will use this statement.

37. It's a true statement.

Add a comment
Know the answer?
Add Answer to:
Question 32 Which view would you use to see only the tables you have created ALL_TABLES...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SQL Query Question: I have a database with the tables below, data has also been aded...

    SQL Query Question: I have a database with the tables below, data has also been aded into these tables, I have 2 tasks: 1. Add a column to a relational table POSITIONS to store information about the total number of skills needed by each advertised position. A name of the column is up to you. Assume that no more than 9 skills are needed for each position. Next, use a single UPDATE statement to set the values in the new...

  • Someone Please Help Me modify this in PHP I'm in desperate need I cant figure this out ... Make t...

    Someone Please Help Me modify this in PHP I'm in desperate need I cant figure this out ... Make the following modifications: For the vendors table: Comment out the table-level primary key Change the VendorIDcolumn to be a column-level primary key Add a VendorEmail column to the bottom of the table definition (define the data type for the column as variable character and set it to not exceed 45 characters) After the lineItems table, add code to create a table...

  • Using SQL, carry out the various DML and DDL functions on the tables mentioned below: 1....

    Using SQL, carry out the various DML and DDL functions on the tables mentioned below: 1. Insert the data given above in both employee, department and project tables. 2. Display all the employees’ information. 3. Display Employee name along with his SSN and Supervisor SSN. 4. Display the employee names whose bdate is ’29-MAR-1959’. 5. Display salary of the employees without duplications. 6. Display the MgrSSN, MgrStartDate of the manager of ‘Finance’ department. 7. Modify the department number of an...

  • Answer the following and explain so I can double check my answers If you use the Management Studio to create a database, the Studio will automatically create a database file plus a ________________...

    Answer the following and explain so I can double check my answers If you use the Management Studio to create a database, the Studio will automatically create a database file plus a ______________________ file. 10 points    QUESTION 2 When you use the Management Studio to create a check constraint, you can specify whether you want the constraint enforced for insert or __________________ operations. 10 points    QUESTION 3 When you use the Management Studio to create a database, including its tables...

  • Use only a single SQL statement for each of the following questions 1 Give a listing of all the ssns,first names and the class descriptions of all the classes the students are taking. If there a...

    Use only a single SQL statement for each of the following questions 1 Give a listing of all the ssns,first names and the class descriptions of all the classes the students are taking. If there are no class _descriptions display 'No description is available yet'. (USE NVL) 2 Give a listing of only the lname and the class_code for students who are taking 'Introduction to C programming'. (Inner join) 3 Give a lising of all the class_descriptions and the number...

  • DROP TABLE EMPLOYEE; DROP TABLE JOB; DROP TABLE EMP; DROP TABLE EMP_1; DROP TABLE EMP_2; CREATE...

    DROP TABLE EMPLOYEE; DROP TABLE JOB; DROP TABLE EMP; DROP TABLE EMP_1; DROP TABLE EMP_2; CREATE TABLE JOB(JOB_CODE CHAR (3) PRIMARY KEY, JOB_DESCRIPTION VARCHAR (20) NOT NULL,JOB_CHG_HOUR NUMBER (5,2) NOT NULL,JOB_LAST_UPDATE DATE NOT NULL); INSERT INTO JOB VALUES('500','Programmer','35.75','20-Nov-2017'); INSERT INTO JOB VALUES('501','System Analyst','96.75','20-Nov-2017'); INSERT INTO JOB VALUES('502','Database Designer','125.00','24-Mar-2018'); CREATE TABLE EMPLOYEE(EMP_NUM CHAR (3) PRIMARY KEY,EMP_LNAME VARCHAR (15) NOT NULL,EMP_FNAME VARCHAR (15) NOT NULL, EMP_INITIAL CHAR (1),EMP_HIREDATE DATE NOT NULL,JOB_CODE CHAR (3), EMP_YEARS NUMBER (2),FOREIGN KEY (JOB_CODE) REFERENCES JOB (JOB_CODE)); INSERT...

  • ONLY ODD NUMBERS. YOU MUST USE ORACLE OR MY SQL. THANKS Chapter 3 TAL Distributors Use...

    ONLY ODD NUMBERS. YOU MUST USE ORACLE OR MY SQL. THANKS Chapter 3 TAL Distributors Use SQL to complete the following exercises 1. Create a table named SALES_ REP. The table has the same structure as the REP table shown in Figure 3-11 except the LAST_NAME column should use the VARCHAR data type and the COMMISSION and RATE columns should use the NUMBER data type. Execute the command to describe the layout and characteristics of the SALES_REP table. Add the...

  • Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB...

    Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB4DB; USE LAB4DB; CREATE TABLE CUSTOMER ( CUS_CODE int primary key, CUS_LNAME varchar(15), CUS_FNAME varchar(15), CUS_INITIAL varchar(1), CUS_AREACODE varchar(3), CUS_PHONE varchar(8), CUS_BALANCE float(8) ); INSERT INTO CUSTOMER VALUES('10010','Ramas','Alfred','A','615','844-2573','0'); INSERT INTO CUSTOMER VALUES('10011','Dunne','Leona','K','713','894-1238','0'); INSERT INTO CUSTOMER VALUES('10012','Smith','Kathy','W','615','894-2285','345.86'); INSERT INTO CUSTOMER VALUES('10013','Olowski','Paul','F','615','894-2180','536.75'); INSERT INTO CUSTOMER VALUES('10014','Orlando','Myron','','615','222-1672','0'); INSERT INTO CUSTOMER VALUES('10015','O''Brian','Amy','B','713','442-3381','0'); INSERT INTO CUSTOMER VALUES('10016','Brown','James','G','615','297-1228','221.19'); INSERT INTO CUSTOMER VALUES('10017','Williams','George','','615','290-2556','768.93'); INSERT INTO CUSTOMER VALUES('10018','Farriss','Anne','G','713','382-7185','216.55'); INSERT INTO CUSTOMER VALUES('10019','Smith','Olette','K','615','297-3809','0'); /*...

  • QUESTION 9 You plan to query data using the TRANS_HIST_V view that was created by another...

    QUESTION 9 You plan to query data using the TRANS_HIST_V view that was created by another user in their schema. Which statement is true? A. The Oracle Server will retrieve the view definition from the ALL_VIEWS data dictionary view. B. The Oracle Server will retrieve data, determined by the query criteria, from the TRANS_HIST_V view. C. The Oracle Server will verify whether you have been granted access privileges to the TRANS_HIST_V view. D. The Oracle Server will automatically reset the...

  • Please answer the question following this tables. Use this tables to answer database management questions. 2....

    Please answer the question following this tables. Use this tables to answer database management questions. 2. List the complete Session table (all rows and all columns). 4. List the last name and first name of every therapist not located in Palm Rivers. 6. List the session number and patient number for every therapy that lasted 60 minutes. 8. List the TherapyCode and description for all therapies that are billed in 15-minute units. Sort them in order by description. 10. Currently,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT