Dudes..calm down...
What i ended up doing is creating a table in Excel and imported into the datawarehouse from which created a join in my query
I'll keep playing around with Stored Proceedures and Functions until i feel im at a competent level
Could the Mods please freeze this thread before some real abuse gets hurled around