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 6762215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:17:35+00:00 2026-05-26T14:17:35+00:00

Excel Sheet data Eno EName Pincode 1 aaa 123456 2 bbb 123423 3 ccc

  • 0

Excel Sheet data

Eno  EName  Pincode
1     aaa    123456
2     bbb    123423
3     ccc    34
4     ddd     567
5     eee     4532

Table Structure

  Eno  Varchar(10)
  EName  vachar(25)
  Pincode  Nvarchar(6)

I fetch data from excel sheet on the time pincode have 3 or 2 or 6 or 4, I have to check that If pincode column values is less than 6 i have concat 0.

 Eg: Pincode 34 it have only 2 digit so i add 4 zero in front 000034.

Result

EmpInfo

 Eno  EName   PinCode
    1    aaa      123456
    2     bbb     123423 
    3     ccc     000034
    4     ddd     000567
    5      eee    004532
  • 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-05-26T14:17:35+00:00Added an answer on May 26, 2026 at 2:17 pm

    You can add 1000000 to the PinCode value and fetch the 6 rightmost letters.

    select right(1000000+PinCode, 6)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a way to move the data from an excel sheet to a
I want to use Microsoft.Office.Interop.Excel dll to write the data into excel sheet. I
I want to store numeric data in excel sheet. The numeric data is represented
How do I import data from a excel sheet onto a PGSQL database on
I have data that I'm taking from an Excel sheet with the ultimate goal
I have to get the data in an Excel sheet into a Access database.
1) I have been working on fetching data from an excel sheet i can
I am reading data from an excel sheet and displaying it in a data
I am inserting data from an Excel sheet to SQL Server 2005 db. I
My application is extracting the data from excel sheet. I am storing the value

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.