100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 180 Midterm Questions And Answers

Rating
-
Sold
-
Pages
6
Grade
A
Uploaded on
16-04-2025
Written in
2024/2025

CSE 180 Midterm Questions And Answers










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
April 16, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 180 Midterm Questions And Answers
If R is a relation instance that has 5 tuples in it, S is a relation instance that has 8 tuples in it, and T is a relation
instance that has 3 tuples in it, then how many tuples are there in the Cartesian Product ( R x S ) x T? ANS
120


If R(A,B) is a relation where A's domain is (a1, a2, a3, a4) and B's domain is (b1, b2, b3), what the maximum
number of different tuples that can be in an instance of R, assuming that A can also be NULL, but B can't be
NULL? ANS 15



If a tuple appears 20 times in the answer to Q1, and that same tuple also appears 6 times in the answer to Q2,
then:


How many times would that tuple appear in Q1 EXCEPT Q2?



How many times would that tuple appear in Q1 EXCEPT ALL Q2? ANS 0



14


TRUE, FALSE, or UNKNOWN.



NULL = 18 ? ANS UNKNOWN



TRUE, FALSE, or UNKNOWN.



NULL IS NOT NULL ? ANS FALSE



TRUE, FALSE, or UNKNOWN.



NULL > 20 OR 18 <= 20 ? ANS TRUE



What does the following code do?

, SELECT DISTINCT Team
FROM Scores

WHERE Team LIKE '%n%' ANS Selects distinct teams from the table scores where the team has the letter
'n' in it.


What does the following code do?


SELECT Opponent, Day

FROM Scores
WHERE Runs >= 6

ORDER BY Day, Opponent DESC; ANS Selects the Opponent with the Day from the table Scores where
the runs were greater than 6, with it ordered by Day from A-Z.


What does the following code do?


SELECT S1.Team, S1.Day
FROM Scores S1
WHERE S1.Runs <= ALL
(
SELECT S2.Runs
FROM Scores S2
WHERE S1.Day = S2.Day

) ANS Select teams with the days where they had the least amount of runs from their day



SELECT Team, MIN(Runs) AS MinRuns, MAX(Runs) AS MaxRuns
FROM Scores
WHERE Opponent IN ('Swallows', 'Bay Stars', 'Giants')

GROUP BY Team; ANS Select the teams with their minimum and maximum runs vs those three opponents



TRUE or FALSE

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Nipsey Chamberlain School Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
2040
Member since
5 year
Number of followers
1524
Documents
14950
Last sold
2 days ago
LECT EXAMS

FOR THE BEST ASSIGNMENTS,TEST BANKS,EASSY AND TO HELP IN TUTORING I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc , and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!

Read more Read less
4.1

362 reviews

5
211
4
55
3
55
2
14
1
27

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions