Query 1-1
Display realtor staff number, name, position, annual salary as Annual Salary and monthly salary as Monthly Salary. Round monthly salary to 2 decimal places. Sort output by staff number ascending.
Numb Staff Name Position Annual Salary Monthly Salary
---- ---------------------------------------- -------------------- ------------- --------------
Query 1-2
For rental properties that have been rented for less than the listing rental rate (REN_RATE), display rental property number, street, city, state, zip, the listing rent rate and actual rental rate.
Prop Street City St Zip C Contract Rate Rent Rate
---- ------------------------- -------------------- -- ----- ------------- ----------
Query 1-3
For each listed rental property, display the rental property number, street, city, state, type, number of rooms, rent, owners first and last name, listing agents name and commission and listing branch name. Order by listing agent.
Prop Street City St Type Rooms Rent Owner First Owner Last Name Listing Agent Comm Percent Branch
---- ------------------------- -------------------- -- --------------- ---------- ---------- ------------ --------------- ----------------- ------------ ---------
Query 1-1: select Numb_staff, Name, Position, Annual_Salary as [Annual Salary], Round(Monthly_Salary, 2) as [Monthly Salary] from table_name order by numb_staff
Query 1-2: select * from table_name where Contract_Rate < Ren_Rate
Query 1-3: select * from table_name order by listing_agent
NOTE: Since the table name was not declared in the question,
feel free to change the table_name as the actual name of the
table
If there is anything you would like to know please leave a comment.
Thank you.
Query 1-1 Display realtor staff number, name, position, annual salary as Annual Salary and monthly salary...
Q.No.1 Convert following conceptual design into logical design: Supervisor Supervises Registers Optional) 0.10 Staff staffNo (PK) namo fName IName position Sex DOB 0..1 Manages 0_100 Property For Rent property No PK) address street city postcode type rooms rent 1..1 Associated with Views Clent dentNo (PK) name Namo IName telo 1.. viewDate comment Owns Holds States 0. Owner ownerNo {PK) address telo {Manciatory, Ort Preference profТуро maxRont Lease TeaseNo {PK) payment Method dopositPaid rentStart rentFinish Ideposit duration Private Owner Business Owner...
Draw an ER Model, the corresponding relational model (logical model), and the physical model for the following problem. A video rental company has several branches throughout the UAE. The data held on each branch is the branch address made up of street, city, state, and zip code, and the telephone number. Each branch is given a branch number, which is unique throughout the company. Each branch is allocated staff, which includes a Manager. The Manager is responsible for the day-to-day...
13 Write a query to display each department’s name, location,
number of employees, and the
average salary for all employees in that department. Label the
columns Department ,
Location, Number of Workers, and Average Salary, respectively.
Round the average salary to two decimal places
.
Tables (Filtered) + COUNTRIES DEPARTMENTS 0 DEPARTMENT_ID DEPARTMENT_NAME MANAGER_ID 1 LOCATION_ID 0 EMPLOYEES - EMPLOYEE_ID 1 FIRST_NAME LAST_NAME EMAIL IPHONE_NUMBER HIRE_DATE JOB_ID SALARY 0 COMMISSION_PCT " MANAGER_ID " DEPARTMENT_ID + JOB_GRADES - JOB_HISTORY + JOBS...
12.12 Read the following case study, which describes the data requirements for a DVD rental company. The DVD rental company has several branches throughout the United States. The data held on each branch is the branch address made up of street, city, state, and zip code, and the telephone number. Each branch is given a branch number, which is unique throughout the company. Each branch is allocated staff, which includes a Manager. The Manager is responsible for the day-to-day running...
#SQL #Oracle
Can anyone help me with this question??
Here is the tables:
For cach store provide the number of different films rented this year, the number of employees at the store, and the average number of different films rented per sales representative. Also, provide the grand total (the same calculations for stores altogether) FILM LSTORE EMPLOYEE refers to manages S1 (0, N) INVENTORY MANAGER SALES REP EMBER . N registers rented a (0, N) RENTED ITEM ues (0, N)...
[Relational Algebra]
Using the above information, please write relational algebra
expressions and display tables to answer the following. Do
NOT write in SQL code.
1. Select all staff that happen to be female with a salary more
than $20,000
2. List all staff that happen to have a salary between $20,000
and $30,000
Branch branch No street city postcode BOOS BOO7 воод 3004 BOOZ 22 Deer Rd London SWI4EH 16 Argyll St Aberdeen A235U 163 Main St Glasgow GII YOX...
Assignment Chapter 6 Part - Assignment Chapter 6 Part 2 - Write Queries that: 1. List all Staff first and last names that have a branch number listed the Branch table. 2. Sort the query results from the query above is descending order 3. Join Branch and Staff tables where branch No are equal 4. Execute Left Outer Join for query 3 5. Execute Right Outer Join for query 3. 6. Insert record - 'CR76', 'PL94', '2018-02-28', 'To Big' into...
Query #4 Please
"Which street in the suburb Camperdown has the highest average
rent"
in LISTING, the "type" column determines if it is "rent" or
"sell"
Thankyou
Views PROPERTY [pid, stno, stname, sttype, suburb, state, postcode, carspaces] Write the following queries in SQL in your PROPERTY database: SHAREDPROPERTY unitno,pid, proptype] AGENCY [agencylicence, agencyname, website, phone] 1. List all townhouses sold in the suburb Annandale in 2016 2. Find the suburbs that have not had any sales since 2017 BRANCH agencv,...
1.You run a hospital with 100 rooms. Fixed daily cost is $901.00 which includes staff salary, property charges, maintenance etc. Variable cost per room is $19.00 which includes cleaning, equipment rentals, utility cost etc. which is incurred only when the room is full. You charge $50.00 per room per day. You sold 33.00 rooms today, how much profit/loss did you earn for today. 2 .For a table manufacturing company, selling price for a table is $21.00 per Unit, Variable cost...
The University Accommodation Office Case
Study
The director of the
University Accommodation Office requires you to design a
database to assist with the administration of the office. The
requirements collection and analysis phase of the database design
process has provided the following data requirements specification
for the University Accommodation Office database followed
by examples of query transactions that should be supported by the
database.
Data Requirements
Students(entity)
The data stored for
each full-time student includes: the banner number, name (first...