General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL syntax help with a subquery
Hello all,
I'm hoping to get some assistance on a specific SQL query. Here's a simplified version of the two tables it is working off:
Table A (parent)
a_pk (pk)
Table B (child)
b_pk (pk)
b_afk (fk to parent)
b_area (area)
b_name (non-unique name)
Problem: I am trying to write a query that returns the name (b_name) of the largest child (b_area) for all parent records.
Any help is most appreciated!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only