Which one is NOT a domain type/data type in SQL?

Quiz 2 Intro to Database

Quiz
•
Computers
•
1st Grade
•
Hard
Güray ARIK
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
char
varchar
numeric
class
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which command is CORRECT for creating a table?
create table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2))
insert into table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2))
create database instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2))
alter table instructor ( ID char(5), name varchar(20), dept_name varchar(20), salary numeric(8,2))
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
insert into instructor values ('10211', 'Smith', 'Biology', 66000);
What does this command?
inserts a new value to instructor table
updates instructor table with new value
inserts a new value to instructor database
changes the value of id 10211
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
I want to find the names of all instructors whose name INCLUDES the substring “dar”
Which one is CORRECT select query?
select name from instructor where name = '%dar%'
select name from instructor where name like 'dar%'
select name from instructor where name like '%dar%'
select name from instructor where name in '%dar%'
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
I want to list in alphabetic order the salary of all instructors with highest to smallest.
Which select query is CORRECT?
select * from instructor order by salary asc
select * from instructor order by salary desc
select * from instructor order by salary
select * from instructor where order by max
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Find the total number of instructors who teach a course in the Spring 2018 semester
select count (*) from teaches where semester = 'Spring' and year = 2018;
select max(distinct ID) from teaches where semester = 'Spring' and year = 2018;
select Id from teaches where semester = 'Spring' and year = 2018;
select avg(*) from teaches where semester = 'Spring' and year = 2018;
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
select dept_name, avg (salary) as avg_salary from instructor
group by dept_name
having avg (salary) > 40000;
What does this query do?
Find the department names and total salaries of all departments whose average salary is greater than 40000
Find the department names and average salaries of all departments whose average salary is greater than 40000
it gives error
Find the salaries of all departments whose average salary is smaller than 40000
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Educational Technology Unit 3

Quiz
•
1st Grade
8 questions
PAINT TOOLS

Quiz
•
1st Grade
15 questions
INTRODUCTION TO COMPUTERS REVISION

Quiz
•
1st Grade
8 questions
Aulas Virtuales

Quiz
•
1st - 5th Grade
10 questions
SQL and PL/pgSQL Quiz

Quiz
•
1st Grade
10 questions
UH SQL Dasar Mengelola Tabel

Quiz
•
1st Grade
10 questions
Java

Quiz
•
1st - 3rd Grade
10 questions
base de datos

Quiz
•
1st - 3rd Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade