List the Last Name, First Name and Phone Number of all Agents List the First Name, Last Name and Address of agents that live in PA, NY, and DE List the Agent ID, Full Name, and Phone Number of Agents that have earn more than fifty thousand in pay that also have more than 2 dependents List the Agent full Name and Phone Number of the agents that were hired between January 1* 2001 and August 30th 2010 List the Agent ID, Agent full Name and Phone Number of agents that do not receive a salary that also have more than two hundred and fifty thousand in sales

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

How can I write a SQL script for those spicific taskes that mentioned in the picture?

Single Table Query Sales Agent
Table: SalesAgent
Attribute Name
Data Type
Constraints
Description
agentCode
Integer
agentLName
Text
15
Agent's Last Name
agentFName
Тext
15
Agent's First Name
Agent's Middle Initial
Area Code of the Agent
agentinitial
Text
1
agentAreaCode
Тext
3
AgentPhone
Тext
Phone Number of the Agent
Int
Street Number of the Agent
Street Name of the Agent
AgentStreetNum
agentStreet
Тext
30
Residential City of the Agent
Residential State of the Agent
Zip Code of the Agent
agentCity
Text
15
AgentState
TEXT
2
agentzip
Text
dateHired
Date
Date Agent was Hired
Format(YYYY-MM-DD) Format
ytdPay
Numeric
Year To Date Pay of Agent
ytdFica
Numeric
Year To Date FICA Agent
ytdFit
ytdSales
Numeric
Year To Date Federal Income Tax
Numeric
Year To Date Sales of Agent
AgentDep
Integer
Number of Dependents of Agent
Salaried
Boolean
Agents that are salary
List the Last Name, First Name and Phone Number of all Agents
List the First Name, Last Name and Address of agents that live in PA, NY, and DE
List the Agent ID, Full Name, and Phone Number of Agents that have earn more than fifty thousand in
pay that also have more than 2 dependents
List the Agent full Name and Phone Number of the agents that were hired between January 1st 2001 and
August 30th 2010
List the Agent ID, Agent full Name and Phone Number of agents that do not receive a salary that also
have more than two hundred and fifty thousand in sales
Transcribed Image Text:Single Table Query Sales Agent Table: SalesAgent Attribute Name Data Type Constraints Description agentCode Integer agentLName Text 15 Agent's Last Name agentFName Тext 15 Agent's First Name Agent's Middle Initial Area Code of the Agent agentinitial Text 1 agentAreaCode Тext 3 AgentPhone Тext Phone Number of the Agent Int Street Number of the Agent Street Name of the Agent AgentStreetNum agentStreet Тext 30 Residential City of the Agent Residential State of the Agent Zip Code of the Agent agentCity Text 15 AgentState TEXT 2 agentzip Text dateHired Date Date Agent was Hired Format(YYYY-MM-DD) Format ytdPay Numeric Year To Date Pay of Agent ytdFica Numeric Year To Date FICA Agent ytdFit ytdSales Numeric Year To Date Federal Income Tax Numeric Year To Date Sales of Agent AgentDep Integer Number of Dependents of Agent Salaried Boolean Agents that are salary List the Last Name, First Name and Phone Number of all Agents List the First Name, Last Name and Address of agents that live in PA, NY, and DE List the Agent ID, Full Name, and Phone Number of Agents that have earn more than fifty thousand in pay that also have more than 2 dependents List the Agent full Name and Phone Number of the agents that were hired between January 1st 2001 and August 30th 2010 List the Agent ID, Agent full Name and Phone Number of agents that do not receive a salary that also have more than two hundred and fifty thousand in sales
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY