
SQL
Authored by farroukh Nadeem
Computers
11th - 12th Grade
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
OPEN ENDED QUESTION
45 sec • Ungraded
Which command is used t o add new row in a table?
Evaluate responses using AI:
OFF
Answer explanation
insert
syntax of this command is
insert into <table name> values <(val1, val2,......);
ex:
insert into emp values( 1, 'Harry, 10000);
2.
OPEN ENDED QUESTION
45 sec • Ungraded
Which command is used to change the schema of the the table?
Evaluate responses using AI:
OFF
Answer explanation
alter table <table name> [add] [modify][change][drop] <col. description>;
3.
OPEN ENDED QUESTION
45 sec • Ungraded
Which command is used to change the values of columns in SQL?
Evaluate responses using AI:
OFF
Answer explanation
update command
syntax:
update <table name> set <column name> = <value>, <col-name>=<value>,..... where <condition>;
4.
OPEN ENDED QUESTION
45 sec • Ungraded
A table customer contains 5 rows and 7 columns. what will be its caardinality and degree?
Evaluate responses using AI:
OFF
Answer explanation
Degree: Number of attributes
Cardinality: Number of rows
degree 7, Cardinality 5
5.
OPEN ENDED QUESTION
45 sec • Ungraded
What is Primary key?
Evaluate responses using AI:
OFF
Answer explanation
A column or a set of columns which can uniquely identify a row in a relation. Primary key cannot have Null values
6.
OPEN ENDED QUESTION
45 sec • Ungraded
Define foreign key?
Evaluate responses using AI:
OFF
Answer explanation
it is a collumn that references the primary key of another table.
7.
OPEN ENDED QUESTION
1 min • Ungraded
Write two differences between DDL and DML commands of SQL.
Evaluate responses using AI:
OFF
Answer explanation
DDL STAND FOR DATA DEFINATION LANGUAGE
DML STAND FOR DATA MANIPULATION LANGUAGE
DDL USED TO CREATE, MODIFY OR DELETE STRUCTURE OF THE TABLE
DML UED TO MANIPULATE RECORDS OF THE TABLE
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
PEMROGRAMAN
Quiz
•
12th Grade
17 questions
PHP MySQL
Quiz
•
7th Grade - Professio...
15 questions
SIMKOM
Quiz
•
12th Grade - Professi...
20 questions
Quiz Microsoft Word
Quiz
•
8th Grade - University
20 questions
แบบทดสอบก่อนเรียน ม6
Quiz
•
12th Grade
17 questions
Ôn tập ICDL - Lớp 12 - Access 2023 - 2024
Quiz
•
12th Grade
15 questions
Testing
Quiz
•
12th Grade
19 questions
m2-bbdd
Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade