Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the SQL statement that will list the names of all students who have a faculty advisor with an id of 1 . List the

image text in transcribed
Write the SQL statement that will list the names of all students who have a faculty advisor with an id of 1 . List the names in the following format the first name, one space, the middle initial, a period, a space, the last name (eg, John B. Smith). Write the SQL statement that will list the full name of each student along with the full name of his/her faculty advisor. List the names with the format used in the question above. Write the SQL statement that will list each building (BLDG_CODE) along with the total number of rooms, the average capacity per room, and the total capacity in each building. (Look up and use the DECODE function and change CR to Cedar Ridge, BUS to Business, and LIB to Library in the query). Write an SQL query that will list the students names along with their current age as of the day you run the query. The age must be in terms of an integer - someone may be 21 years old, not 21.73 years old. Write an SQL query that will list the following information for all students and all the courses the students have taken or are taking. s. id. s. first, s. Jast, s. class, teron desc. course name, credits, grade. In the context of this example, how should you interpret a grade of null? Write an SQL view that will list each faculty member by name, his/her rank, his/her phone number, and the building and room number of his/her office. Call the view FACDIRECTORY. Write the SQL statements giving the following permissions to user garman (I already have dba authority, thus I have these permission already. You really aren't granting me any new authority). a) Read only privilege on your STUDENT table. b) Insert privilege on your LOCATION table. c) UPDATE privilege on your FACULTY tables F_ RANK column only. d) Permission to add a column to your COURSE table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

What is another name for human relations?

Answered: 1 week ago