0% found this document useful (0 votes)
7 views3 pages

Class 11 & 12 SQL Theory Questions

The document contains a series of questions related to SQL and database concepts, including definitions of keywords, clauses, and statements. It also covers SQL operations such as selecting databases, inserting data, and displaying table structures. Additionally, it addresses the handling of NULL values, the purpose of column aliases, and the use of relational operators.

Uploaded by

kirti.trikha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Class 11 & 12 SQL Theory Questions

The document contains a series of questions related to SQL and database concepts, including definitions of keywords, clauses, and statements. It also covers SQL operations such as selecting databases, inserting data, and displaying table structures. Additionally, it addresses the handling of NULL values, the purpose of column aliases, and the use of relational operators.

Uploaded by

kirti.trikha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Answer the following questions.

a) Define the following terms:

i) Keyword ii) Clause iii) Statement

b) Which statement is used to select a database and make it current?

c) How is a database related to table(s)?

d) Write SQL statement to view names of all the tables contained in the current
database

e) Which keyword is used to eliminate redundant data?

f) In INSERT INTO statement, while giving data values, how should text values be
supplied?

g) What is NULL? What happens when you perform arithmetic calculations on


NULL values?

h) Write SQL statement to display the result of arithmetic expression 78*2 on screen?

i) Is there any difference in the output of the following statements :


Select * from
Emp; SELECT *
FROM EMP;

j) List two categories into which MySQL statements can be categorized. Give
examples of 2 statements in each category.

k) Write the minimum number of column(s) that must be specified while creating a
table using CREATE TABLE statement.

l) What happens if you give a CREATE TABLE statement to create a table


named 'Item' and a table named 'Item' already exists?

m) Write any 4 things that are displayed when you display the structure of a table
using DESCRIBE statement.

n) Consider the following INSERT INTO statement:


INSERT INTO Emp(Empid,Salary) VALUES ('I201',25000);

What values are assigned to the columns Empid and Salary respectively?

o) In which order are the columns displayed when we give a SELECT


statement?

p) What is the difference in the output of SELECT statement if we write the


keyword ALL in place of DISTINCT?

q) What is the purpose of a Column Alias?


r) Write the purpose of the following SELECT statement?
SELECT Itemcode,IName AS "Item Title" FROM Item;

s) What does the Modulus arithmetic operator do?

t) List six relational operators used in SQL.

u) How are operators with equal priority evaluated in an expression?

v) Which statement is used to modify data in a table?

w) Which statement is used to remove a column from a table?


x) What is the purpose of "ORDER BY" clause?
y) What value is assigned to a Nullable field if its value is not
assigned in the INSERT INTO statement?

You might also like