
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
Please start from declare the variable
Using SQL*Plus and SQL Developer tool, complete the following tasks
a. Create a PL/SQL script to display all user accounts and their account status.
b. Create a PL/SQL script to display all OPEN user accounts and their default tablespace
information.
c. Create a PL/SQL script to display all LOCKED user account and the expiry date of their
passwords.
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 2 steps

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
- SQL Developer provides a graphical user interface that can be used to send SQL commands to the Oracle Database Management System. Question 30 options: 1) True 2) Falsearrow_forwardCreate a function to determine the total pledge amount for a project. Use the function in an SQL statement to list all projects, displaying project ID, project name, and project pledge total amount. Format the pledge total amount to show a dollar sign. programming language - sqlarrow_forwardPostgreSql differs from the SQL Standard primarily by requiring which of these constructs. a. reference to either the old row or new row b. begin and end c. stored trigger function d. trigger credentialsarrow_forward
- plz help in sql In Triggers, BEFORE means before the changes are made in memory but after the changes are permanently saved to disk. Select one: a. True b. Falsearrow_forwardDatabase Q1: Select the correct SQL statement to provide the user Samer with read only permission on Employees table a) Grant read on Employee where username = Samer; b) Grant read only on Employee to Samer; c) Grant select to Samer on Employee; d) Grant select on Employee to Samer; Q2: Based on the TWO schema structures below, which SQL statement will create a view to show department names where each department has at least 5 employees? Employee (E_ID, E_Name, D_ID, E_Salary) Department (D_ID, D_Name, D_Address) (Select one) a) Create View Dept_Emp as select D_Name, count(E_ID) from Employee, Department where Employee D_ID = Department D_ID Group by D_Name Where count (E_ID) >= 5; b) Create View Dept_Emp as select D_Name, count(E_ID) from Employee D_ID = Department D_ID Group by D_Name Having count (E_ID) >= 5; c) Create View Dept_Emp as select D_Name, count(D_ID) from Employee, Department where Employee D_ID = Department D_ID Group by D_Name Having count (E_ID) >= 5; d)…arrow_forwardSubqueries--Create an sql script to answer the following questions.--List all products whose unit price is less than the average price.--List the shipper id, shipping company and freight cost for the order with the lowest freight charge.--List all products with their highest unit price, i.e. not discounted. --List the average unit price for each product category and--the average unit price without discountsarrow_forward
- A SQL Data Manipulation command like UPDATE or INSERT immediately saves the result to disk without further intervention from the user. Question 31 options: 1) True 2) Falsearrow_forwardplease use sql to answer the following questionarrow_forwardCreate an anonymous block in PL/SQL to list all the countries from Country table where Currency contain keyword ‘Dollar’. Perform following steps: Create user define type with name of the country, currency.Type should contain datatype for name and currency using %type only.Display should include Name of the country, currency code using user defined type. Filter for the data : All the countries from Country table where Currency contain keyword ‘Dollar’.arrow_forward
- Is it possible to use PL/SQL or T-SQL procedures on MySQL?arrow_forwardWrite the following inserts, deletes, or updates in SQL, using the universityschema. Increase the salary of each instructor in the Comp. Sci. department by 10%.arrow_forwardAnswer the following SQL questions using MySQL command language in MySQL Workbench, sakila database environment!arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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