Find Jobs
Hire Freelancers

Make nested sql query like grandfather -> father -> son details query

₹600-1500 INR

I përfunduar
Postuar about 5 years ago

₹600-1500 INR

Paguhet në dorëzim
Hello . I have a database which have 2 columns username and refBy username -> its a user whose admin is refBy column i have 3 level data like mdis (username) -> rajdeep (refBy) dis (username ) -> mdis (refBy) ret (username) -> dis (refBy) As you can see here rajdeep is creator of mdis , mdis is creator of dis , dis is creator of ret , I need a query so that if i fetch rajdeep records it will give details mdis , dis and ret alongs with its creator , its like grandfather details , if i select grandfather name it will give all his son and son of son details along with father name . I tried this query "select username,refBy from refByTmp where refBy in (SELECT username from refByTmp where refBy='rajdeep') or refBy='rajdeep'" But its showing only 2 level data . *Milestone will be released only after getting working query* I have also attached sample database
ID e Projektit: 18990529

Rreth projektit

21 propozime
Projekt në distancë
Aktive 5 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
Hello Firstly although select sub queries as per your example could be used for this solution, they are extremely inefficient and on larger datasets will almost certainly overload mysql resources and/or processing times The most efficient way is to use joins in the query. I have coded this and tested against your sample set to produce the resulting grandfather, father, son output which I can send a screen snap shot should you wish to message me and provide the sql statement to enable you to use this against your live dataset Rgds Alan
₹1 250 INR në 1 ditë
5,0 (2 përshtypje)
1,3
1,3
21 freelancers are bidding on average ₹1 207 INR for this job
Avatari i Përdoruesit
Hello Sir, I have understood your requirement of nested SQL statement. I can provide it to you and show you at my localhost also. Looking forward for your reply. Thanks & Regards, Anshulika Bansal
₹1 100 INR në 0 ditë
4,0 (61 përshtypje)
6,1
6,1
Avatari i Përdoruesit
I am a database architect and having more than 14 years of experience in IT industry. I can help you to derive the sql query. Let me know if you want to discuss further. My Technical background • A goal-oriented professional with more than 14 years of experience in IT Database Management and Project Management specifically Airlines, Telecommunications and Health care domain • Having good amount of practical exposure on AngularJS, MVC, Javascript, ASP.Net with C#, VB.Net language and executed multiple projects independently. • Possess expertise in Data Warehouse/Data mart concepts, data modeling for OLAP & OLTP systems from design and analysis to implementation including the conceptual, logical and physical data models • Experience in relational and dimensional data modeling using ERWIN, understanding of Ralph Kimball and bill Inmon methodology for dimensional modeling, star and snowflake schemas • Having depth knowledge of large database design techniques; experience in data analysis, data cleansing, and data transformation and migration using ETL tools;
₹1 300 INR në 1 ditë
5,0 (28 përshtypje)
4,9
4,9
Avatari i Përdoruesit
Hi, I am interested in the task and can do it. please ping me to discuss more. thanks.
₹1 500 INR në 1 ditë
4,9 (30 përshtypje)
4,5
4,5
Avatari i Përdoruesit
Hello, I've done many of these kind of 'nested' queries, or autoreferenced tables if you like. Working with families tables, as well as payroll formulas which reference one another. Please feel free to contact me, I'll be glad to chat with you. If you select me, we can do it soon. Best Esteban
₹1 500 INR në 1 ditë
5,0 (8 përshtypje)
4,2
4,2
Avatari i Përdoruesit
Hi i already have the query and need to chnges a se per ur requirement if u can able to give sample db i will do chnges and gice u the query Ping me if u r interested
₹1 750 INR në 1 ditë
4,8 (17 përshtypje)
4,5
4,5
Avatari i Përdoruesit
Hello, Using nested Select is much complicated for this case. You need to use joins. I created the sample table, and get the result as you want: mdis,dis,ret But I tried this on MsSql. I think the logic must be the same. I can send you the T-SQL code on chat. You don't pay if it doesn't work! Thanks.
₹1 700 INR në 1 ditë
5,0 (5 përshtypje)
3,8
3,8
Avatari i Përdoruesit
I went through the requirement and It can be done using nested query I can quickly help you and release the milestone once done
₹1 300 INR në 1 ditë
5,0 (5 përshtypje)
3,1
3,1
Avatari i Përdoruesit
Hello there, Gone through your details and after reading over your application this looks like a perfect fit for my skill sets!! I am a Database programmer with 12+ yrs of experience, I am having a good project management experience and have worked with various software MNCs and deliver high-level enterprise level applications. I make sure your project progress smoothly and delivered in time with the agreed budget. Let’s get connected here, so we can discuss the requirements more deeply to understand and clarification on requirements so that we can ask the question, Happy to share client references. Waiting for your response! Thanks! Regards, Anubhav
₹2 050 INR në 1 ditë
4,6 (1 review)
2,8
2,8
Avatari i Përdoruesit
hi i have worked on such query earlier when my project was for multi-level marketing. i can write this script. lets connect. award me the project only after the query is working.
₹1 300 INR në 1 ditë
5,0 (4 përshtypje)
1,4
1,4
Avatari i Përdoruesit
I am a PHP developer working with HTML, CSS, JAVASCRIPT, PHP, Codeigniter and JQERY and laravel. My competencies include PHP, Codeigniter, APIs, HTML, CSS, JAVASCRIPT, PHP, JQERY, AJAX1 and MYSQL.
₹1 300 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hi , I am new to freelancer. but having more than 6 years experience in php mysql project.I can solve your query.
₹1 500 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hi, This is karthik who works in TCS, India as SQL developer. I can complete your work in small span of time. pay be if you are satisfied with my work and friendly nature. Thanks, karthik.
₹600 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Just started as a freelancer. Can help you with your problem. having 2+years of experience. looking forward to discussing with you.
₹650 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Please message me. We can discuss for fix price per package. Please review my profile. https://www.freelancer.com/u/vw7590795vw.html I have 9 years experience in MS SQL Server. Please let me know more details and when we will start. Sky pe jikenjd
₹600 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hello I have immense experience working with SQL and can get it done for you in no time. Thanks.
₹950 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Dear Hiring Manager, I have read your problem and I'm willing to solve your problem if you give the chance. Hope you will give me the chance.
₹850 INR në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
Hi! I made a query for you. For the case when you have 3 levels I can not attach to the application. Get into contact with me.
₹1 550 INR në 1 ditë
0,0 (0 përshtypje)
3,0
3,0

Rreth klientit

Flamuri i INDIA
Hazaribagh, India
5,0
52
Mënyra e pagesës u verifikua
Anëtar që nga korr 19, 2015

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.