My LeetCode grinding. Trying to do a problem a day.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

problem.txt 731B

1234567891011121314151617181920212223242526272829
  1. Table: Person
  2. +-------------+---------+
  3. | Column Name | Type |
  4. +-------------+---------+
  5. | PersonId | int |
  6. | FirstName | varchar |
  7. | LastName | varchar |
  8. +-------------+---------+
  9. PersonId is the primary key column for this table.
  10. Table: Address
  11. +-------------+---------+
  12. | Column Name | Type |
  13. +-------------+---------+
  14. | AddressId | int |
  15. | PersonId | int |
  16. | City | varchar |
  17. | State | varchar |
  18. +-------------+---------+
  19. AddressId is the primary key column for this table.
  20. Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people:
  21. FirstName, LastName, City, State