Find Jobs
Hire Freelancers

T-SQL to join system tables to values in user tables SYS.TABLES, SYS.TYPES, SYS.COLUMNS -- 2

$10-30 USD

Закрито
Опублікований almost 7 years ago

$10-30 USD

Оплачується при отриманні
I have this query that selects the tables like CODE_. I want to join these results to each CODE table like CODE_COUNTRY, CODE_COUNTY to list the value of the SHORT_DESC, it will be values like: United States, Mexico for Country; Brown, Green for County; Male, Female For Gender*. The value in the SHORT_DESC matches the value in the Transformations Table PC_Column*. So I need to join to the Transformations table to find the columns that match. And do left join, right joins to show columns that don't match either database. How do I find the system column to join to the Transformations table? SELECT tb.[schema_id] AS 'Schema' ,tb.[OBJECT_ID] AS 'TableObj' ,tb.[NAME] AS 'TableName' ,[login to view URL] as 'Column' ,[login to view URL] AS 'Type' ,C.max_length ,C.is_nullable FROM [login to view URL] C INNER JOIN [login to view URL] tb ON tb.[object_id] = C.[object_id] INNER JOIN [login to view URL] T ON C.system_type_id = T.user_type_id --INNER JOIN -- [login to view URL] TF ON TF.PC_Column = [login to view URL] WHERE tb.[is_ms_shipped] = 0 AND tb.[NAME] LIKE '%code_%' AND [login to view URL] = 'SHORT_DESC' [login to view URL] LIKE '%country%' ORDER BY tb.[Name] **Note:** these are the columns to add to this query query result Schema TableObj TableName Column Type max_length is_nullable *SHORT_DESC Value (from CODE_ table), *PC_Column (from Transformations table) 1 1826105546 CODE_COUNTRY SHORT_DESC nvarchar 20 0 United States, USA 1 2018106230 CODE_COUNTY SHORT_DESC nvarchar 20 0 Mexico, Mexico For example, the value in the SHORT_DESC should match the PC_Column CODE_VALUE_KEY CODE_VALUE SHORT_DESC MEDIUM_DESC LONG_DESC STATUS 1001 1001 Autauga Autauga Autauga A 1003 1003 Baldwin Baldwin Baldwin A 1005 1005 Barbour Barbour Barbour A 1007 1007 Bibb Bibb Bibb A 1009 1009 Blount Blount Blount A Transformations Table GM_Column Value Note1 F4 PC_Table_Column PC_Table PC_Column Value1 Note2 F10 Ugender M NULL = demographics_gender demographics gender Male NULL NULL Ugender F NULL = demographics_gender demographics gender Female NULL NULL Ugender U NULL = demographics_gender demographics gender Unknown NULL NULL Umarstat D NULL = demographics_marital_status demographics marital_status Divorced NULL NULL Umarstat M NULL = demographics_marital_status demographics marital_status Married NULL NULL Umarstat O NULL = demographics_marital_status demographics marital_status Other NULL NULL Umarstat S NULL = demographics_marital_status demographics marital_status Single NULL NULL Sytem Tables --I queried system tables to find a common column with user data and don't see a common column to join to the user data tables. Those queries are in the attached file I'm using SQL Server 2008 R2 Please reply with: The time of day that you are available. I am available 7am to 3pm UTC-06:00 Central Time US & Canada If you are able to login remote to test code on a remote desktop like Teamviewer If you speak english and are available on voice See attached file for a better question format
ID проекту: 14241371

Про проект

