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

  • Home
  • SEARCH
  • 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 9141929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:42:37+00:00 2026-06-17T09:42:37+00:00

This is the code outline I was thinking of using: CREATE function get_n_chars (

  • 0

This is the code outline I was thinking of using:

CREATE function get_n_chars ( dfrom varchar(9) ) returns varchar(9)
READS SQL DATA
begin
declare d varchar(9);
dfrom REGEXP '^.(...)';
d = $1;
limit 1;
return d;

I was not surprised to get an error, does anyone know the correct syntax, or of this is even possible?

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-17T09:42:38+00:00Added an answer on June 17, 2026 at 9:42 am

    Per your comment above:

    The basic problem is that a have a table that has company names that vary slightly but are the same company. Example: ‘Apple Inc.’, ‘Apple Computers’, and Apple Incorporate’. I am supposed to clean this table up. I need to find duplicates based on similar names. So all three ‘Apples’ are ‘duplicates’, after identifying I need to delete the two rows with most incomplete data. So, I need to display these three rows with their id numbers then delete two.

    To retrieve all suspected duplicates, how about something like:

    SELECT my_table.* FROM my_table JOIN (
      SELECT   LEFT(company_name, 4) AS abbr
      FROM     my_table
      GROUP BY abbr
      HAVING   COUNT(*) > 1
    ) t ON LEFT(my_table.company_name, 4) = t.abbr
    ORDER BY my_table.company_name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code disabled mouse scroll functionality, when i click on the document. $(document).on(click, function
This code comes from: http://code.activestate.com/recipes/577090-file-encryption-using-stream-cipher/ import sys import random if len(sys.argv) != 4: print
This part of my code is meant to take an irregularly-shaped outline of Tile
So this code is the base outline for a boggle game from online that
I'm using this code for slide show. I can't seem to get the image
The basic outline of my code is this: Check to see if a user
This code below allows me to find the word error in all my files
This code is the core of a much larger script that works great in
This code only renders a dodecahedron and completely ignores the glBegin(GL_TRIANGLES) block: glutSolidDodecahedron(); glBegin(GL_TRIANGLES);
This code gives me this error:Cannot implicitly convert type ArrayList[] to ArrayList[][] at this

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.