Interview Questions and answers for beginners - SQL Server Day 11

Question: What is SQL?
Answer: SQL stands for Structured Query Language, which is used to retrieve, store, and manipulate data in the database.

Question: What is data?
Answer: In simple terms, the data can be considered an object of the relevant facts. For example, your name, age, height, weight, image, etc.

Question: What is Database?
Answer: The physical collection of data in a systematic way is called a database. The database gives permission to manage data like a store, retrieve and manipulate.
In one line Database is the collection data, schemas, tables, queries, reports, views, and other objects.

Question: What is the table?
Answer: Table Is the collection of data which have columns and rows. A table has a specified number of columns but can have any number of rows.
Example: Student table

Name
Address
FatherName
DOB
Class
Dilip
Noida
PB Singh
09-12-2001
10
Anil
GKP
MG Singh
08-10-2002
9
Ashish
Delhi
DK Singh
12-02-2012
UKG

Question: What is the field in a column?
Answer: A column is the set of values. This contains a particular data type value in the table. It shows vertically in the table. For Example above table includes columns Name, Address, FatherName, DOB and Class. Name is the column that contains the student’s name.

Name
Dilip
Anil
Ashish

Question: What is RDBMS? 
Answer:
A Relational Database management system (RDBMS) is the Database management system in which we maintain data records in tables and relationship among and across The data and table. The relationship among the data is also stored in the form of table.

A Relational Database management system (RDBMS) is an additional condition which system supports a tabular structure of the data, with applies of relationships between tables.


A Relational Database management system (RDBMS) has the capability to recombine the data items from different files, providing powerful tools for data usages.

PostgreSQL-Query: Sort result set by specific field values using ORDER BY Clause

Problem: Suppose we have a book_inventory table which has some columns such as id, isbn, title, author, publisher, publish_date, etc.. whe...