1. Display records of employee id, last name, first name of employees' table.

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
Write the SQLite querys for the give lab tasks in image attached according to the database relation image
Lab Tasks:
1. Display records of employee id, last name, first name of employees' table.
2. Sort the tracks (by Albumld) and then by by the Milliseconds in descending order.
3. Display the distinct city and country from customer table.
4. Find the ld of playlist 'classical'.
5. Find the genre name that has id 3 and 16.
6. To find tracks whose name starts with wild,
7. To find the tracks whose names ends with wild
8. To find the tracks vwhose names contain the Wild literal string
9. Create a query to show list of tracks whose genre id is not in a list of (1,2,3)
10. To find the Invoices whose total are not between1 and 20.
11. To find invoices whose invoice dates are from January 1 2010 and January 31 2010.
12. List the first five shortest tracks
13. Finds tracks whose composers are not NULL.
14. Find the Title and hire date of employee 'Nancy'.
Transcribed Image Text:Lab Tasks: 1. Display records of employee id, last name, first name of employees' table. 2. Sort the tracks (by Albumld) and then by by the Milliseconds in descending order. 3. Display the distinct city and country from customer table. 4. Find the ld of playlist 'classical'. 5. Find the genre name that has id 3 and 16. 6. To find tracks whose name starts with wild, 7. To find the tracks whose names ends with wild 8. To find the tracks vwhose names contain the Wild literal string 9. Create a query to show list of tracks whose genre id is not in a list of (1,2,3) 10. To find the Invoices whose total are not between1 and 20. 11. To find invoices whose invoice dates are from January 1 2010 and January 31 2010. 12. List the first five shortest tracks 13. Finds tracks whose composers are not NULL. 14. Find the Title and hire date of employee 'Nancy'.
SQLITE
playlists
Playlistid NTEGER
Name NVARCHAR 120)
invoices
customers
Invoiceld INTEGER
Customerld INTEGER
InvoiceDate DATETME
BillingAddress NVAR
BillingCity ARCHA
4 more columns
Customerld INTEGER
FirstName NVARCHAR(40)
LastName NVARCHAR(20)
Company NVARCHAR(80).
Address NVARCHAR70)
City NVARCHAR(40)
State NVARCHARMO).
Country NVARCHAR(40)
PostalCode NARCHARITO)
Phone NVARCHARI24)
Fax NVARCHARIZ4).
Email NVARCTARIGM
SupportRepid NTI CER
TUTORIAL
playlist track
Playlistid HTEGER
TrackldNEGER.
media types
MediaTypeld TESER,
Name RZ
invoice ilems
voiceltemld
Invoiceld.
Trackid ER
UnitPrice
Quantity
tracks
Trackid
Albumid
MediaTypeld ER
Genreld.
Composer
Miliseconds
Bites
UnitPrice
genres
Genreld
Name
employees
Emptoyeeld TEGER
LastName AHARI2A.
FirstName ARCHARZU
Albumid
Tte
Atistid.
Title
ReportsTo NECER
Birth Date E HNE
HireDate E HNE
Address RCHAR
Name
DType here to search
Transcribed Image Text:SQLITE playlists Playlistid NTEGER Name NVARCHAR 120) invoices customers Invoiceld INTEGER Customerld INTEGER InvoiceDate DATETME BillingAddress NVAR BillingCity ARCHA 4 more columns Customerld INTEGER FirstName NVARCHAR(40) LastName NVARCHAR(20) Company NVARCHAR(80). Address NVARCHAR70) City NVARCHAR(40) State NVARCHARMO). Country NVARCHAR(40) PostalCode NARCHARITO) Phone NVARCHARI24) Fax NVARCHARIZ4). Email NVARCTARIGM SupportRepid NTI CER TUTORIAL playlist track Playlistid HTEGER TrackldNEGER. media types MediaTypeld TESER, Name RZ invoice ilems voiceltemld Invoiceld. Trackid ER UnitPrice Quantity tracks Trackid Albumid MediaTypeld ER Genreld. Composer Miliseconds Bites UnitPrice genres Genreld Name employees Emptoyeeld TEGER LastName AHARI2A. FirstName ARCHARZU Albumid Tte Atistid. Title ReportsTo NECER Birth Date E HNE HireDate E HNE Address RCHAR Name DType here to search
Expert 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