Question: What does the following Update statement do?
Update OrderTable set OrderDiscount=OrderDiscount*1.10What does the following Update statement do?
Update OrderTable set OrderDiscount=OrderDiscount*1.10
Question: Consider the following table structure of students:
rollno number(4)
name varchar(20)
course varchar(20)
What will be the query to display the courses in which the number of students
enrolled is more than 5?
A
Select course from students where count(course) > 5;
B
Select course from students where count(*) > 5 group by course;
C
Select course from students group by course;
D
Select course from students group by course having count(*) > 5;
E
Select course from students group by course where count(*) > 5;
F
Select course from students where count(group(course)) > 5;
Question: Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine which Authors have written at least 1 book with a popularity rating of less than 5?
A
select authorname from authors where authorid in (select authorid from books where popularityrating<5)
B
select authorname from authors where authorid in (select authorid from books where popularityrating<=5)
C
select authorname from authors where authorid in (select BookId from books where popularityrating<5)
D
select authorname from authors where authorid in (select authorid from books where popularityrating in (0,5))