16 пропозицій(-ї)
Дистанційний проект
Активність 7 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
16 фрілансерів(-и) готові виконати цю роботу у середньому за $30 USD
Аватарка користувача
I am having more than 8 years of experience in IT industry.I have worked on .net(c#.net,vb.net,asp,asp.net,mvc) with sql server 2005/2008/2012/2014/2016 and oracle(pl/sql). Relevant Skills and Experience I am having more than 8 years of experience in IT industry.I have worked on .net(c#.net,vb.net,asp,asp.net,mvc) with sql server 2005/2008/2012/2014/2016 and oracle(pl/sql). Proposed Milestones $50 USD - Project Cost
$50 USD за 2 дні(-в)
5,0 (20 відгуки(-ів))
4,7
4,7
Аватарка користувача
Dear, Thank you for posting a job on my favorite technology i.e., Microsoft SQL Server. I have been working with Microsoft SQL server for the past 5 years in ERP, Big Data and Data warehousing environment. I have been developing and coding SQL using complex procedures and functions. I have read your query and i have understood 80 percent of it. I just need to look at few table like country code and transoformation tables structure more closely to complete your query. I have also completed certifications on SQL and PL/SQL with 95 percentile. I am sure that my skills and experience are suitable with your job requirements. I am so happy I get a chance to get connected. Thanks for your attention. Yours sincerely, Pramila
$35 USD за 1 день
5,0 (7 відгуки(-ів))
3,2
3,2
Аватарка користувача
Greetings, I'm professional database expert with 9+ years experience. Currently I'm working as DBA and DB developer in one of the leader company. As you can see in my profile, I have deep experience of same jobs like database administration and development by remotely. I'm top expert. -- Best regards, Davit Dartsimelia Senior Database Administrator & Developer
$40 USD за 1 день
5,0 (2 відгуки(-ів))
2,8
2,8
Аватарка користувача
I have 9+ years of experience in SQL Server and .NET Relevant Skills and Experience SQL Server, .NET, JQUERY Proposed Milestones $30 USD - After complition
$30 USD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
A proposal has not yet been provided
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
Dear Employer , we are experts we are good at data entry , Timely delivery and quality. we do handle projects in Microsoft BI stack , C# , Power BI ,ASP. we work for Microsoft as consultants and this is first time we are entering into the freelancing world. we have expertise in Macros , Excel Dashboards , spread sheets , tables ,excel analysis etc... we are certified from Microsoft in SQL Server , MSBI as well. we want to make our foot prints so strong in freelancing world and we need a opportunity to prove our self. we have successfully completed our first project and please check the feedback and get back to us. Looking forward to hear from you. we too stay in west coast (USA). we have team viewer , Skype and we can speak English. Please let us know the feasible time for you. so that we can accommodate our schedule.
$25 USD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I am available 2pm - 7pm your time yone I can login via teamviewer and I'm speaking English. I'm available for voice conversations at time that I wrote above Relevant Skills and Experience I'm using TSQL from MSSQL veraion 2000 up to now. I was working in financial industry for past 12 years on the systems where I was woking with MSSQL Server except for 2 years working with Oracle 10g. Proposed Milestones $35 USD - This is the small task so I think there is no need to split it in smaller tasks Additional Services Offered $0.01 USD - This is the small task so I think there is no additional services
$35 USD за 2 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
An IT Professional with rich experience in system analysis, components design, development and testing of client server, Intranet/ Internet, N-tier systems. Relevant Skills and Experience Expert in SQL Proposed Milestones $10 USD - Confirmation $10 USD - Code $4 USD - Test $5 USD - UAT How many hours you think this can be done ? Would need more details if it comes to me more design
$29 USD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I have around 4+ years experience in data analytics, working on small excel reporting to big DWBI reporting work. I am an expert in developing user-friendly spreadsheets for data analysis Relevant Skills and Experience Excel/VBA Automation - Excel Dashboards & Reporting (Data Visualization) - QlikView/QlikSense/Tableau (Data Warehousing and Business Intelligence) - Microsoft Access (SQL Proposed Milestones $25 USD - NONE
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
hi why you are not using store procedure it is quite easy to getting and processing and making query dynamically and showing result. so i think it is better to use sp and get result you want. Relevant Skills and Experience SQL Proposed Milestones $25 USD - NA
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
List out the _Code tables and prepare script for the result set that you are expecting. Relevant Skills and Experience SQL Server, Good analytical and Programming skills, Have good amount of experience in SQL Server Programming. Proposed Milestones $30 USD - Query Preparation for our result set in one or more ways. Additional Services Offered $1 USD - if any. Do we need to develop the only one result set? And Do you want result set in single Select query?
$30 USD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I m into database development for the past 7 years. kindly provide the project I will deliver it in time.
$17 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
I can do this question.I will try to complete this ques before you pay
$35 USD за 2 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
SAN ANGELO, United States
5,0
273
Спосіб оплати верифіковано
На сайті з лип. 28, 2008

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.