Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working Data Types and Handling NULL Values SQL Part 1 Write a single query to show the results of the following attempts to cast data:

Working Data Types and Handling NULL Values

SQL

Part 1 Write a single query to show the results of the following attempts to cast data: Casting a date literal to an int data type will display Fail Casting a date literal to a date data type will display Success Casting a date literal to int data type will display No if it fails and Yes if it succeeds Casting a date literal to date data type will display No if it fails and Yes if it succeeds Take a screen shot of the SQL windows and results and paste it here.

Part 2 Rewrite the query from Part 1 but attempt to parse the data this time instead of cast. Take a screen shot of the SQL windows and results and paste it here.

Part 3 Using the WideWorldImporters database and the Application schema return the FullName, PhoneNumber, and CustomFields from the table People. Only return rows where the CustomFields value contains a NULL. Do not display NULL but the value NONE Take a screen shot of the SQL windows and results and paste it here.

Part 4 Assume a select statement is returning fields and the rows may have nulls. Assuming the following values (NULL, NULL, NULL, This data is okay) write the query that will insure the value This data is okay is the only value returned. Take a screen shot of the SQL windows and results and paste it here

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

How would you define efficient security markets?

Answered: 1 week ago

Question

Strong analytical, communication, and problem-solving skills

Answered: 1 week ago