Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

SQL (Structured Query Language) QUESTIONS AND ANSWERS ALL CORRECT

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
23-05-2022
Written in
2021/2022

SQL What is SQL? ans: SQL stands for Structured Query Language. SQL lets you access and manipulate databases. What can SQL do? ans: SQL can execute queries against a database SQL can retrieve data from a database SQL can insert records in a database SQL can update records in a database SQL can delete records from a database SQL can create new databases SQL can create new tables in a database SQL can create stored procedures in a database SQL can create views in a database SQL can set permissions on tables, procedures, and views What is RDBMS and what are some examples? ans: RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL, and for all modern database systems such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access. The data in RDBMS is stored in database objects called tables. A table is a collection of related data entries and it consists of columns and rows. Are SQL queries case sensitive? ans: SQL keywords are NOT case sensitive: select is the same as SELECT What goes at the end of each SQL statement? ans: Some database systems require a semicolon at the end of each SQL statement. Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server. What is CRUD? ans: Create, Read/Retrieve (Select), Update and Delete are the four basic functions of persistent storage. SELECT Statement ans: The SELECT statement is used to select data from a database. Syntax: SELECT column_name, column_name FROM table_name; SELECT * FROM table_name; DISTINCT Statement ans: In a table, a column may contain many duplicate values; and sometimes you only want to list the different (distinct) values. Syntax: SELECT DISTINCT column_name,column_name FROM table_name; WHERE Clause ans: The WHERE clause is used to extract only those records that fulfill a specified criterion. Syntax:

Show more Read less
Institution
Course

Content preview

SQL
What is SQL? ans: SQL stands for Structured Query Language. SQL lets you access and manipulate
databases.

What can SQL do? ans: SQL can execute queries against a database
SQL can retrieve data from a database
SQL can insert records in a database
SQL can update records in a database
SQL can delete records from a database
SQL can create new databases
SQL can create new tables in a database
SQL can create stored procedures in a database
SQL can create views in a database
SQL can set permissions on tables, procedures, and views

What is RDBMS and what are some examples? ans: RDBMS stands for Relational Database Management
System. RDBMS is the basis for SQL, and for all modern database systems such as MS SQL Server, IBM
DB2, Oracle, MySQL, and Microsoft Access. The data in RDBMS is stored in database objects called
tables. A table is a collection of related data entries and it consists of columns and rows.

Are SQL queries case sensitive? ans: SQL keywords are NOT case sensitive: select is the same as SELECT

What goes at the end of each SQL statement? ans: Some database systems require a semicolon at the
end of each SQL statement. Semicolon is the standard way to separate each SQL statement in database
systems that allow more than one SQL statement to be executed in the same call to the server.

What is CRUD? ans: Create, Read/Retrieve (Select), Update and Delete are the four basic functions of
persistent storage.

SELECT Statement ans: The SELECT statement is used to select data from a database. Syntax:

SELECT column_name, column_name
FROM table_name;

SELECT * FROM table_name;

DISTINCT Statement ans: In a table, a column may contain many duplicate values; and sometimes you
only want to list the different (distinct) values. Syntax:

SELECT DISTINCT column_name,column_name
FROM table_name;

WHERE Clause ans: The WHERE clause is used to extract only those records that fulfill a specified
criterion. Syntax:

, SELECT column_name,column_name
FROM table_name
WHERE column_name operator value;

AND/OR Operators ans: The AND & OR operators are used to filter records based on more than one
condition. Syntax:

SELECT * FROM Customers
WHERE Country='Germany'
AND (City='Berlin' OR City='München');

ORDER BY Keyword ans: The ORDER BY keyword is used to sort the result-set by one or more columns.
The ORDER BY keyword sorts the records in ascending order by default. To sort the records in a
descending order, you can use the DESC keyword.

SELECT column_name, column_name
FROM table_name
ORDER BY column_name ASC|DESC, column_name ASC|DESC;

INSERT INTO Statement ans: The INSERT INTO statement is used to insert new records in a table.

INSERT INTO table_name
VALUES (value1,value2,value3,...);

INSERT INTO table_name (column1,column2,column3,...)
VALUES (value1,value2,value3,...);

UPDATE Statement ans: The UPDATE statement is used to update existing records in a table.

UPDATE table_name
SET column1=value1,column2=value2,...
WHERE some_column=some_value;

Notice the WHERE clause in the SQL UPDATE statement!
The WHERE clause specifies which record or records that should be updated. If you omit the WHERE
clause, all records will be updated!

DELETE Statement ans: The DELETE statement is used to delete rows in a table.

DELETE FROM table_name
WHERE some_column=some_value;

Notice the WHERE clause in the SQL DELETE statement!
The WHERE clause specifies which record or records that should be deleted. If you omit the WHERE
clause, all records will be deleted!

Written for

Course

Document information

Uploaded on
May 23, 2022
Number of pages
12
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Classroom NURSING
Follow You need to be logged in order to follow users or courses
Sold
4874
Member since
4 year
Number of followers
3232
Documents
55394
Last sold
1 day ago
NURSING

Assignments, Case Studies, Research, Essay writing service, Questions and Answers, Discussions etc. for students who want to see results twice as fast. I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc, and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules. For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!!!!!!!!!!!

Read more Read less
4.0

1185 reviews

5
624
4
216
3
196
2
40
1
109

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions