Skip to content

Fix Futon Manufacturing database scripts - #1498

Open
HumbleIdeas wants to merge 1 commit into
microsoft:masterfrom
HumbleIdeas:fix-futon-manufacturing-scripts
Open

Fix Futon Manufacturing database scripts#1498
HumbleIdeas wants to merge 1 commit into
microsoft:masterfrom
HumbleIdeas:fix-futon-manufacturing-scripts

Conversation

@HumbleIdeas

@HumbleIdeas HumbleIdeas commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Corrects execution errors across the Futon Manufacturing database
scripts:

  • Restore variable scope for Bill of Materials sample data
  • Align recursive common table expression (CTE) data types
  • Correct invalid and inconsistent column aliases
  • Qualify ambiguous column references
  • Add batch boundaries for dependent schema changes
  • Expand computed-column expressions to reference base columns
  • Expose return and product-mix fields required by sample reports
  • Correct aggregation and STRING_AGG usage
  • Fix nested window-function and divide-by-zero errors
  • Widen sales-pipeline percentage precision

Validation

Created a new FutonManufacturing database and successfully executed
scripts 01 through 08 sequentially against SQL Server 2022 Developer
Edition running in Docker.

Fix Futon Manufacturing database scripts

- Restore variable scope for Bill of Materials sample data
- Align recursive CTE data types and correct column aliases
- Fix ambiguous references, nested window functions, and divide-by-zero handling
- Add batch boundaries for dependent schema changes
- Expand computed-column expressions to use base columns
- Expose return and product-mix fields required by sample reports
- Widen sales pipeline percentage precision and correct STRING_AGG syntax
@HumbleIdeas

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant