Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:55:58+00:00 2026-06-15T18:55:58+00:00

Following in my sql fiddle: http://sqlfiddle.com/#!2/62429/2 I have a username , which i need

  • 0

Following in my sql fiddle: http://sqlfiddle.com/#!2/62429/2

I have a username , which i need to split between first name and last name . One logic I have in mind is to get last name as per father name means if Nick samuel is username and samuel james is father's name as samuel is in fathers name so it becomes last name for user and remaining becomes first name for user. Kindly let me know how can i implement this logic in my fiddle. Moreover, lets say if there is not match between father name and username then as per our predefined ratio (count of username string spearated by ” ” so for name nick jhon count is 2 and its divied by 2 which gives 1, so for that computed value we’ll make first name the first part of the string i.e jhon and rest become last name and for names like jammie james jonathan bing then its count being divided by 2 and gives 2 so in this case first two strings are become first name and remaining becomes last name) . I was confused in implementing both logics so i asked for help. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:56:00+00:00Added an answer on June 15, 2026 at 6:56 pm

    I solved it here

    http://www.sqlfiddle.com/#!2/b6f85/6.

    It returns you last word of your Username as last name and rest of the Username would become firstname of it..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at the following SQL fiddle: http://sqlfiddle.com/#!2/962496/1 How could one select all orders from
I have the following minimal schema in Oracle: http://sqlfiddle.com/#!4/c1ed0/14 The queries I have run
I have the following: http://sqlfiddle.com/#!6/226ae/1 I'm trying to now add one row for each
I have the following: http://sqlfiddle.com/#!2/fca3d/1 I'm trying to now add one row for each
I have the following table http://sqlfiddle.com/#!3/7f078/1 Okay so what I want do is GROUP
Following is my sqlfiddle for testing and building the query: http://sqlfiddle.com/#!2/975c6/1 What I have
Check this example before reading the question - http://www.sqlfiddle.com/#!2/fcf3e/8 The following data comes from
I have the following SQL statement which seems to be deleting every row in
I have the following table and rows defined in SQLFiddle I need to select
== SQL Fiddle of My Question Here I have the following tables related to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.