Computer Architecture  >  QUESTIONS & ANSWERS  >  CSE 385 Databases - Miami University - SQL Assignment One_ Comprehensive Q&A. (All)

CSE 385 Databases - Miami University - SQL Assignment One_ Comprehensive Q&A.

Document Content and Description Below

Assignment Day1 –SQL: Comprehensive practice Write queries for following scenarios Using AdventureWorks Database 1. Write a query that retrieves the columns ProductID, Name, Color and ListPrice f ... rom the Production.Product table, with no filter. select ProductID, Name, Color, ListPrice from Production.Product 2. Write a query that retrieves the columns ProductID, Name, Color and ListPrice from the Production.Product table, the rows that are 0 for the column ListPrice select ProductID, Name, Color, ListPrice from Production.Product where ListPrice = 0 3. Write a query that retrieves the columns ProductID, Name, Color and ListPrice from the Production.Product table, the rows that are rows that are NULL for the Color column. select ProductID, Name, Color, ListPrice from Production.Product where Color is Null 4. Write a query that retrieves the columns ProductID, Name, Color and ListPrice from the Production.Product table, the rows that are not NULL for the Color column. select ProductID, Name, Color, ListPrice from Production.Product where Color is not NULL 5. Write a query that retrieves the columns ProductID, Name, Color and ListPrice from the Production.Product table, the rows that are not NULL for the column Color, and the column ListPrice has a value greater than zero. select ProductID, Name, Color, ListPrice from Production.Product where Color is not NULL and ListPrice > 0 6. Generate a report that concatenates the columns Name and Color from the Production.Product table by excluding the rows that are null for color. select 'Name: ' + Production.Product.Name + ' -- COLOR:' + Color AS 'Name AND Color' from Production.Product where color is not NULL 7. Write a query that generates the following result set from Production.Product: Name And Color -------------------------------------------------- NAME: LL Crankarm -- COLOR: Black NAME: ML Crankarm -- COLOR: Black NAME: HL Crankarm -- COLOR: Black NAME: Chainring Bolts -- COLOR: Silver NAME: Chainring Nut -- COLOR: Silver NAME: Chainring -- COLOR: Black ……… select 'Name: ' + Name + ' -- COLOR:' + Color AS 'Name AND Color' This study source was downloaded by 100000861878070 from CourseHero.com on 04-18-2023 14:23:51 GMT -05:00 https://www.coursehero.com/file/71516703/SQL-Assignment-Onedocx/from Production.Product where Name like '%Crankarm%' or Name like '%Chainring%' order by ProductID [Show More]

Last updated: 2 years ago

Preview 1 out of 4 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of CSE 385 Databases - Miami University - SQL Assignment One_ Comprehensive Q&A. document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$9.50

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

59
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 18, 2023

Number of pages

4

Written in

All

Seller


Profile illustration for PAPERS UNLIMITED™
PAPERS UNLIMITED™

Member since 4 years

509 Documents Sold

Reviews Received
55
20
8
2
8
Additional information

This document has been written for:

Uploaded

Apr 18, 2023

Downloads

 0

Views

 59

Document Keyword Tags

More From PAPERS UNLIMITED™

View all PAPERS UNLIMITED™'s documents »

$9.50
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·