A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3, Problem 2SCG
Add the following record to the VACATION_UNIT table: condo ID: 20; location number: 2; unit number: A04; square feet: 1680; bedrooms: 3; bathrooms: 3; condo fee: 775; and owner number: BL720. Display the contents of the VACATION_UNIT table.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Insert into the LARGE_PROPERTY table the office number, address, bedrooms, floors, monthly rent, and owner number from the PROPERTY table whose square footage is greater than 1,500 square feet.
Orders Table:
OrderID, CustomerID, Order Date, TotalAmount
Customers Table:
CustomerID,CustomerName.
Retrieve the customer name and order date
for each order placed by customers who have
made more than two orders.
Delete all properties in the LARGE_PROPERTY table for which the owner number is BU106.
Chapter 3 Solutions
A Guide to SQL
Ch. 3 - Prob. 1RQCh. 3 - How do you delete a table using SQL?Ch. 3 - Prob. 3RQCh. 3 - Prob. 4RQCh. 3 - Prob. 5RQCh. 3 - Prob. 6RQCh. 3 - Prob. 7RQCh. 3 - Prob. 8RQCh. 3 - Prob. 9RQCh. 3 - Prob. 10RQ
Ch. 3 - Prob. 11RQCh. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Use SQL to complete the following exercises....Ch. 3 - Prob. 2TDCh. 3 - Prob. 3TDCh. 3 - Prob. 4TDCh. 3 - Prob. 5TDCh. 3 - Prob. 6TDCh. 3 - Prob. 7TDCh. 3 - Prob. 1CATCh. 3 - Add the following row to the ADVENTURE_TRIP table:...Ch. 3 - Prob. 3CATCh. 3 - Prob. 4CATCh. 3 - Prob. 5CATCh. 3 - Prob. 6CATCh. 3 - Review the data for the TRIP table in Figure 1-5...Ch. 3 - Colonial Adventure Tours would like to increase...Ch. 3 - Prob. 1SCGCh. 3 - Add the following record to the VACATION_UNIT...Ch. 3 - Delete the VACATION_UNIT table.Ch. 3 - Prob. 4SCGCh. 3 - Prob. 5SCGCh. 3 - Prob. 6SCGCh. 3 - The SERVICE_REQUEST table uses the CHAR data type...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
In Problems 1 through 10, find a function y=f(x) satisfying the given differential equation and the prescribed ...
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
The ____________ is always transparent.
Web Development and Design Foundations with HTML5 (8th Edition)
Leap Year Detector Design a program that asks the user to enter a year, and then displays a message indicating ...
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
An online or hard-copy repository for all project correspondence, inputs, outputs, deliverables, procedures, an...
Essentials of Systems Analysis and Design (6th Edition)
Why is the study of database technology important?
Database Concepts (7th Edition)
7 18 (Exception Handling vs. Other Schemes) Compare and contrast exception handling with the various other erro...
C++ How to Program (10th Edition)
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
- Employee_id Name Salary 1001 Annie 6000 1009 Ross 4500 1018 Zeith 7000 This is Employee table. Which of the following employee_id will be displayed for the given query? SELECT * FROM employee WHERE employee_id>1009; a) 1009, 1001, 1018 b) 1009, 1018 c) 1001 d) 1018arrow_forwardChange the OCCUPIED column in the LARGE_PROPERTY table to N for OWNER NUM KO104.arrow_forwardquestion 15 please use the picture below to answer the following question Display customer number, customer name, and location for customers whose Customer_name starts with letter C. Sort the result based on customer number.arrow_forward
- Display the customer ID, name, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once by showing order ID 0.arrow_forwardConsider Following Tables. Student ( regNo, sName, sCity, sCGPA, sAge) Course ( cCode, cName, credit_hours) Enrollment (regNo, cCode, semester, Grade) NOTE: you must use “JOINS” query only. Display names of all those students who have “A” Display student name and ccode of all those students who have ‘F’ grade in 5th Display data of all those students who have enrolled at least 10 Display grade of ‘Ali’ in course ‘CS101’. Display all courses of ‘Amir’ along with grade, also display names of courses which are not yet enrolled by ‘Amir’. Display course names along with number of enrolled student in it. If no one has yet enrolled that particular course, it must display ‘0’ in number of enrollment Display list of courses which are taught in 7th (course name must not repeat) Display list of all students by name and course name they have Display names of students and names of courses they have enrolled. Also display student’s name that have not enrolled any course Display all those students…arrow_forwardGuest details and Total Charges paid Display guest details who paid total charges RS.50000 and above. Write a query to fetch Guest id, Guest name and Sum of total charges. Give alias name to total charges as TOTALPAID. Sort the result by guest id. RESORT MANAGEMENT SYSTEM Pointofinterest Town Manager PK towniD Number manageriD Number PK pointiD Number PK townname Varchar(30) describe Varchar(30) name varchar(30) varchar(30) varchar(30) + varchar(30) state opentime varchar(10) PC address varchar(30) longitude varchar(20) varchar(15) closetime varchar(10) latitude city phone FK townID Number summertemp Number wintertemp Number sealevel Number Resort Guest Review PK resortiD Number gasanb Number varchar(30) PK guestiD FK.PK guestID Number resortName varchar(30) name FK.PK resortiD Number street varchar(30) address varchar(30) + dateofreview Date townname varchar(30) varchar(20) varchar(30) country email comments varchar(150) FK townid Number Number Number phone varchar(15) starRating FK…arrow_forward
- Guest details and Total Charges paid Display guest details who paid total charges RS.50000 and above. Write a query to fetch Guest id, Guest name and Sum of total charges. Give alias name to total charges as TOTALPAID. Sort the result by guest id. RESORT MANAGEMENT SYSTEM Pointofinterest Town Manager PK pointiD Number PK towniD Number PK manageriD Number townname Varchar(30) describe Varchar(30) name varchar(30) varchar(30) varchar(30) + varchar(30) state opentime varchar(10) address varchar(30) longitude latitude city varchar(20) closetime varchar(10) phone varchar(15) FK townID Number summertemp Number wintertemp Number sealevel Number Resort Guest Review PK resortiD Numbes gasanb Number varchar(30) PK guestiD FK.PK guestID Number resortName varchar(30) name FK.PK resortiD Number varchar(30) street ANAES address varchar(30) ++ dateofreview Date townname varchar(30) varchar(20) varchar(30) country email comments varchar(150) FK townid Number phone varchar(15) starRating Number FK…arrow_forwardThe following fields are presented in the table: Member Last Name, MemberFirstName, Street, City, State, ZipCode and MemberFee. The table contains 75,000 documents. How would you build indexes for the table and why would you create these indexes?arrow_forwardQ1- List all employees whose job_id is IT_PROG and hired after 01-JAN-95 and earning more than5000.Q2- List all employee except those with employee_id 101, 102, 103, 104 and 105Q3- Display the city attribute from locations table. Show the ones that contain “South” in the city.Sort the list in descending order.Q4- Display the first name, last name, salary, manager id and job id of all employees whose last fourcharacters of job id ends with “LERK”.Q5- Display the first name, last name and salary of all employees. Round the salary to the nearestunit of 1000 (ex. Salary=4500 New Salary=5000). Label the column as "New Salary".arrow_forward
- SELECT FIRST_NAME, LAST_NAME, SCHOOL_FEE FROM STUDENT, FEE_PAYMENT WHERE STUDENT. STUDENT_ID=FEE_PAYMENT. STUDENT_ID ORDER BY FIRST_NAMEarrow_forwardInsert a row into the LARGE_PROPERTY table for a new property. The office number is 1, The address is 2643 Lugsi Dr., The number of bedrooms is 3, The number of floors is 2, The monthly rent is $775, The owner number is MA111. Make sure to include the period (.) in the address.arrow_forwardUse the following table to answer the questions below: Table name: Customers Column Name Role Data Type Length Constraint customerID stores the ID of a customer Char 5 Primary key custFName stores the first name of a customer Varchar2 35 Cannot be null custLName Stores the last name of a customer Varchar2 35 Cannot be null custGender Store the gender of a customer Char 1 It should be ‘M’ or ‘F’ custDOB Stores the date of birth of a customer Date custIncome Store the income of a customer Number 4 Write in SQL a command that creates the table Customers according to the above description (2 marks). Write in SQL a statement that adds a new column named accountID of type Char(8). This column should be defined as a foreign key that relates the table Customers to the table Account (1.5 marks). Write in SQL a command that deletes the customers whose date of birth is after 22-Dec-1990 (1.5 Marks).…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY