0% found this document useful (0 votes)
20 views

Sol-Structured Query Language: Nofnuldwith Ifop Screun Kacorder

Uploaded by

Kavitha Kavitha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Sol-Structured Query Language: Nofnuldwith Ifop Screun Kacorder

Uploaded by

Kavitha Kavitha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

naithanjaanblogspot.

com/2023/04/-xplore-2023-sq-mcq-questicn-forhtm
G Shopping Maps SSenens Crers
Cick Here Subscribe to click <eecc

sOL-Structured Query Language


Table Create- create table

1. (CREATE TABLE ^TUDENTS


2. ID INT NOT NULL,
3. NAME VARCHAR (20) NOT NULL,
4. AGE INT
NOFNULdwith ifop Screun Kacorder
5. ADDRESS CHAR (25).
6. PRIMARY KEY (0D)
7. X

Insert Values:
INSERTINTO Students (1DNAME AGEADDRESS SALARY)
VALUES (1. Ramest, 32'Ahmedabad., 2000.00 )

Click Here Subscribe to click <ceee

ma
naithanjaanblogspot.com/2023/04/-xplore-2023-sql-mca-questicn-fochtm
G Shopping Maps S Semens Carers

- Click Here Subscribe to click eee

Q1. Which of the following is not a valid sQL type?


a FLOAT

b NUMERIC
c DECIMAL
d CHARACTER edwith iTop Screen Recorder
Ans: Decimal

2. Which of the following ls not a DDL command?


a TRUNCATE
b. ALTER

c CREATE
d UPDATE
naithanjaanblogspot.com/2023/04/s-plore-2023-sql-mcq-question-fochtml
GShopping Maps S Sees Caees
2 Which of the following ls not a DOL command?
a TRUNCATE

b. ALTER
c CREATE
d UPDATE

Ans:d

Explanation : DOL commaids aro used io Getne the strcure of thé databask: table, schemas, et
to perform the operations like CREATE. DROP, ALTER, RENAME. and TRUNCATE Schema objects.
An UPDATE command is used for managing the data stored in a database. It is an example of a
that also includes the INSERT and DELETE Commands.

q3. How many Primary keys can have in a table?

a Only 1
b Only 2
e Depends on no of Columns
Depends onDBA

View key concept


thanjaan.blogspot.com/2023/04/tc-plore-2023-sql-mcq-question-for
htm
Shogping Maps S Semens Carees
Ans :d

Explanation: DOL commands are used to define the structure of the database, table, schemas, etc
to pertorm the operations like CREATE, DROP, ALTER, RENAME, and TRUNCATE schema objects.
An UPDATE command is used for managing the data stored ina database. Itis an example of a DM
that also includes the INSERT and DELETE commands.

q3. How many Primary keys can have ina table?


a Only 1
b Only 2 Recordsd with ifop Screen Recorder
c Depends on no of Columns
d Depends on DBA

Ans:a

Q4 What is the difference between a PRIMARY KEY and a UNIQUE KEY?

aPrimary key can store null value, whereas aunique key cannot store null value.
b We can have only one primary key in a table while we can have multiple unique keys
c Primary key cannot be a date variable whereas unique key can be
rjaan blogspotcom2023/ots-plore-2023-sql-mcq-question-forhtm
hogping Mags E Senens Careers
d. Depends on DBA
Ans:a

Q4. What is the difference between a PRIMARY KEY and a UNIQUE KEY?

a Primary key can store null value, whereas a unique key cannot store null value.
b We can hahonly one primary key in atable wthile we can have multiple unique keys
c Primary key cannot be a date variable whereas unique key can be
d None of these
Recorded with iTop Scresn Recorder
Ans:b

05. is NOT a type of constraint in SQL language?


a FOREIGN KEY
b PRIMARY KEY
c UNIQUE

d ALTERNATE KEY

Ans:d
logspot.com/2023/04/t-xplore-2023-sql-mcg-questicn-fochem
Maps B SemensCeers

GYANuith ANJAAN
Ans:d

Q6. ind the cities name with the condition and temperature from table whether where condition sunny or
cloudy but temperature >n 60.

a SELECT city, temperature, condition FROM weather WHERE condition cloudy AND condition sunny OR
temperature >60 Recorded with iTop Screen Recorder
b SELECT city, temperature,condition FROM weather WHERE condition 'cloudy OR condition sunny OR
temperature > 60

c SELECT city,temperature, condition FROM weather WHERE condition 'sunny OR condition cloudy AND
temperature > 60

d SELECT city, temperature,condition FROM weather WHERE Condition sunny AND Condition cloudy AND
temperature > 60

Ans:c

>>liek Hara herrhe tn elek cecce Activ


Go to Se
yanwthanjaanbiogspotcom/2023/04-splore-2023-4g-mcgquestion-foht
eG ShoppingMaps BSene Carees
7. Which statement is used to get all data from the student table wthose name starts with p?

a SELECT *FROM student WHERE name LIKE p:


b SELECT* FROM student WHERE name LIKE p:
e SELECT *FROM student WHERE name LIKEp:
a SELECT *FROM studernt WHERE name LIKE %p:
Ans:b
Lecorderd
Q8. How can you change Thomas' sith iTon
into "Miche in the lastName cokmn
column in
in the
the Users table?

a UPDATE User SET LastName "Thomas' INTO LastName Micher

b MODIFY Users SET LastName Miche WHERE LastName Thomas


e MODIFY Users SET LastNameThomas INTO LastName Miche

UPOATE Users SET LastName Michet WHERELastName Thomas


Ans:d

Q9. What does the following statement in SQL do?


Drop table Student;
njanbiogspot com/2023/04n-plore-2023-4 fochtml
hopping Maps S Senens Careers
AISQ

9. What does the following statement in SQL do?


Drop table Student ;

Ans:Deletes atable called Student


q10. How many operations are considered to be the most basic sQL operations?

Ans: 4(CRUD)
create, read, update and geletop Screan
Recorder
Q11. What is a table joined with itself called?

a. join I b outer join


c Self join d None of these

Ans: Selfjoin

Q12 Which of the following is also known as a concatenated key?

Ans: Composite Key


Q13. Which of the following is known as the minimal super key?
whut imac
otcom/202/04t-splore-2023 forhtmd
Maps S Semens Careers
q13. Which of the following is known as the minimal super key?

Ans: Candidate Key


Q14 Which of the following ls not a valid aggregate function?
aCOUNT
b COMPUTE

SUM
d MAX Recorded with ifop Screen Recorder

Q15. What does BLOB in SQL stand for


Ans: Binary Large Ooct
Click Here :Subscribe to click eeeee

THANK YOU

Act
Go to

You might also like