Link to home
Start Free TrialLog in
Avatar of maximus1974
maximus1974

asked on

Need help with Excel and creating a SQL query from the data

I need to formulate update statements for each record in the attached spreadsheet. The SQL statement I need for each field and value is attached. Is it possible to do this?
warehouse-level---lines-to-modify.xlsx
Avatar of HainKurt
HainKurt
Flag of Canada image

A2 = 

="UPDATE WAREHOUSE_LEVEL SET QTY_MIN = "&E2&", QTY_MAX = "&F2&" WHERE WHL_AUTO_KEY = '"&B2&"' AND WHS_AUTO_KEY = "&C2&" AND PNM_AUTO_KEY = '"&D2&"';"

Open in new window


then copy down...
Avatar of maximus1974
maximus1974

ASKER

Please pardon my ignorance. I am very new to Excel. Where exactly do I place those three lines?
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
here is the screenshot

 User generated image
That was amazing. Who knew? oh yeah you! Thank you