Consider the following three tables, primary and foreign keys.
Table Name
SalesPeople
Attribute Name Type Key Type
EmployeeNumber Number Primary Key
Name Character
JobTitle Character
Address Character
PhoneNumber Character
YearsInPosition Number
Table Name ProductDescription
Attribute Name Type Key Type
ProductNumber Number Primary Key
ProductName Character
ProductPrice Number
Table Name SalesOrder
Attribute Name Type Key Type
SalesOrderNumber Number Primary Key
ProductNumber Number Foreign Key
EmployeeNumber Number Foreign Key
SalesOrderDate Date
Assume that you draw up a new sales order for each product sold.
Develop the following queries in SQL:
a. All the Sales People with more than five years in position. (3 pts)
b. All the Products that cost more than $50. (3 pts)
c. All the Sales Orders sold by Sales People less than 3 years in the position. (3 pts)


Consider the following three tables, primary and foreign keys. Table Name SalesPeople Attribute Name  
Please do it by type not pics. 1.Consider the following three tables, primary and foreign keys. Table Name SalesPeople Attribute Name Type Key Type EmployeeNumber Number Primary Key Name Character JobTitle Character Address Character PhoneNumber Character YearsInPosition Number Table Name ProductDescription Attribute Name Type Key Type ProductNumber Number Primary Key ProductName Character ProductPrice Number Table Name SalesOrder Attribute Name Type Key Type SalesOrderNumber Number Primary Key ProductNumber Number Foreign Key EmployeeNumber Number Foreign Key SalesOrderDate Date Assume that you draw...
SQL queries and procedures TABLE: Employees Business Rules: EmployeeID is defined as the primary key. Address has been denormalized to include City and State for performance reasons. DeptNbr is a foreign key that references DeptNbr in the Department table Manager is a foreign key that references EmployeeID in the Employees table Data Structure: (EmployeeId, LastName, FirstName, Street, City, State, Zip, DateOfHire, DateOfBirth, JobTitle, Salary, DeptNbr(fk), Manager(fk)) TABLE: Department Business Rules: DeptNbr is defined as the primary key. Data Structure: (DeptNbr,...
1) True or False - The foreign keys in a table are
linked to the primary keys in another tables
2_ When we convert this ER to relations, which
relation will represents the check entity:
Check( account_number,check_number, check_date
,recipient,amount,memo)
Check( check_number, check_date ,recipient,amount,memo)
Check( check_date ,recipient,amount,memo)
Check( account_number, check_date
3)
When we convert this ER to relation, we will have:
hint: address is multi-valued attribute
Question 4 options:
customer(cust_id,name)
address(cust_id,street,city,state,zipcode)
customer(cust_id,name, street,city,state,zipcode)
customer(cust_id,name)
address(cust_id,street,city,state,zipcode)
check date account number recipient balance...
IN SQL
Hotel Reservation Room Table Attribute name ATTRIBUTE DESCRIPTION Domain Range pk FK NULL Room Number Yes NO NO No Haddress location No No No No Yes type The number of the room primary INTEGER >0 key Hotel address VARCHAR(50) any The exact location of the room; VARCHAR(30) Any north tower, south tower... Type of room; big, small or VARCHAR(25) any medium The date that the room was DATE ANY reserved Whether or not the room is BOOLEAN ANY...
these are all tables please see the tables and
questions are mentioned below
please see that all and I need answers asap
please write proper answer it's an easy task and don't take much
time please do it fast
thanks in advance
EMPLOYEE Remark Column Name EmployeeNumberINT Primary Key Yes No CHAR (25 CHAR (35 CHAR 25 NUMERIC INT CHAR (12 CHAR Name in the DEPARTMENT table Position No Number in the EMPLOYEE table Su OfficePhone EmailAddress No No No...
University Scenario Draw a detailed ERD with primary keys, foreign keys, and all provided attributes. If none are given in the scenario, provide at least one additional attribute for each entity. Scenario: When a person applies for a classified staff position at a large university in the Seattle area, information about that person, including his or her social security number, name, address, and phone is stored. People applying for classified staff positions do not apply for a specific job, but...
Write SQL Queries Given the following
tables
(7pts) Retrieve the names of employees and their
project name. If the employee never worked on a project, show the
names only the name, not the project name.
(7pts) Retrieve the names of employees who have worked
on the same project at a different location.
(7pts) Retrieve the names of employees who have worked
on more than two different projects.
(7pts) Retrieve the names of employees who manage more
than two employees.
CREATE...
In the table SERVICE there is an EmployeeNumber attribute. This number is a secondary key in the SERVICE table but is a primary key in the TECHNICIAN table. Create a query that shows a list of service types, the date (can be just the year) the service was performed, and the name of the technician that performed the service. Order by employee name and then by date per employee name. CREATE TABLE HOUSE (HouseAddress CHAR(50), HouseOwner CHAR(30), Insurance CHAR(40)); INSERT...
Consider the following relational database to manage concert and ticket sales. The relations are artist, concert, venue, seat, ticket, and fan. The schemas for these relations (with primary key attributes underlined) are: Artist-schema = (artistname, type, salary) Concert-schema = (artistname, date, venuename, artistfees) Venue-schema = (venuename, address, seating_capacity) Seat-schema=(venuename, row, seatnumber) Ticket-schema = (fanID, date, venuename, row, seatnumber) Fan-schema = (fanID, name, address, creditcardno) Where: • artistname is a unique name for the artist (because of trademark/copyright rules no two...
Learning Objectives: Learn to define constraints on tables Lean to define primary keys and foreign keys Exercise In Lab 09, we will continue the practice of creating tables. You will need to write SQL statements for the tasks specified below. After you complete them, submit your SQL script (in one *.sql file) to Blackboard by 11:59pm Nov. 16 (Friday). Include your name as a comment in the SQL script submitted. The creation statement for each table is worth one point,...