Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following questions: What is the difference between float and decimal data types in SQL? (10 points) What is the difference between binary strings

Answer the following questions:

What is the difference between float and decimal data types in SQL? (10 points)

What is the difference between binary strings and character strings in SQL? When does it make sense to use one type or the other? (10 points)

What is the difference between BLOB and CLOB? Give examples of data that can be stored in each type. (10 points)

In SQL, can you set a column that allows null values to be unique? What happens if the table contains multiple rows with null value for that column? What happens in case you specify a foreign key to that column in another table and a tuple in the referencing table contains a null value for the foreign key? (30 points)

In SQL, can you specify a foreign key to non-unique columns? Why or why not? (20 points)

Include the references to all the answers you provided. (20 points)

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 Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions