Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Structured Query Language (in Microsoft SQL Server): Write the code that will create a table called tblPeople that will match and store the data

Using Structured Query Language (in Microsoft SQL Server):

  1. Write the code that will create a table called tblPeople that will match and store the data from People.txt (inserted below)
  2. Write the code that will import all the records from the file into tblPeople
  3. Write a query that returns all people with the first name of: Dale
  4. Write a query that returns the first name, last name, and email of all females

People.txt :

id first_name last_name email gender ip_address

1. Cherilyn Camden ccamden0@huffingtonpost.com Male184.129.31.27

2. Dunstan Brimham dbrimham1@google.ca Female51.55.148.74

3. Adair Winslett awinslett2@cnet.com Agender 158.4.53.87

4. Karmen Lergan klergan3@theguardian.com Bigender9.106.252.115

5. Hazel Lindro hlindro4@digg.comBigender 172.145.147.40

6. Lidia Hellings lhellings5@techcrunch.com Non-binary176.96.79.214

7. Artemus Cheverell acheverell6@noaa.gov Agender 65.196.2.93

8. Jewelle Carss jcarss7@bloglines.com Male 177.60.30.139

9. Starlin Barkus sbarkus8@cdc.gov Bigender 124.131.108.38

10. Dale Burgill dburgilla8@geocities.com Male 28.149.192.110

Example Starter Code:

USE Example; DROP TABLE IF EXISTS [tblPeople] -- Q1 (5 pts): Create tblPeople table -- Q2 (5 pts): Import your records from the file -- Q3 (5 pts): Query that returns all fields from tblPeople that have a first name of Dale -- Q4 (5 pts): Query that returns the first name, last name, and email of all females

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago