Question

In: Computer Science

What is SELECT? What is UPDATE? What is DELETE? What is FROM? What is WHERE? What...

What is SELECT?

What is UPDATE?

What is DELETE?

What is FROM?

What is WHERE?

What is CREATE TABLE?

What is INSERT INTO?

What is VALUES?

What is first Normal form

Solutions

Expert Solution

Consider below table Customers:

1.Select :

if you want to retrieve all CustomerName info Customers table ,select statement is used

SQL:

select CustomerName from Customers ;

2.Update:

update statement is used to change the existing record in a table

If you want to update CustomerID whose customer name is Alfredsfutterkiste

UPDATE Customers set CustomerID =7 where CustomerName='Alfredsfutterkiste'

3.Delete:

Delete statement is used to delete already existing record or row from a table

If you want delete whose customer id is 2,you have to execute below command

DELETE FROM Customers where CustomerID=2

4.FROM:

FROM is used for selection of tables:

Eg:

DELETE FROM Customers

5.Where :

Where is used to invoke condition on your selection :

Eg:

DELETE FROM Customers where CustomerID=2

6.CREATE TABLE:

CREATE TABLE creates table.

Eg:If you want to create a new table PERSON having ID,FirstName,LastNam as columns,use below statement

CREATE TABLE Person(

ID int, /*integer*/

FirstName varchar(255),/*string*/

LastName varchar(255)/*string */

);

7.INSERT INTO:

InsertInto used to insert new record in a existing table

If you want Insert into new with below values ,write the below statement:

INSERT INTO Customers values(5,'Arun','120 Hanover Sq.','London')

8)Values:

values indicates the sequence of columns data need to be inserted

same as Eg:7in Insert

9)First Normal Form:

Ist normal form is property states that no duplicate record is present in

a table.

You can see the above table ,there is no duplicate record .So the Customers table in

FirstNormalForm


Related Solutions

Step 2: Create Stored Procedures to Add/Update/Delete an entity table Create a script to create a...
Step 2: Create Stored Procedures to Add/Update/Delete an entity table Create a script to create a table named ProjectBilling which will have the following columns: • projectBillID char(6) : A 6 character unique identifier (numbers and letters) • TransAmount decimal(16,9) : The amount of the transaction • TransDesc varchar(255): A description of the transaction • TransDate datetime: The date of the transaction • projectID char(4):The Id of the project • accountMgr char(8):The employee who manages the bill ledger Include this...
Provide five specific examples of data anomalies (including at least one insert, update, and delete anomaly...
Provide five specific examples of data anomalies (including at least one insert, update, and delete anomaly each) that might happen if your database were not in at least third normal form. Provide sample non-normalized data and tables, the action taken, and the resulting anomalous data. Explain why your design avoids each possible problem.
unix Delete the second character from every line in a file Delete the last word from...
unix Delete the second character from every line in a file Delete the last word from every line in a file. Swap the first and second letter of every line in a file. Swap the first and last characters of every line in a file.
delete this
delete this
Delete
Delete
delete
delete
Can you explain the means of “where, from, select”? Of SQL
Can you explain the means of “where, from, select”? Of SQL
If you select 5 students from your sample where n=60, what is the probability that you...
If you select 5 students from your sample where n=60, what is the probability that you will select at least 3 Females?  Create a Frequency Distribution Graph to demonstrate your outcome. There are 30 males and 30 females
If you select 5 students from your sample where n=60, what is the probability that you...
If you select 5 students from your sample where n=60, what is the probability that you will select at least 3 Females? Create a Frequency Distribution Graph to demonstrate your outcome.
Choose all the optional query block in “Select “retrieval query? A. Select B. Where C. From...
Choose all the optional query block in “Select “retrieval query? A. Select B. Where C. From D. Order By A NULL value means A. Value missing B. Value unknown C. More than 1000 D. All the above Delete from DEF; /*DEF is a table/relation*/ What action does this command perform? A. Delete the table B. Delete all the rows from the table C. Deletes a column D. Deletes the top 10 tuples A attribute/column, fName, is of Data Type varchar(100)....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT