Explain the behaviour of sql

Assignment Help Database Management System
Reference no: EM133055169

Question: Using the mi602_employee database that you previously installed in Module 2.2:

Open a new query window, copy and paste the following commands.

Start copy

DROP TABLE IF EXISTS demo_NULL;

CREATE TABLE demo_NULL (

INT_A int DEFAULT NULL,

CHR_B varchar(100) DEFAULT NULL,

CHR_C varchar(100) DEFAULT NULL

) ;

INSERT INTO demo_NULL VALUES

(NULL,'That','Over there'),

(1,'Box of 64 Pixels','64 RGB pixels in a decorative box'),

(2,'Sense of Humor','Especially dry. Imported from England.'),

(NULL,'No','Stay Put'),

(10,'Beauty','Inner beauty. No cosmetic surgery required!'),

(4,'Bar Code','Unused. In original packaging.'),

(0,'This','Right here!');

End Copy

Run the following commands one at a time.

Can you explain the results?

select * from demo_NULL;

select * from demo_NULL ORDER BY INT_A;

select count(*) from demo_NULL;

select count (INT_A) from demo_NULL;

Please save a copy of your answers. Your learning facilitator will review the answers with you in class and explain the behaviour of SQL when null values are encountered.

Reference no: EM133055169

Questions Cloud

Benefits of national identification system : Will the benefits of a national identification system countermand violations of individual privacy invasive surveillance?
Effect on the average queue length : The Petroco Service Station has one pump for regular unleaded gas, which (with an attendant) can service 10 customers per hour.
Prepare a journal entry to correct the prior period error : A $51,000 payment of a note payable had been recorded as interest expense. Prepare a journal entry to correct the prior period error
Future privacy problem concern : Radio frequency identification tags (RFID) are inserted in people, clothing, and many objects humans use. Future versions will engage in two-way communications.
Explain the behaviour of sql : Explain the behaviour of SQL when null values are encountered - Can you explain the results
Estimate the total number of sick days : In the last 12 months, a company of 50 staff has experienced unplanned sick leave rate of 8.5days per employer and has returned 3 replacement staff due to resig
Common network architecture devices : Research the common network architecture devices and create a list of the devices your friend should expect to see in the "parts list" from the company
Real-life examples of team cohesiveness : Teams are essential in any job, and sometimes it may not go the way people in the group want to. According to the textbook, "team cohesiveness is defined as the
Create two versions of query : Create two versions of query one using BETWEEN and the other using comparison operators

Reviews

Write a Review

Database Management System Questions & Answers

  How to create a biological database based on viruses

How to decide which attribute should be there in the table and schema? How to identify the primary keys, foreign keys, domain, E-R diagram and 20 Queries on the same database.

  Create the tables create the primary keys add dml statements

Create the tables Create the primary keys Create the foreign keys Add DML statements to: Add data of 1 customer who buys from the company Provide the DML to add 1 employee who interacts with customers Give DML to change data of the employee

  Why is data security important now more than ever

Why is data security important now more than ever? What are some of the steps that we can take to ensure that our database is protected and secure?

  Create database tables using libreoffice base

Create database tables using LibreOffice Base - Create queries and forms using LibreOffice Base and SQL and - Identify IT controls needed and ethical, privacy and security issues the organisation might encounter when using databases.

  What is a table in a database

ITDA1001 - Database Fundamentals  What is a Table in a database - Which command is used to create a database?

  Construct a b+ tree

Construct a B+ tree for the following set of key value (2,3,5,7,11,19,23,29,31) in ascending order where the pointers that will fit in one node is as follows:A. four B. six C. eight assuming the tree is initially empty and values are in ascending ..

  What data from the scenario is needed for the database

Case Needs Analysis: Determine the data requirements of Birchwood Lane Schools. What data from the scenario is needed for the database and why

  Create a file from the keyboard called university

Create a directory within "your last name" called BLACKSBURG. Do this from your home directory

  Group the report by the state field and then sort the report

Open the Basic Billboards Listreport in Layout View. Group the report by the State field, and then sort the report by the BillboardID field in ascending order.

  List all the functional dependencies exist in therelation

List all the functional dependencies exist in therelation. Demonstrate that the relation meets Third Normal Form (3NF).

  Critical analysis of the approaches strengths and weaknesses

Critical analysis of the approaches strengths and weaknesses - create generalized DSS management diagrams that can represent DSS management approaches.

  Explain step that you would use in order to convert database

Describe the steps that you would use in order to convert database tables to the First Normal Form, the Second Normal Form, and the Third Normal Form.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd