USE AgeDx DROP TABLE #temp SELECT * INTO #temp FROM [dbo].[DxAge_1] -- 4233546 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_2] -- 5223128 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_3] -- 4179754 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_4] -- 3807014 rows SELECT CAST([id] as int) as id [icd9] 2 ‚ IIF([AgeAtDx] = 'NULL', null, CAST([AgeAtDx] as float)) as AgeAtDx IIF(AgeAtFirstDM = 'NULL', null, CAST([AgeAtFirstDM]as float)) as [AgeAtFirstDM] IIF(AgeAtDeath ='NULL',null, CAST([AgeAtDeath]as float)) as [AgeAtDeath] INTO dbo.final FROM #temp
USE AgeDx DROP TABLE #temp SELECT * INTO #temp FROM [dbo].[DxAge_1] -- 4233546 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_2] -- 5223128 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_3] -- 4179754 rows INSERT INTO #temp SELECT * FROM [dbo].[DxAge_4] -- 3807014 rows SELECT CAST([id] as int) as id [icd9] 2 ‚ IIF([AgeAtDx] = 'NULL', null, CAST([AgeAtDx] as float)) as AgeAtDx IIF(AgeAtFirstDM = 'NULL', null, CAST([AgeAtFirstDM]as float)) as [AgeAtFirstDM] IIF(AgeAtDeath ='NULL',null, CAST([AgeAtDeath]as float)) as [AgeAtDeath] INTO dbo.final FROM #temp
Chapter7: Database Administration
Section: Chapter Questions
Problem 4TD: Write, but do not execute, the commands to grant the following privileges: a. User Ashton must be...
Related questions
Question
I keep getting errors for this code in SQL but i cant seem to fix it, assuming the names for the files are correct is there any obvious errors?
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr