New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL PGCES-02 Exam - Topic 4 Question 80 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 80
Topic #: 4
[All PGCES-02 Questions]

A set of tables are defined as follows: t1 t2 How many rows are returned by executing the following SQL statement? SELECT t1.name FROM t1 CROSS JOIN t2;

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

0/2000 characters
Louann
3 months ago
I disagree, it should be more than that!
upvoted 0 times
...
Krystina
3 months ago
I think it's 2 rows based on the tables.
upvoted 0 times
...
Kami
3 months ago
Wait, are there really 6 rows? Sounds too high.
upvoted 0 times
...
Adelle
4 months ago
Definitely going with 6 rows!
upvoted 0 times
...
Louis
4 months ago
It's a CROSS JOIN, so it multiplies the rows.
upvoted 0 times
...
Pansy
4 months ago
I’m pretty sure if either table is empty, it would return 0 rows, but I need to double-check the row counts in t1 and t2.
upvoted 0 times
...
Marlon
4 months ago
I feel like I might be mixing up CROSS JOIN with INNER JOIN. Does CROSS JOIN always return all combinations?
upvoted 0 times
...
Arlene
4 months ago
I remember practicing a similar question, and I think if t1 has 2 rows and t2 has 3, the result would be 6 rows.
upvoted 0 times
...
Leslie
5 months ago
I think a CROSS JOIN returns all combinations of rows from both tables, but I'm not sure how many rows are in t1 and t2.
upvoted 0 times
...
Dorcas
5 months ago
Hmm, I'm a bit stuck on this one. I know CROSS JOIN is used to combine rows from two tables, but I'm not sure how to predict the exact number of rows returned. I'll need to review some examples and practice more CROSS JOIN problems to get a better feel for this.
upvoted 0 times
...
Mica
5 months ago
This is a tricky one. The key is understanding how CROSS JOIN works - it generates all possible combinations of rows from the two tables. Without knowing the actual table sizes, I'll have to think through the possible scenarios to determine the most likely answer.
upvoted 0 times
...
Whitney
5 months ago
Okay, I've got this. The CROSS JOIN will combine each row from t1 with each row from t2, so the number of rows returned will be the product of the number of rows in each table. If there's no information given about the table sizes, I'll have to make an educated guess.
upvoted 0 times
...
Leah
5 months ago
Hmm, I'm a bit unsure about this one. I know CROSS JOIN returns the Cartesian product of the two tables, but I'm not sure how to calculate the exact number of rows. I'll need to review the concept again.
upvoted 0 times
...
Naomi
5 months ago
This looks like a straightforward CROSS JOIN question. I'll think through the logic step-by-step to determine the number of rows returned.
upvoted 0 times
...
Dong
9 months ago
Wait, did they say the tables are defined as 't1' and 't2'? I thought this was a database exam, not a magic trick!
upvoted 0 times
...
Arminda
9 months ago
Ah, a good old-fashioned CROSS JOIN! This is a classic SQL question. I'm going with E, just to keep things interesting.
upvoted 0 times
Curtis
8 months ago
I'm going with E) 6 rows.
upvoted 0 times
...
Nohemi
8 months ago
I believe it's C) 3 rows.
upvoted 0 times
...
Shantell
9 months ago
I'm going with B) 2 rows.
upvoted 0 times
...
Lemuel
9 months ago
I think it's A) 0 rows.
upvoted 0 times
...
...
Maira
9 months ago
Hmm, I'm not sure about this one. I'll have to think it through carefully. Maybe I should call the Help Desk for a hint?
upvoted 0 times
...
Clemencia
10 months ago
I think the answer is D. A CROSS JOIN will return the Cartesian product of the two tables, so the number of rows returned will be the number of rows in t1 multiplied by the number of rows in t2.
upvoted 0 times
Mabelle
9 months ago
I'm pretty sure it's B.
upvoted 0 times
...
Roxane
9 months ago
No, I believe the answer is E.
upvoted 0 times
...
Tijuana
9 months ago
I think the answer is D.
upvoted 0 times
...
...
Rashida
11 months ago
Why do you think it's 3 rows?
upvoted 0 times
...
Helga
11 months ago
I disagree, I believe the answer is C) 3 rows.
upvoted 0 times
...
Rashida
11 months ago
I think the answer is B) 2 rows.
upvoted 0 times
...

Save Cancel