79729730

Date: 2025-08-08 12:00:38
Score: 1.5
Natty:
Report link

No — you can’t directly create a foreign key constraint on an expression like DATE(created_date) in standard SQL (including MySQL, PostgreSQL, SQL Server, Oracle, etc.).

Foreign key constraints must be defined between actual columns, not computed expressions. Both columns must also match in data type and precision.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: VenkataKurella